@kmkf-fe-packages/services-components 0.7.12-alpha.9 → 0.7.14-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/OperationLog/index.js +3 -1
- package/dist/esm/components/ActualPayment/index.d.ts +3 -1
- package/dist/esm/components/ActualPayment/index.js +6 -1
- package/dist/esm/components/Address/index.d.ts +3 -1
- package/dist/esm/components/Address/index.js +6 -1
- package/dist/esm/components/Alipay/index.d.ts +3 -1
- package/dist/esm/components/Alipay/index.js +7 -2
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -1
- package/dist/esm/components/AlipayAccount/index.js +6 -1
- package/dist/esm/components/AlipayName/index.d.ts +3 -1
- package/dist/esm/components/AlipayName/index.js +6 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -1
- package/dist/esm/components/BuyerNick/index.js +7 -2
- package/dist/esm/components/Cascader/index.d.ts +3 -1
- package/dist/esm/components/Cascader/index.js +6 -1
- package/dist/esm/components/Checkbox/index.d.ts +5 -1
- package/dist/esm/components/Checkbox/index.js +13 -2
- package/dist/esm/components/CommonDataTime/index.d.ts +5 -2
- package/dist/esm/components/CommonDataTime/index.js +17 -11
- package/dist/esm/components/CompletedUser/index.d.ts +3 -0
- package/dist/esm/components/CompletedUser/index.js +8 -1
- package/dist/esm/components/DataTime/index.d.ts +4 -1
- package/dist/esm/components/DataTime/index.js +13 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
- package/dist/esm/components/EItemEnCode/index.js +6 -1
- package/dist/esm/components/EItemId/index.d.ts +3 -1
- package/dist/esm/components/EItemId/index.js +6 -1
- package/dist/esm/components/EItemSelect/index.d.ts +3 -1
- package/dist/esm/components/EItemSelect/index.js +6 -1
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -1
- package/dist/esm/components/ErpTradeId/index.js +6 -1
- package/dist/esm/components/Express/index.d.ts +4 -1
- package/dist/esm/components/Express/index.js +8 -1
- package/dist/esm/components/ExpressCode/index.d.ts +3 -1
- package/dist/esm/components/ExpressCode/index.js +6 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -1
- package/dist/esm/components/FlowStatusSelect/index.js +15 -2
- package/dist/esm/components/GetFormItem/index.d.ts +2 -1
- package/dist/esm/components/GetFormItem/index.js +6 -1
- package/dist/esm/components/Grade/index.d.ts +3 -1
- package/dist/esm/components/Grade/index.js +6 -1
- package/dist/esm/components/Handler/index.d.ts +3 -0
- package/dist/esm/components/Handler/index.js +8 -1
- package/dist/esm/components/Input/index.d.ts +3 -1
- package/dist/esm/components/Input/index.js +8 -2
- package/dist/esm/components/JstItemSelect/index.d.ts +3 -1
- package/dist/esm/components/JstItemSelect/index.js +6 -1
- package/dist/esm/components/JstLogistics/index.d.ts +3 -1
- package/dist/esm/components/JstLogistics/index.js +6 -1
- package/dist/esm/components/JstSendGood/index.d.ts +3 -1
- package/dist/esm/components/JstSendGood/index.js +6 -1
- package/dist/esm/components/JstSupply/index.d.ts +3 -1
- package/dist/esm/components/JstSupply/index.js +6 -1
- package/dist/esm/components/Logistics/index.d.ts +3 -1
- package/dist/esm/components/Logistics/index.js +7 -2
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +6 -1
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +6 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +6 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/index.js +6 -1
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +6 -0
- package/dist/esm/components/MultSelect/index.d.ts +4 -1
- package/dist/esm/components/MultSelect/index.js +10 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +6 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +6 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -6
- package/dist/esm/components/Ordinary/OrdinarySerial.js +5 -8
- package/dist/esm/components/Ordinary/index.d.ts +4 -6
- package/dist/esm/components/Ordinary/index.js +6 -9
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNick.js +6 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNo.js +6 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +4 -1
- package/dist/esm/components/Payment/AlipayTime.js +8 -1
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
- package/dist/esm/components/Payment/BuyerNick.js +6 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +6 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -0
- package/dist/esm/components/Payment/PaymentStatus.js +6 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentTid.js +6 -1
- package/dist/esm/components/Payment/index.d.ts +3 -1
- package/dist/esm/components/Payment/index.js +7 -2
- package/dist/esm/components/Picture/index.d.ts +3 -1
- package/dist/esm/components/Picture/index.js +6 -1
- package/dist/esm/components/PlatForm/index.d.ts +3 -0
- package/dist/esm/components/PlatForm/index.js +6 -0
- package/dist/esm/components/Radio/index.d.ts +5 -1
- package/dist/esm/components/Radio/index.js +13 -2
- package/dist/esm/components/Rate/index.d.ts +3 -1
- package/dist/esm/components/Rate/index.js +6 -1
- package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
- package/dist/esm/components/ReceiverAddress/index.js +6 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -1
- package/dist/esm/components/ReceiverMobile/index.js +7 -2
- package/dist/esm/components/ReceiverName/index.d.ts +3 -1
- package/dist/esm/components/ReceiverName/index.js +6 -1
- package/dist/esm/components/Remark/index.d.ts +3 -1
- package/dist/esm/components/Remark/index.js +6 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +4 -6
- package/dist/esm/components/ReturnLogistics/index.js +7 -9
- package/dist/esm/components/Select/index.d.ts +4 -1
- package/dist/esm/components/Select/index.js +10 -2
- package/dist/esm/components/ShopInput/index.d.ts +3 -0
- package/dist/esm/components/ShopInput/index.js +8 -1
- package/dist/esm/components/ShopName/index.d.ts +3 -1
- package/dist/esm/components/ShopName/index.js +6 -1
- package/dist/esm/components/Submitter/index.d.ts +3 -0
- package/dist/esm/components/Submitter/index.js +8 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -1
- package/dist/esm/components/SystemOrderNo/index.js +6 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
- package/dist/esm/components/TemplateSelect/index.js +8 -1
- package/dist/esm/components/TextArea/index.d.ts +3 -1
- package/dist/esm/components/TextArea/index.js +6 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -1
- package/dist/esm/components/ThirdItemSelect/index.js +6 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -6
- package/dist/esm/components/TradeDateTime/index.js +8 -9
- package/dist/esm/components/TradeId/index.d.ts +4 -6
- package/dist/esm/components/TradeId/index.js +8 -11
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -1
- package/dist/esm/components/WorkOrderId/index.js +6 -1
- package/dist/esm/type.d.ts +6 -0
- package/package.json +4 -4
|
@@ -14,7 +14,8 @@ 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
|
|
17
|
+
var _this = this,
|
|
18
|
+
_Object$keys2;
|
|
18
19
|
_classCallCheck(this, WorkOrderId);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
@@ -25,8 +26,11 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
25
26
|
_defineProperty(this, "effects", void 0);
|
|
26
27
|
_defineProperty(this, "workOrderStatus", void 0);
|
|
27
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
28
30
|
_defineProperty(this, "canSort", void 0);
|
|
29
31
|
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "options", void 0);
|
|
30
34
|
_defineProperty(this, "renderMenu", function (record) {
|
|
31
35
|
var menu = /*#__PURE__*/React.createElement(Menu, {
|
|
32
36
|
onClick: function onClick(_ref) {
|
|
@@ -71,12 +75,13 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
71
75
|
_defineProperty(this, "renderClient", function () {
|
|
72
76
|
return null;
|
|
73
77
|
});
|
|
74
|
-
_defineProperty(this, "editRender", function () {
|
|
78
|
+
_defineProperty(this, "editRender", function (p) {
|
|
75
79
|
var _this$componentConfig, _this$componentConfig2;
|
|
76
80
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
77
81
|
title: _this.name,
|
|
78
82
|
name: _this.id,
|
|
79
83
|
rules: _this.rules,
|
|
84
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
80
85
|
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,
|
|
81
86
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
82
87
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
@@ -112,6 +117,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
112
117
|
this.name = options.name;
|
|
113
118
|
this.id = options.id;
|
|
114
119
|
this.sortField = options.id;
|
|
120
|
+
this.formField = options.id;
|
|
115
121
|
this.type = options.type;
|
|
116
122
|
this.componentConfig = options.componentConfig;
|
|
117
123
|
this.effects = options.effects;
|
|
@@ -141,5 +147,12 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
141
147
|
bgColor: '#73d13d'
|
|
142
148
|
}
|
|
143
149
|
};
|
|
150
|
+
this.dataType = 'string';
|
|
151
|
+
this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
|
|
152
|
+
return {
|
|
153
|
+
label: _this.workOrderStatus[item].label,
|
|
154
|
+
value: item
|
|
155
|
+
};
|
|
156
|
+
});
|
|
144
157
|
});
|
|
145
158
|
export default WorkOrderId;
|
|
@@ -5,6 +5,7 @@ declare type GetFormItemProps = {
|
|
|
5
5
|
title: string | JSX.Element;
|
|
6
6
|
name: string;
|
|
7
7
|
component: JSX.Element | null;
|
|
8
|
+
hidden?: boolean;
|
|
8
9
|
};
|
|
9
|
-
declare const GetFormItem: ({ rules, required, title, component, name, }: GetFormItemProps) => React.JSX.Element;
|
|
10
|
+
declare const GetFormItem: ({ rules, required, title, component, name, hidden }: GetFormItemProps) => React.JSX.Element | null;
|
|
10
11
|
export default GetFormItem;
|
|
@@ -5,7 +5,9 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
5
5
|
required = _ref.required,
|
|
6
6
|
title = _ref.title,
|
|
7
7
|
component = _ref.component,
|
|
8
|
-
name = _ref.name
|
|
8
|
+
name = _ref.name,
|
|
9
|
+
_ref$hidden = _ref.hidden,
|
|
10
|
+
hidden = _ref$hidden === void 0 ? false : _ref$hidden;
|
|
9
11
|
var newRules = rules;
|
|
10
12
|
if (required) {
|
|
11
13
|
newRules = rules.concat({
|
|
@@ -13,6 +15,8 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
13
15
|
message: "\u8BF7\u8F93\u5165".concat(title)
|
|
14
16
|
});
|
|
15
17
|
}
|
|
18
|
+
// 当隐藏时, 不在拥有该组件
|
|
19
|
+
if (hidden) return null;
|
|
16
20
|
return /*#__PURE__*/React.createElement("div", {
|
|
17
21
|
className: "form-item--wrap",
|
|
18
22
|
style: {
|
|
@@ -23,6 +27,7 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
23
27
|
label: title,
|
|
24
28
|
rules: newRules,
|
|
25
29
|
className: "form-item-label--index"
|
|
30
|
+
// hidden={hidden}
|
|
26
31
|
}, component));
|
|
27
32
|
};
|
|
28
33
|
export default GetFormItem;
|
|
@@ -8,15 +8,17 @@ declare class BasicGrade implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
11
12
|
canSort: boolean;
|
|
12
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
15
17
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
19
|
getComponentValue: (r: Record) => any;
|
|
18
20
|
renderExport: (value: any, record: Record) => any;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
22
|
filterConfig: () => never[];
|
|
21
23
|
}
|
|
22
24
|
export default BasicGrade;
|
|
@@ -20,8 +20,10 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
20
20
|
_defineProperty(this, "rules", void 0);
|
|
21
21
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
23
24
|
_defineProperty(this, "canSort", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
26
|
+
_defineProperty(this, "dataType", void 0);
|
|
25
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
26
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
27
29
|
id: _this.id,
|
|
@@ -44,12 +46,13 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
44
46
|
var _record2;
|
|
45
47
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicGrade")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
46
48
|
});
|
|
47
|
-
_defineProperty(this, "editRender", function () {
|
|
49
|
+
_defineProperty(this, "editRender", function (p) {
|
|
48
50
|
var _this$componentConfig, _this$componentConfig2;
|
|
49
51
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
50
52
|
title: _this.name,
|
|
51
53
|
name: _this.id,
|
|
52
54
|
rules: _this.rules,
|
|
55
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
53
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,
|
|
54
57
|
component: /*#__PURE__*/React.createElement(ApaasSlider, _this.componentConfig)
|
|
55
58
|
});
|
|
@@ -60,11 +63,13 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
60
63
|
this.name = options.name;
|
|
61
64
|
this.id = options.id;
|
|
62
65
|
this.sortField = "".concat(options.id, "_basicGrade");
|
|
66
|
+
this.formField = "".concat(options.id, "_basicGrade");
|
|
63
67
|
this.type = options.type;
|
|
64
68
|
this.componentConfig = options.componentConfig;
|
|
65
69
|
this.rules = [];
|
|
66
70
|
this.isCombinationComponent = false;
|
|
67
71
|
this.canSort = true;
|
|
72
|
+
this.dataType = 'number';
|
|
68
73
|
this.children = [];
|
|
69
74
|
});
|
|
70
75
|
export default BasicGrade;
|
|
@@ -8,8 +8,11 @@ declare class Handler implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
11
12
|
canSort: boolean;
|
|
12
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
options: ComponentInterface['options'];
|
|
13
16
|
constructor(options: PickOption);
|
|
14
17
|
renderPc: (v: unknown, record: Record) => React.JSX.Element;
|
|
15
18
|
renderLog: () => null;
|
|
@@ -10,7 +10,8 @@ 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
|
|
13
|
+
var _this = this,
|
|
14
|
+
_this$effects2;
|
|
14
15
|
_classCallCheck(this, Handler);
|
|
15
16
|
_defineProperty(this, "name", void 0);
|
|
16
17
|
_defineProperty(this, "id", void 0);
|
|
@@ -19,8 +20,11 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
19
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
20
21
|
_defineProperty(this, "effects", void 0);
|
|
21
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
22
24
|
_defineProperty(this, "canSort", void 0);
|
|
23
25
|
_defineProperty(this, "children", void 0);
|
|
26
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
|
+
_defineProperty(this, "options", void 0);
|
|
24
28
|
_defineProperty(this, "renderPc", function (v, record) {
|
|
25
29
|
var _value$map$join, _value$map;
|
|
26
30
|
var value = record === null || record === void 0 ? void 0 : record[_this.id];
|
|
@@ -73,10 +77,13 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
73
77
|
this.name = "处理人";
|
|
74
78
|
this.id = "handlerList";
|
|
75
79
|
this.sortField = "handlerList";
|
|
80
|
+
this.formField = "handlerList";
|
|
76
81
|
this.type = "HANDLER_INPUT";
|
|
77
82
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
78
83
|
this.isCombinationComponent = false;
|
|
79
84
|
this.canSort = false;
|
|
80
85
|
this.children = [];
|
|
86
|
+
this.dataType = 'string';
|
|
87
|
+
this.options = ((_this$effects2 = this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.userList) || [];
|
|
81
88
|
});
|
|
82
89
|
export default Handler;
|
|
@@ -8,15 +8,17 @@ declare class BasicInput implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
11
12
|
canSort: boolean;
|
|
12
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
15
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
18
|
getComponentValue: (r: Record) => any;
|
|
17
19
|
renderExport: (value: any, record: Record) => any;
|
|
18
20
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
22
|
filterConfig: (item: ColumnConfig) => {
|
|
21
23
|
searchDefaultConditions: "like";
|
|
22
24
|
type: string;
|
|
@@ -14,7 +14,8 @@ 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
|
|
17
|
+
_options$componentCon,
|
|
18
|
+
_options$componentCon2;
|
|
18
19
|
_classCallCheck(this, BasicInput);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
@@ -23,8 +24,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
26
28
|
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
31
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
29
32
|
var _record;
|
|
30
33
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -47,12 +50,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
47
50
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
48
51
|
}) : null;
|
|
49
52
|
});
|
|
50
|
-
_defineProperty(this, "editRender", function () {
|
|
53
|
+
_defineProperty(this, "editRender", function (p) {
|
|
51
54
|
var _this$componentConfig, _this$componentConfig2;
|
|
52
55
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
53
56
|
title: _this.name,
|
|
54
57
|
name: _this.id,
|
|
55
58
|
rules: _this.rules,
|
|
59
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
56
60
|
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
61
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
58
62
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -78,6 +82,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
78
82
|
this.name = options.name;
|
|
79
83
|
this.id = options.id;
|
|
80
84
|
this.sortField = "".concat(options.id, "_input");
|
|
85
|
+
this.formField = "".concat(options.id, "_input");
|
|
81
86
|
this.type = options.type;
|
|
82
87
|
this.componentConfig = options.componentConfig;
|
|
83
88
|
this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? [{
|
|
@@ -87,5 +92,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
87
92
|
this.isCombinationComponent = false;
|
|
88
93
|
this.canSort = true;
|
|
89
94
|
this.children = [];
|
|
95
|
+
this.dataType = options !== null && options !== void 0 && (_options$componentCon2 = options.componentConfig) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.isNumber ? 'number' : 'string';
|
|
90
96
|
});
|
|
91
97
|
export default BasicInput;
|
|
@@ -11,15 +11,17 @@ declare class JstItemSelect implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
18
20
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
19
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
22
|
getComponentValue: (r: Record) => any;
|
|
21
23
|
renderExport: (value: any, record: any) => any;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
25
|
filterConfig: (item: ColumnConfig) => {
|
|
24
26
|
searchDefaultConditions: "like";
|
|
25
27
|
type: string;
|
|
@@ -27,8 +27,10 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "formField", void 0);
|
|
30
31
|
_defineProperty(this, "canSort", void 0);
|
|
31
32
|
_defineProperty(this, "children", void 0);
|
|
33
|
+
_defineProperty(this, "dataType", void 0);
|
|
32
34
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
35
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
36
|
id: _this.id,
|
|
@@ -61,12 +63,13 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
61
63
|
return [item === null || item === void 0 ? void 0 : item.itemId, item === null || item === void 0 ? void 0 : item.supplierName].join('/');
|
|
62
64
|
}).join(',');
|
|
63
65
|
});
|
|
64
|
-
_defineProperty(this, "editRender", function () {
|
|
66
|
+
_defineProperty(this, "editRender", function (p) {
|
|
65
67
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
66
68
|
title: _this.name,
|
|
67
69
|
name: _this.id,
|
|
68
70
|
rules: _this.rules,
|
|
69
71
|
required: false,
|
|
72
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
70
73
|
component: /*#__PURE__*/React.createElement(JstItemList, _extends({}, _this.componentConfig, {
|
|
71
74
|
width: "90%"
|
|
72
75
|
}))
|
|
@@ -110,11 +113,13 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
110
113
|
this.name = options.name;
|
|
111
114
|
this.id = options.id;
|
|
112
115
|
this.sortField = "".concat(options.id, "_jstItemList");
|
|
116
|
+
this.formField = "".concat(options.id, "_jstItemList");
|
|
113
117
|
this.type = options.type;
|
|
114
118
|
this.componentConfig = options.componentConfig;
|
|
115
119
|
this.isCombinationComponent = false;
|
|
116
120
|
this.canSort = false;
|
|
117
121
|
this.children = [];
|
|
122
|
+
this.dataType = 'object';
|
|
118
123
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
119
124
|
required: true,
|
|
120
125
|
validator: function validator(_, value) {
|
|
@@ -11,15 +11,17 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
20
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
19
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
22
|
getComponentValue: (r: Record) => any;
|
|
21
23
|
renderExport: (value: any, record: any) => any;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
25
|
filterConfig: (item: ColumnConfig) => ({
|
|
24
26
|
searchDefaultConditions: "like";
|
|
25
27
|
type: string;
|
|
@@ -28,8 +28,10 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
28
28
|
_defineProperty(this, "align", void 0);
|
|
29
29
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
30
30
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
+
_defineProperty(this, "formField", void 0);
|
|
31
32
|
_defineProperty(this, "canSort", void 0);
|
|
32
33
|
_defineProperty(this, "children", void 0);
|
|
34
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
35
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
36
|
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) {
|
|
35
37
|
return !isNull(item);
|
|
@@ -65,12 +67,13 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
65
67
|
return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join('/');
|
|
66
68
|
}).join(',');
|
|
67
69
|
});
|
|
68
|
-
_defineProperty(this, "editRender", function () {
|
|
70
|
+
_defineProperty(this, "editRender", function (p) {
|
|
69
71
|
var _this$componentConfig, _this$componentConfig2;
|
|
70
72
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
71
73
|
title: _this.name,
|
|
72
74
|
name: _this.id,
|
|
73
75
|
rules: _this.rules,
|
|
76
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
74
77
|
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,
|
|
75
78
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
76
79
|
type: 1,
|
|
@@ -114,11 +117,13 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
114
117
|
this.name = options.name;
|
|
115
118
|
this.id = options.id;
|
|
116
119
|
this.sortField = "".concat(options.id, "_jstItemList");
|
|
120
|
+
this.formField = "".concat(options.id, "_jstItemList");
|
|
117
121
|
this.type = options.type;
|
|
118
122
|
this.componentConfig = options.componentConfig;
|
|
119
123
|
this.isCombinationComponent = false;
|
|
120
124
|
this.canSort = false;
|
|
121
125
|
this.children = [];
|
|
126
|
+
this.dataType = 'object';
|
|
122
127
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
123
128
|
required: true,
|
|
124
129
|
validator: function validator(_, value) {
|
|
@@ -9,15 +9,17 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
20
|
getComponentValue: (r: Record) => any;
|
|
19
21
|
renderExport: (value: any, record: any) => any;
|
|
20
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
22
24
|
searchDefaultConditions: "like";
|
|
23
25
|
type: string;
|
|
@@ -26,8 +26,10 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
26
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
29
30
|
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
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) {
|
|
33
35
|
return !isNull(item);
|
|
@@ -63,12 +65,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
63
65
|
return [item === null || item === void 0 ? void 0 : item.sendId, item === null || item === void 0 ? void 0 : item.sendName].join('/');
|
|
64
66
|
}).join(',');
|
|
65
67
|
});
|
|
66
|
-
_defineProperty(this, "editRender", function () {
|
|
68
|
+
_defineProperty(this, "editRender", function (p) {
|
|
67
69
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
68
70
|
title: _this.name,
|
|
69
71
|
name: _this.id,
|
|
70
72
|
rules: _this.rules,
|
|
71
73
|
required: false,
|
|
74
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
72
75
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
73
76
|
type: 3
|
|
74
77
|
}))
|
|
@@ -112,8 +115,10 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
112
115
|
this.name = options.name;
|
|
113
116
|
this.id = options.id;
|
|
114
117
|
this.sortField = "".concat(options.id, "_jstItemList");
|
|
118
|
+
this.formField = "".concat(options.id, "_jstItemList");
|
|
115
119
|
this.type = options.type;
|
|
116
120
|
this.componentConfig = options.componentConfig;
|
|
121
|
+
this.dataType = 'object';
|
|
117
122
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
118
123
|
required: true,
|
|
119
124
|
validator: function validator(_, value) {
|
|
@@ -9,15 +9,17 @@ declare class JstSupply implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
20
|
getComponentValue: (r: Record) => any;
|
|
19
21
|
renderExport: (value: any, record: any) => any;
|
|
20
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
22
24
|
searchDefaultConditions: "like";
|
|
23
25
|
type: string;
|
|
@@ -26,8 +26,10 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
26
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
29
30
|
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
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) {
|
|
33
35
|
return !isNull(item);
|
|
@@ -63,12 +65,13 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
63
65
|
return [item === null || item === void 0 ? void 0 : item.supplyId, item === null || item === void 0 ? void 0 : item.supplyName].join('/');
|
|
64
66
|
}).join(',');
|
|
65
67
|
});
|
|
66
|
-
_defineProperty(this, "editRender", function () {
|
|
68
|
+
_defineProperty(this, "editRender", function (p) {
|
|
67
69
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
68
70
|
title: _this.name,
|
|
69
71
|
name: _this.id,
|
|
70
72
|
rules: _this.rules,
|
|
71
73
|
required: false,
|
|
74
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
72
75
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
73
76
|
type: 2
|
|
74
77
|
}))
|
|
@@ -112,11 +115,13 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
112
115
|
this.name = options.name;
|
|
113
116
|
this.id = options.id;
|
|
114
117
|
this.sortField = "".concat(options.id, "_jstItemList");
|
|
118
|
+
this.formField = "".concat(options.id, "_jstItemList");
|
|
115
119
|
this.type = options.type;
|
|
116
120
|
this.componentConfig = options.componentConfig;
|
|
117
121
|
this.isCombinationComponent = false;
|
|
118
122
|
this.canSort = false;
|
|
119
123
|
this.children = [];
|
|
124
|
+
this.dataType = 'object';
|
|
120
125
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
121
126
|
required: true,
|
|
122
127
|
validator: function validator(_, value) {
|
|
@@ -14,10 +14,12 @@ declare class Logistics implements ComponentInterface {
|
|
|
14
14
|
express: Express;
|
|
15
15
|
expressCode: ExpressCode;
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
|
+
formField: string;
|
|
17
18
|
canSort: boolean;
|
|
18
19
|
children: ComponentInterface[];
|
|
20
|
+
dataType: ComponentInterface['dataType'];
|
|
19
21
|
constructor(options: PickOption);
|
|
20
|
-
editRender: (
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
23
|
renderClient: (record: Record) => React.JSX.Element;
|
|
22
24
|
renderPc: () => null;
|
|
23
25
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -28,18 +28,21 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
28
28
|
_defineProperty(this, "express", void 0);
|
|
29
29
|
_defineProperty(this, "expressCode", void 0);
|
|
30
30
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
+
_defineProperty(this, "formField", void 0);
|
|
31
32
|
_defineProperty(this, "canSort", void 0);
|
|
32
33
|
_defineProperty(this, "children", void 0);
|
|
33
|
-
_defineProperty(this, "
|
|
34
|
+
_defineProperty(this, "dataType", void 0);
|
|
35
|
+
_defineProperty(this, "editRender", function (p) {
|
|
34
36
|
var _this$componentConfig, _this$componentConfig2;
|
|
35
37
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
36
38
|
title: _this.name,
|
|
37
39
|
name: _this.id,
|
|
38
40
|
rules: _this.rules,
|
|
41
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
39
42
|
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,
|
|
40
43
|
component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
|
|
41
44
|
options: _this.expressDateInstance.getExpressData(),
|
|
42
|
-
onBlur:
|
|
45
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
43
46
|
}))
|
|
44
47
|
});
|
|
45
48
|
});
|
|
@@ -71,6 +74,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
71
74
|
this.name = options.name;
|
|
72
75
|
this.id = options.id;
|
|
73
76
|
this.sortField = options.id;
|
|
77
|
+
this.formField = options.id;
|
|
74
78
|
this.type = options.type;
|
|
75
79
|
this.componentConfig = options.componentConfig;
|
|
76
80
|
this.expressDateInstance = ExpressData.getInstance();
|
|
@@ -84,6 +88,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
84
88
|
}));
|
|
85
89
|
this.isCombinationComponent = true;
|
|
86
90
|
this.canSort = false;
|
|
91
|
+
this.dataType = 'object';
|
|
87
92
|
this.children = [this.express, this.expressCode];
|
|
88
93
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
89
94
|
validator: function validator(_, value) {
|
|
@@ -12,10 +12,12 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
12
12
|
align: ALignType;
|
|
13
13
|
width: number;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
15
16
|
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
17
18
|
originId: string;
|
|
18
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
+
dataType: ComponentInterface['dataType'];
|
|
19
21
|
constructor(options: PickOption);
|
|
20
22
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
21
23
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -29,7 +31,7 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
29
31
|
mobile: any;
|
|
30
32
|
};
|
|
31
33
|
renderExport: (value: any, record: Record) => string | null;
|
|
32
|
-
editRender: () => React.JSX.Element;
|
|
34
|
+
editRender: (p: any) => React.JSX.Element;
|
|
33
35
|
filterConfig: () => never[];
|
|
34
36
|
}
|
|
35
37
|
export default PaymentTid;
|
|
@@ -24,10 +24,12 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
24
24
|
_defineProperty(this, "align", void 0);
|
|
25
25
|
_defineProperty(this, "width", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "originId", void 0);
|
|
30
31
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
34
|
var _ref;
|
|
33
35
|
var province = record["".concat(_this.originId, "_interceptProvince")];
|
|
@@ -107,12 +109,13 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
107
109
|
}).join("");
|
|
108
110
|
return "".concat(addressText).concat(detail, " ").concat(name).concat(mobile);
|
|
109
111
|
});
|
|
110
|
-
_defineProperty(this, "editRender", function () {
|
|
112
|
+
_defineProperty(this, "editRender", function (p) {
|
|
111
113
|
var _this$componentConfig, _this$componentConfig2;
|
|
112
114
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
113
115
|
title: _this.name,
|
|
114
116
|
name: _this.id,
|
|
115
117
|
rules: _this.rules,
|
|
118
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
116
119
|
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,
|
|
117
120
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
118
121
|
});
|
|
@@ -123,6 +126,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
123
126
|
this.name = "派送地址";
|
|
124
127
|
this.id = "".concat(options.id, "_interceptProvince");
|
|
125
128
|
this.sortField = "".concat(options.id, "_interceptDistrict");
|
|
129
|
+
this.formField = "".concat(options.id, "_interceptDistrict");
|
|
126
130
|
this.type = options.type;
|
|
127
131
|
this.componentConfig = options.componentConfig;
|
|
128
132
|
this.rules = [];
|
|
@@ -131,6 +135,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
131
135
|
this.originId = options.id;
|
|
132
136
|
this.isCombinationComponent = false;
|
|
133
137
|
this.canSort = true;
|
|
138
|
+
this.dataType = 'object';
|
|
134
139
|
this.children = [];
|
|
135
140
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
136
141
|
this.addressDateInstance = AddressData.getInstance();
|
|
@@ -14,9 +14,12 @@ declare class InterceptStatus implements ComponentInterface {
|
|
|
14
14
|
align: ALignType;
|
|
15
15
|
width: number;
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
|
+
formField: string;
|
|
17
18
|
canSort: boolean;
|
|
18
19
|
children: ComponentInterface[];
|
|
19
20
|
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
21
|
+
dataType: ComponentInterface['dataType'];
|
|
22
|
+
options: ComponentInterface['options'];
|
|
20
23
|
constructor(options: PickOption);
|
|
21
24
|
getComponentValue: (r: Record) => any;
|
|
22
25
|
renderStatus: (record: any, w?: number) => React.JSX.Element;
|