@kmkf-fe-packages/services-components 0.7.12-alpha.1 → 0.7.12-alpha.10
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 +1 -2
- package/dist/esm/components/ActualPayment/index.js +1 -4
- package/dist/esm/components/Address/index.d.ts +1 -2
- package/dist/esm/components/Address/index.js +1 -4
- package/dist/esm/components/Alipay/index.d.ts +1 -2
- package/dist/esm/components/Alipay/index.js +2 -5
- package/dist/esm/components/AlipayAccount/index.d.ts +1 -2
- package/dist/esm/components/AlipayAccount/index.js +1 -4
- package/dist/esm/components/AlipayName/index.d.ts +1 -2
- package/dist/esm/components/AlipayName/index.js +1 -4
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +24 -9
- package/dist/esm/components/Cascader/index.d.ts +1 -2
- package/dist/esm/components/Cascader/index.js +1 -4
- package/dist/esm/components/Checkbox/index.d.ts +1 -3
- package/dist/esm/components/Checkbox/index.js +2 -8
- package/dist/esm/components/CommonDataTime/index.d.ts +0 -2
- package/dist/esm/components/CommonDataTime/index.js +0 -4
- package/dist/esm/components/CompletedUser/index.d.ts +0 -2
- package/dist/esm/components/CompletedUser/index.js +1 -6
- package/dist/esm/components/DataTime/index.d.ts +1 -3
- package/dist/esm/components/DataTime/index.js +2 -11
- package/dist/esm/components/EItemEnCode/index.d.ts +1 -2
- package/dist/esm/components/EItemEnCode/index.js +1 -4
- package/dist/esm/components/EItemId/index.d.ts +1 -2
- package/dist/esm/components/EItemId/index.js +1 -4
- package/dist/esm/components/EItemSelect/index.d.ts +1 -2
- package/dist/esm/components/EItemSelect/index.js +1 -4
- package/dist/esm/components/ErpTradeId/index.d.ts +1 -2
- package/dist/esm/components/ErpTradeId/index.js +1 -4
- package/dist/esm/components/Express/index.d.ts +1 -3
- package/dist/esm/components/Express/index.js +1 -6
- package/dist/esm/components/ExpressCode/index.d.ts +1 -2
- package/dist/esm/components/ExpressCode/index.js +1 -4
- package/dist/esm/components/FlowStatusSelect/index.d.ts +1 -3
- package/dist/esm/components/FlowStatusSelect/index.js +7 -21
- package/dist/esm/components/GetFormItem/index.d.ts +1 -2
- package/dist/esm/components/GetFormItem/index.js +2 -5
- package/dist/esm/components/Grade/index.d.ts +1 -2
- package/dist/esm/components/Grade/index.js +1 -4
- package/dist/esm/components/Handler/index.d.ts +0 -2
- package/dist/esm/components/Handler/index.js +1 -6
- package/dist/esm/components/Input/index.d.ts +1 -2
- package/dist/esm/components/Input/index.js +2 -6
- package/dist/esm/components/JstItemSelect/index.d.ts +1 -2
- package/dist/esm/components/JstItemSelect/index.js +1 -4
- package/dist/esm/components/JstLogistics/index.d.ts +1 -2
- package/dist/esm/components/JstLogistics/index.js +1 -4
- package/dist/esm/components/JstSendGood/index.d.ts +1 -2
- package/dist/esm/components/JstSendGood/index.js +1 -4
- package/dist/esm/components/JstSupply/index.d.ts +1 -2
- package/dist/esm/components/JstSupply/index.js +1 -4
- package/dist/esm/components/Logistics/index.d.ts +1 -2
- package/dist/esm/components/Logistics/index.js +2 -5
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -2
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +1 -4
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +0 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +0 -4
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +0 -2
- package/dist/esm/components/LogisticsInterception/InterceptType.js +0 -4
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -2
- package/dist/esm/components/LogisticsInterception/index.js +1 -4
- package/dist/esm/components/MultSelect/index.d.ts +1 -3
- package/dist/esm/components/MultSelect/index.js +2 -8
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +1 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +1 -4
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -2
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +1 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +6 -3
- package/dist/esm/components/Ordinary/OrdinarySerial.js +8 -3
- package/dist/esm/components/Ordinary/index.d.ts +6 -3
- package/dist/esm/components/Ordinary/index.js +8 -4
- package/dist/esm/components/Payment/AlipayNick.d.ts +1 -2
- package/dist/esm/components/Payment/AlipayNick.js +1 -4
- package/dist/esm/components/Payment/AlipayNo.d.ts +1 -2
- package/dist/esm/components/Payment/AlipayNo.js +1 -4
- package/dist/esm/components/Payment/AlipayTime.d.ts +1 -3
- package/dist/esm/components/Payment/AlipayTime.js +1 -6
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -3
- package/dist/esm/components/Payment/BuyerNick.js +24 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -2
- package/dist/esm/components/Payment/PaymentAmount.js +1 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +0 -2
- package/dist/esm/components/Payment/PaymentStatus.js +0 -4
- package/dist/esm/components/Payment/PaymentTid.d.ts +1 -2
- package/dist/esm/components/Payment/PaymentTid.js +1 -4
- package/dist/esm/components/Payment/index.d.ts +2 -3
- package/dist/esm/components/Payment/index.js +4 -7
- package/dist/esm/components/Picture/index.d.ts +1 -2
- package/dist/esm/components/Picture/index.js +1 -4
- package/dist/esm/components/PlatForm/index.d.ts +0 -2
- package/dist/esm/components/PlatForm/index.js +0 -4
- package/dist/esm/components/Radio/index.d.ts +1 -3
- package/dist/esm/components/Radio/index.js +2 -8
- package/dist/esm/components/Rate/index.d.ts +1 -2
- package/dist/esm/components/Rate/index.js +1 -4
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -2
- package/dist/esm/components/ReceiverAddress/index.js +1 -4
- package/dist/esm/components/ReceiverMobile/index.d.ts +1 -2
- package/dist/esm/components/ReceiverMobile/index.js +2 -5
- package/dist/esm/components/ReceiverName/index.d.ts +1 -2
- package/dist/esm/components/ReceiverName/index.js +1 -4
- package/dist/esm/components/Remark/index.d.ts +1 -2
- package/dist/esm/components/Remark/index.js +1 -4
- package/dist/esm/components/ReturnLogistics/index.d.ts +6 -3
- package/dist/esm/components/ReturnLogistics/index.js +9 -5
- package/dist/esm/components/Select/index.d.ts +1 -3
- package/dist/esm/components/Select/index.js +2 -8
- package/dist/esm/components/ShopInput/index.d.ts +0 -2
- package/dist/esm/components/ShopInput/index.js +1 -6
- package/dist/esm/components/ShopName/index.d.ts +1 -2
- package/dist/esm/components/ShopName/index.js +1 -4
- package/dist/esm/components/Submitter/index.d.ts +0 -2
- package/dist/esm/components/Submitter/index.js +1 -6
- package/dist/esm/components/SystemOrderNo/index.d.ts +1 -2
- package/dist/esm/components/SystemOrderNo/index.js +1 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +0 -2
- package/dist/esm/components/TemplateSelect/index.js +1 -6
- package/dist/esm/components/TextArea/index.d.ts +1 -2
- package/dist/esm/components/TextArea/index.js +1 -4
- package/dist/esm/components/ThirdItemSelect/index.d.ts +1 -2
- package/dist/esm/components/ThirdItemSelect/index.js +1 -4
- package/dist/esm/components/TradeDateTime/index.d.ts +6 -4
- package/dist/esm/components/TradeDateTime/index.js +9 -6
- package/dist/esm/components/TradeId/index.d.ts +4 -2
- package/dist/esm/components/TradeId/index.js +9 -6
- package/dist/esm/components/WorkOrderId/index.d.ts +1 -2
- package/dist/esm/components/WorkOrderId/index.js +1 -4
- package/dist/esm/type.d.ts +1 -5
- package/package.json +4 -4
|
@@ -11,14 +11,13 @@ declare class EItemId implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
14
|
constructor(options: PickOption);
|
|
16
15
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
16
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
18
|
getComponentValue: (r: Record) => any;
|
|
20
19
|
renderExport: (value: any, record: any) => any;
|
|
21
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
22
21
|
filterConfig: (item: ColumnConfig) => {
|
|
23
22
|
searchDefaultConditions: "like";
|
|
24
23
|
type: string;
|
|
@@ -27,7 +27,6 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
28
|
_defineProperty(this, "canSort", void 0);
|
|
29
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
-
_defineProperty(this, "dataType", void 0);
|
|
31
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
32
|
id: _this.id,
|
|
@@ -61,14 +60,13 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
61
60
|
return i.numIid;
|
|
62
61
|
}).join('\n');
|
|
63
62
|
});
|
|
64
|
-
_defineProperty(this, "editRender", function (
|
|
63
|
+
_defineProperty(this, "editRender", function () {
|
|
65
64
|
var _this$componentConfig, _this$effects, _this$effects2;
|
|
66
65
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
66
|
title: _this.name,
|
|
68
67
|
name: _this.id,
|
|
69
68
|
rules: _this.rules,
|
|
70
69
|
required: false,
|
|
71
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
72
70
|
component: /*#__PURE__*/React.createElement(ItemId, _extends({}, _this.componentConfig, {
|
|
73
71
|
maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
|
|
74
72
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -121,6 +119,5 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
121
119
|
return Promise.resolve();
|
|
122
120
|
}
|
|
123
121
|
}] : [];
|
|
124
|
-
this.dataType = 'object';
|
|
125
122
|
});
|
|
126
123
|
export default EItemId;
|
|
@@ -11,14 +11,13 @@ declare class EItemSelect implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
14
|
constructor(options: PickOption);
|
|
16
15
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
16
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
18
|
getComponentValue: (r: Record) => any;
|
|
20
19
|
renderExport: (value: any, record: any) => any;
|
|
21
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
22
21
|
filterConfig: () => never[];
|
|
23
22
|
}
|
|
24
23
|
export default EItemSelect;
|
|
@@ -25,7 +25,6 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
30
|
id: _this.id,
|
|
@@ -56,13 +55,12 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
56
55
|
return i.numIid;
|
|
57
56
|
}).join("\n");
|
|
58
57
|
});
|
|
59
|
-
_defineProperty(this, "editRender", function (
|
|
58
|
+
_defineProperty(this, "editRender", function () {
|
|
60
59
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$effects, _this$effects2;
|
|
61
60
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
62
61
|
title: _this.name,
|
|
63
62
|
name: _this.id,
|
|
64
63
|
rules: _this.rules,
|
|
65
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
66
64
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
67
65
|
component: /*#__PURE__*/React.createElement(ItemSelect, _extends({}, _this.componentConfig, {
|
|
68
66
|
maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
|
|
@@ -85,6 +83,5 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
85
83
|
this.isCombinationComponent = false;
|
|
86
84
|
this.canSort = false;
|
|
87
85
|
this.children = [];
|
|
88
|
-
this.dataType = 'object';
|
|
89
86
|
});
|
|
90
87
|
export default EItemSelect;
|
|
@@ -10,14 +10,13 @@ declare class ErpTradeId implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
13
|
constructor(options: PickOption);
|
|
15
14
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
15
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
16
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
17
|
getComponentValue: (r: Record) => any;
|
|
19
18
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: (
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
21
20
|
filterConfig: (item: ColumnConfig) => {
|
|
22
21
|
searchDefaultConditions: "in";
|
|
23
22
|
type: string;
|
|
@@ -23,7 +23,6 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
24
|
_defineProperty(this, "canSort", void 0);
|
|
25
25
|
_defineProperty(this, "children", void 0);
|
|
26
|
-
_defineProperty(this, "dataType", void 0);
|
|
27
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
28
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
29
28
|
id: _this.id,
|
|
@@ -46,13 +45,12 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
46
45
|
var _record2;
|
|
47
46
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
48
47
|
});
|
|
49
|
-
_defineProperty(this, "editRender", function (
|
|
48
|
+
_defineProperty(this, "editRender", function () {
|
|
50
49
|
var _this$componentConfig, _this$componentConfig2;
|
|
51
50
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
52
51
|
title: _this.name,
|
|
53
52
|
name: _this.id,
|
|
54
53
|
rules: _this.rules,
|
|
55
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
56
54
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
57
55
|
component: /*#__PURE__*/React.createElement(TradeId, null)
|
|
58
56
|
});
|
|
@@ -85,6 +83,5 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
85
83
|
this.isCombinationComponent = false;
|
|
86
84
|
this.canSort = true;
|
|
87
85
|
this.children = [];
|
|
88
|
-
this.dataType = 'string';
|
|
89
86
|
});
|
|
90
87
|
export default ErpTradeId;
|
|
@@ -14,15 +14,13 @@ declare class Express implements ComponentInterface {
|
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface['dataType'];
|
|
18
|
-
options: ComponentInterface['options'];
|
|
19
17
|
constructor(options: PickOption);
|
|
20
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
21
19
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
22
20
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
23
21
|
getComponentValue: (r: Record) => any;
|
|
24
22
|
renderExport: (value: string, record: Record) => any;
|
|
25
|
-
editRender: (
|
|
23
|
+
editRender: () => React.JSX.Element;
|
|
26
24
|
filterConfig: (item: ColumnConfig) => {
|
|
27
25
|
searchDefaultConditions: "in";
|
|
28
26
|
type: string;
|
|
@@ -27,8 +27,6 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
28
|
_defineProperty(this, "canSort", void 0);
|
|
29
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
-
_defineProperty(this, "dataType", void 0);
|
|
31
|
-
_defineProperty(this, "options", void 0);
|
|
32
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
32
|
id: _this.id,
|
|
@@ -52,13 +50,12 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
52
50
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
53
51
|
return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
54
52
|
});
|
|
55
|
-
_defineProperty(this, "editRender", function (
|
|
53
|
+
_defineProperty(this, "editRender", function () {
|
|
56
54
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
57
55
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
58
56
|
title: _this.name,
|
|
59
57
|
name: _this.id,
|
|
60
58
|
rules: _this.rules,
|
|
61
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
62
59
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
63
60
|
component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) === 'EXPRESS_COMPANY' ? /*#__PURE__*/React.createElement(ExpressCompany, {
|
|
64
61
|
options: _this.expressDateInstance.getExpressData()
|
|
@@ -95,7 +92,5 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
95
92
|
this.isCombinationComponent = false;
|
|
96
93
|
this.canSort = true;
|
|
97
94
|
this.children = [];
|
|
98
|
-
this.dataType = 'string';
|
|
99
|
-
this.options = this.expressDateInstance.getExpressData() || [];
|
|
100
95
|
});
|
|
101
96
|
export default Express;
|
|
@@ -12,14 +12,13 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
15
|
constructor(options: PickOption);
|
|
17
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
17
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
19
|
getComponentValue: (r: Record) => any;
|
|
21
20
|
renderExport: (value: string, record: Record) => any;
|
|
22
|
-
editRender: (
|
|
21
|
+
editRender: () => React.JSX.Element;
|
|
23
22
|
filterConfig: (item: ColumnConfig) => {
|
|
24
23
|
searchDefaultConditions: "like";
|
|
25
24
|
type: string;
|
|
@@ -26,7 +26,6 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
27
|
_defineProperty(this, "canSort", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
31
|
id: _this.id,
|
|
@@ -49,13 +48,12 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
49
48
|
var _record$_this$id2;
|
|
50
49
|
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
51
50
|
});
|
|
52
|
-
_defineProperty(this, "editRender", function (
|
|
51
|
+
_defineProperty(this, "editRender", function () {
|
|
53
52
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
54
53
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
55
54
|
title: _this.name,
|
|
56
55
|
name: _this.id,
|
|
57
56
|
rules: _this.rules,
|
|
58
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
59
57
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
60
58
|
component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) === "EXPRESS_WAYBILL_CODE" ? /*#__PURE__*/React.createElement(Input, null) : null
|
|
61
59
|
});
|
|
@@ -92,7 +90,6 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
92
90
|
this.width = 200;
|
|
93
91
|
this.isCombinationComponent = false;
|
|
94
92
|
this.canSort = true;
|
|
95
|
-
this.dataType = 'string';
|
|
96
93
|
this.children = [];
|
|
97
94
|
});
|
|
98
95
|
export default ExpressCode;
|
|
@@ -12,8 +12,6 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
|
-
options: ComponentInterface['options'];
|
|
17
15
|
constructor(options: PickOption);
|
|
18
16
|
renderMenu: (record: Record) => React.JSX.Element;
|
|
19
17
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -21,7 +19,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
21
19
|
getComponentValue: (r: Record) => any;
|
|
22
20
|
renderExport: (value: any, record: Record) => any;
|
|
23
21
|
renderClient: () => null;
|
|
24
|
-
editRender: (
|
|
22
|
+
editRender: () => React.JSX.Element;
|
|
25
23
|
filterConfig: (item: ColumnConfig) => {
|
|
26
24
|
searchDefaultConditions: "in";
|
|
27
25
|
type: string;
|
|
@@ -7,15 +7,14 @@ 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 { Menu } from 'antd';
|
|
10
|
+
import { Dropdown, Menu } from 'antd';
|
|
11
11
|
import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
|
|
12
12
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import get from 'lodash/get';
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
17
|
-
var _this = this
|
|
18
|
-
_Object$keys2;
|
|
17
|
+
var _this = this;
|
|
19
18
|
_classCallCheck(this, WorkOrderId);
|
|
20
19
|
_defineProperty(this, "name", void 0);
|
|
21
20
|
_defineProperty(this, "id", void 0);
|
|
@@ -28,8 +27,6 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
28
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
28
|
_defineProperty(this, "canSort", void 0);
|
|
30
29
|
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "options", void 0);
|
|
33
30
|
_defineProperty(this, "renderMenu", function (record) {
|
|
34
31
|
var menu = /*#__PURE__*/React.createElement(Menu, {
|
|
35
32
|
onClick: function onClick(_ref) {
|
|
@@ -50,16 +47,13 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
50
47
|
});
|
|
51
48
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
52
49
|
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
53
|
-
return status ?
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
React.createElement("span", {
|
|
50
|
+
return status ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
51
|
+
overlay: _this.renderMenu(record)
|
|
52
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
57
53
|
style: {
|
|
58
54
|
color: status.color
|
|
59
55
|
}
|
|
60
|
-
}, status === null || status === void 0 ? void 0 : status.label)
|
|
61
|
-
// </Dropdown>
|
|
62
|
-
: /*#__PURE__*/React.createElement("span", null, "--");
|
|
56
|
+
}, status === null || status === void 0 ? void 0 : status.label)) : /*#__PURE__*/React.createElement("span", null, "--");
|
|
63
57
|
});
|
|
64
58
|
_defineProperty(this, "renderLog", function (r) {
|
|
65
59
|
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
@@ -77,13 +71,12 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
77
71
|
_defineProperty(this, "renderClient", function () {
|
|
78
72
|
return null;
|
|
79
73
|
});
|
|
80
|
-
_defineProperty(this, "editRender", function (
|
|
74
|
+
_defineProperty(this, "editRender", function () {
|
|
81
75
|
var _this$componentConfig, _this$componentConfig2;
|
|
82
76
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
83
77
|
title: _this.name,
|
|
84
78
|
name: _this.id,
|
|
85
79
|
rules: _this.rules,
|
|
86
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
87
80
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
88
81
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
89
82
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
@@ -148,12 +141,5 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
148
141
|
bgColor: '#73d13d'
|
|
149
142
|
}
|
|
150
143
|
};
|
|
151
|
-
this.dataType = 'string';
|
|
152
|
-
this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
|
|
153
|
-
return {
|
|
154
|
-
label: _this.workOrderStatus[item].label,
|
|
155
|
-
value: item
|
|
156
|
-
};
|
|
157
|
-
});
|
|
158
144
|
});
|
|
159
145
|
export default WorkOrderId;
|
|
@@ -5,7 +5,6 @@ declare type GetFormItemProps = {
|
|
|
5
5
|
title: string | JSX.Element;
|
|
6
6
|
name: string;
|
|
7
7
|
component: JSX.Element | null;
|
|
8
|
-
hidden?: boolean;
|
|
9
8
|
};
|
|
10
|
-
declare const GetFormItem: ({ rules, required, title, component, name,
|
|
9
|
+
declare const GetFormItem: ({ rules, required, title, component, name, }: GetFormItemProps) => React.JSX.Element;
|
|
11
10
|
export default GetFormItem;
|
|
@@ -5,9 +5,7 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
5
5
|
required = _ref.required,
|
|
6
6
|
title = _ref.title,
|
|
7
7
|
component = _ref.component,
|
|
8
|
-
name = _ref.name
|
|
9
|
-
_ref$hidden = _ref.hidden,
|
|
10
|
-
hidden = _ref$hidden === void 0 ? false : _ref$hidden;
|
|
8
|
+
name = _ref.name;
|
|
11
9
|
var newRules = rules;
|
|
12
10
|
if (required) {
|
|
13
11
|
newRules = rules.concat({
|
|
@@ -24,8 +22,7 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
24
22
|
name: name,
|
|
25
23
|
label: title,
|
|
26
24
|
rules: newRules,
|
|
27
|
-
className: "form-item-label--index"
|
|
28
|
-
hidden: hidden
|
|
25
|
+
className: "form-item-label--index"
|
|
29
26
|
}, component));
|
|
30
27
|
};
|
|
31
28
|
export default GetFormItem;
|
|
@@ -10,14 +10,13 @@ declare class BasicGrade implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
13
|
constructor(options: PickOption);
|
|
15
14
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
15
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
16
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
17
|
getComponentValue: (r: Record) => any;
|
|
19
18
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: (
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
21
20
|
filterConfig: () => never[];
|
|
22
21
|
}
|
|
23
22
|
export default BasicGrade;
|
|
@@ -22,7 +22,6 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
22
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
23
|
_defineProperty(this, "canSort", void 0);
|
|
24
24
|
_defineProperty(this, "children", void 0);
|
|
25
|
-
_defineProperty(this, "dataType", void 0);
|
|
26
25
|
_defineProperty(this, "renderClient", function (record) {
|
|
27
26
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
28
27
|
id: _this.id,
|
|
@@ -45,13 +44,12 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
45
44
|
var _record2;
|
|
46
45
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicGrade")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
47
46
|
});
|
|
48
|
-
_defineProperty(this, "editRender", function (
|
|
47
|
+
_defineProperty(this, "editRender", function () {
|
|
49
48
|
var _this$componentConfig, _this$componentConfig2;
|
|
50
49
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
51
50
|
title: _this.name,
|
|
52
51
|
name: _this.id,
|
|
53
52
|
rules: _this.rules,
|
|
54
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
55
53
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
56
54
|
component: /*#__PURE__*/React.createElement(ApaasSlider, _this.componentConfig)
|
|
57
55
|
});
|
|
@@ -67,7 +65,6 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
67
65
|
this.rules = [];
|
|
68
66
|
this.isCombinationComponent = false;
|
|
69
67
|
this.canSort = true;
|
|
70
|
-
this.dataType = 'number';
|
|
71
68
|
this.children = [];
|
|
72
69
|
});
|
|
73
70
|
export default BasicGrade;
|
|
@@ -10,8 +10,6 @@ declare class Handler implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
|
-
options: ComponentInterface['options'];
|
|
15
13
|
constructor(options: PickOption);
|
|
16
14
|
renderPc: (v: unknown, record: Record) => React.JSX.Element;
|
|
17
15
|
renderLog: () => null;
|
|
@@ -10,8 +10,7 @@ import intersection from 'lodash/intersection';
|
|
|
10
10
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
11
|
import { SYMBOL } from "../../constant";
|
|
12
12
|
var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
13
|
-
var _this = this
|
|
14
|
-
_this$effects2;
|
|
13
|
+
var _this = this;
|
|
15
14
|
_classCallCheck(this, Handler);
|
|
16
15
|
_defineProperty(this, "name", void 0);
|
|
17
16
|
_defineProperty(this, "id", void 0);
|
|
@@ -22,8 +21,6 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
22
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
22
|
_defineProperty(this, "canSort", void 0);
|
|
24
23
|
_defineProperty(this, "children", void 0);
|
|
25
|
-
_defineProperty(this, "dataType", void 0);
|
|
26
|
-
_defineProperty(this, "options", void 0);
|
|
27
24
|
_defineProperty(this, "renderPc", function (v, record) {
|
|
28
25
|
var _value$map$join, _value$map;
|
|
29
26
|
var value = record === null || record === void 0 ? void 0 : record[_this.id];
|
|
@@ -81,7 +78,5 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
81
78
|
this.isCombinationComponent = false;
|
|
82
79
|
this.canSort = false;
|
|
83
80
|
this.children = [];
|
|
84
|
-
this.dataType = 'string';
|
|
85
|
-
this.options = ((_this$effects2 = this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.userList) || [];
|
|
86
81
|
});
|
|
87
82
|
export default Handler;
|
|
@@ -10,14 +10,13 @@ declare class BasicInput implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
13
|
constructor(options: PickOption);
|
|
15
14
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
15
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
16
|
getComponentValue: (r: Record) => any;
|
|
18
17
|
renderExport: (value: any, record: Record) => any;
|
|
19
18
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
20
|
-
editRender: (
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
21
20
|
filterConfig: (item: ColumnConfig) => {
|
|
22
21
|
searchDefaultConditions: "like";
|
|
23
22
|
type: string;
|
|
@@ -14,8 +14,7 @@ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
16
16
|
var _this = this,
|
|
17
|
-
_options$componentCon
|
|
18
|
-
_options$componentCon2;
|
|
17
|
+
_options$componentCon;
|
|
19
18
|
_classCallCheck(this, BasicInput);
|
|
20
19
|
_defineProperty(this, "name", void 0);
|
|
21
20
|
_defineProperty(this, "id", void 0);
|
|
@@ -26,7 +25,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
26
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
26
|
_defineProperty(this, "canSort", void 0);
|
|
28
27
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
28
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
31
29
|
var _record;
|
|
32
30
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -49,13 +47,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
49
47
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
50
48
|
}) : null;
|
|
51
49
|
});
|
|
52
|
-
_defineProperty(this, "editRender", function (
|
|
50
|
+
_defineProperty(this, "editRender", function () {
|
|
53
51
|
var _this$componentConfig, _this$componentConfig2;
|
|
54
52
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
55
53
|
title: _this.name,
|
|
56
54
|
name: _this.id,
|
|
57
55
|
rules: _this.rules,
|
|
58
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
59
56
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
60
57
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
61
58
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -90,6 +87,5 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
90
87
|
this.isCombinationComponent = false;
|
|
91
88
|
this.canSort = true;
|
|
92
89
|
this.children = [];
|
|
93
|
-
this.dataType = options !== null && options !== void 0 && (_options$componentCon2 = options.componentConfig) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.isNumber ? 'number' : 'string';
|
|
94
90
|
});
|
|
95
91
|
export default BasicInput;
|
|
@@ -13,14 +13,13 @@ declare class JstItemSelect implements ComponentInterface {
|
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface['dataType'];
|
|
17
16
|
constructor(options: PickOption);
|
|
18
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
19
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
20
|
getComponentValue: (r: Record) => any;
|
|
22
21
|
renderExport: (value: any, record: any) => any;
|
|
23
|
-
editRender: (
|
|
22
|
+
editRender: () => React.JSX.Element;
|
|
24
23
|
filterConfig: (item: ColumnConfig) => {
|
|
25
24
|
searchDefaultConditions: "like";
|
|
26
25
|
type: string;
|
|
@@ -29,7 +29,6 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
30
|
_defineProperty(this, "canSort", void 0);
|
|
31
31
|
_defineProperty(this, "children", void 0);
|
|
32
|
-
_defineProperty(this, "dataType", void 0);
|
|
33
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
34
|
id: _this.id,
|
|
@@ -62,13 +61,12 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
62
61
|
return [item === null || item === void 0 ? void 0 : item.itemId, item === null || item === void 0 ? void 0 : item.supplierName].join('/');
|
|
63
62
|
}).join(',');
|
|
64
63
|
});
|
|
65
|
-
_defineProperty(this, "editRender", function (
|
|
64
|
+
_defineProperty(this, "editRender", function () {
|
|
66
65
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
66
|
title: _this.name,
|
|
68
67
|
name: _this.id,
|
|
69
68
|
rules: _this.rules,
|
|
70
69
|
required: false,
|
|
71
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
72
70
|
component: /*#__PURE__*/React.createElement(JstItemList, _extends({}, _this.componentConfig, {
|
|
73
71
|
width: "90%"
|
|
74
72
|
}))
|
|
@@ -117,7 +115,6 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
117
115
|
this.isCombinationComponent = false;
|
|
118
116
|
this.canSort = false;
|
|
119
117
|
this.children = [];
|
|
120
|
-
this.dataType = 'object';
|
|
121
118
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
122
119
|
required: true,
|
|
123
120
|
validator: function validator(_, value) {
|
|
@@ -13,14 +13,13 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface['dataType'];
|
|
17
16
|
constructor(options: PickOption);
|
|
18
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
20
|
getComponentValue: (r: Record) => any;
|
|
22
21
|
renderExport: (value: any, record: any) => any;
|
|
23
|
-
editRender: (
|
|
22
|
+
editRender: () => React.JSX.Element;
|
|
24
23
|
filterConfig: (item: ColumnConfig) => ({
|
|
25
24
|
searchDefaultConditions: "like";
|
|
26
25
|
type: string;
|
|
@@ -30,7 +30,6 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
30
30
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
31
|
_defineProperty(this, "canSort", void 0);
|
|
32
32
|
_defineProperty(this, "children", void 0);
|
|
33
|
-
_defineProperty(this, "dataType", void 0);
|
|
34
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
34
|
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) {
|
|
36
35
|
return !isNull(item);
|
|
@@ -66,13 +65,12 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
66
65
|
return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join('/');
|
|
67
66
|
}).join(',');
|
|
68
67
|
});
|
|
69
|
-
_defineProperty(this, "editRender", function (
|
|
68
|
+
_defineProperty(this, "editRender", function () {
|
|
70
69
|
var _this$componentConfig, _this$componentConfig2;
|
|
71
70
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
72
71
|
title: _this.name,
|
|
73
72
|
name: _this.id,
|
|
74
73
|
rules: _this.rules,
|
|
75
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
76
74
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
77
75
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
78
76
|
type: 1,
|
|
@@ -121,7 +119,6 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
121
119
|
this.isCombinationComponent = false;
|
|
122
120
|
this.canSort = false;
|
|
123
121
|
this.children = [];
|
|
124
|
-
this.dataType = 'object';
|
|
125
122
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
126
123
|
required: true,
|
|
127
124
|
validator: function validator(_, value) {
|
|
@@ -11,14 +11,13 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
14
|
constructor(options: PickOption);
|
|
16
15
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
18
|
getComponentValue: (r: Record) => any;
|
|
20
19
|
renderExport: (value: any, record: any) => any;
|
|
21
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
22
21
|
filterConfig: (item: ColumnConfig) => {
|
|
23
22
|
searchDefaultConditions: "like";
|
|
24
23
|
type: string;
|