@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
|
@@ -5,10 +5,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
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); }
|
|
8
|
-
import React from
|
|
9
|
-
import moment from
|
|
8
|
+
import React from "react";
|
|
9
|
+
import moment from "moment";
|
|
10
10
|
import ItemView from "../../commonComponents/ItemView";
|
|
11
|
-
import { isNull, filterFn as _filterFn } from
|
|
11
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
12
|
import { SYMBOL } from "../../constant";
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -24,21 +24,24 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
25
|
_defineProperty(this, "componentConfig", 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);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "format", void 0);
|
|
29
32
|
_defineProperty(this, "getValue", function (value) {
|
|
30
|
-
return moment(value).format(
|
|
33
|
+
return moment(value).format("YYYY-MM-DD HH:mm:ss");
|
|
31
34
|
});
|
|
32
35
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
36
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
37
|
id: _this.id,
|
|
35
38
|
label: _this.name,
|
|
36
|
-
value: _this.getValue(record === null || record === void 0 ? void 0 : record[_this.id]) ||
|
|
39
|
+
value: _this.getValue(record === null || record === void 0 ? void 0 : record[_this.id]) || ""
|
|
37
40
|
}) : null;
|
|
38
41
|
});
|
|
39
42
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
43
|
var _record;
|
|
41
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record :
|
|
44
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
|
|
42
45
|
// if (record?.[`${this.id}`] === undefined) {
|
|
43
46
|
// return <span>--</span>;
|
|
44
47
|
// }
|
|
@@ -57,9 +60,9 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
57
60
|
});
|
|
58
61
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
59
62
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
60
|
-
return
|
|
63
|
+
return "--";
|
|
61
64
|
}
|
|
62
|
-
return moment(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]).format(
|
|
65
|
+
return moment(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]).format("YYYY-MM-DD HH:mm:ss");
|
|
63
66
|
});
|
|
64
67
|
_defineProperty(this, "editRender", function () {
|
|
65
68
|
return null;
|
|
@@ -72,17 +75,17 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
72
75
|
// 过滤组件id
|
|
73
76
|
name: item.name,
|
|
74
77
|
// 过滤组件名称
|
|
75
|
-
filterComponentType:
|
|
78
|
+
filterComponentType: "Date",
|
|
76
79
|
filterFn: function filterFn(value) {
|
|
77
80
|
return function (i) {
|
|
78
|
-
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
81
|
+
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, "");
|
|
79
82
|
return _filterFn.filterDateFn(value, recordDateTime);
|
|
80
83
|
};
|
|
81
84
|
},
|
|
82
85
|
formatFilterValue: function formatFilterValue(val) {
|
|
83
86
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
84
87
|
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
85
|
-
return moment(v).startOf(
|
|
88
|
+
return moment(v).startOf("second").valueOf();
|
|
86
89
|
});
|
|
87
90
|
}
|
|
88
91
|
}
|
|
@@ -91,11 +94,14 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
91
94
|
this.name = options.name;
|
|
92
95
|
this.id = options.id;
|
|
93
96
|
this.sortField = options.id;
|
|
97
|
+
this.formField = options.id;
|
|
94
98
|
this.type = options.type;
|
|
95
99
|
this.componentConfig = options.componentConfig;
|
|
96
100
|
this.rules = [];
|
|
97
101
|
this.isCombinationComponent = false;
|
|
98
102
|
this.canSort = true;
|
|
99
103
|
this.children = [];
|
|
104
|
+
this.dataType = "string";
|
|
105
|
+
this.format = "dateTime";
|
|
100
106
|
});
|
|
101
107
|
export default CommonDataTime;
|
|
@@ -8,8 +8,11 @@ declare class CompletedUser 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: (value: unknown, record: Record) => React.JSX.Element;
|
|
15
18
|
renderLog: () => null;
|
|
@@ -9,7 +9,8 @@ import React from 'react';
|
|
|
9
9
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
10
|
import { SYMBOL } from "../../constant";
|
|
11
11
|
var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
12
|
-
var _this = this
|
|
12
|
+
var _this = this,
|
|
13
|
+
_this$effects2;
|
|
13
14
|
_classCallCheck(this, CompletedUser);
|
|
14
15
|
_defineProperty(this, "name", void 0);
|
|
15
16
|
_defineProperty(this, "id", void 0);
|
|
@@ -18,8 +19,11 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
18
19
|
_defineProperty(this, "componentConfig", void 0);
|
|
19
20
|
_defineProperty(this, "effects", void 0);
|
|
20
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "formField", void 0);
|
|
21
23
|
_defineProperty(this, "canSort", void 0);
|
|
22
24
|
_defineProperty(this, "children", void 0);
|
|
25
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
|
+
_defineProperty(this, "options", void 0);
|
|
23
27
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
24
28
|
var _record;
|
|
25
29
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -63,10 +67,13 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
63
67
|
this.name = "完成人";
|
|
64
68
|
this.id = "completedUserName";
|
|
65
69
|
this.sortField = "completedUserName";
|
|
70
|
+
this.formField = "completedUserName";
|
|
66
71
|
this.type = "COMPLETED_USER_INPUT";
|
|
67
72
|
this.effects = options.effects;
|
|
68
73
|
this.isCombinationComponent = false;
|
|
69
74
|
this.canSort = true;
|
|
70
75
|
this.children = [];
|
|
76
|
+
this.dataType = 'string';
|
|
77
|
+
this.options = ((_this$effects2 = this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.userList) || [];
|
|
71
78
|
});
|
|
72
79
|
export default CompletedUser;
|
|
@@ -10,8 +10,11 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
10
10
|
rules: any[];
|
|
11
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
format: ComponentInterface['format'];
|
|
15
18
|
constructor(options: PickOption);
|
|
16
19
|
getValue: (value: Value) => string | undefined;
|
|
17
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -19,7 +22,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
19
22
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
23
|
getComponentValue: (r: Record) => any;
|
|
21
24
|
renderExport: (value: any, record: Record) => any;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
25
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
26
|
filterConfig: (item: ColumnConfig) => any;
|
|
24
27
|
}
|
|
25
28
|
export default BasicDataTime;
|
|
@@ -31,7 +31,11 @@ export var DateTime = function DateTime(_ref) {
|
|
|
31
31
|
}));
|
|
32
32
|
};
|
|
33
33
|
var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
34
|
-
var _this = this
|
|
34
|
+
var _this = this,
|
|
35
|
+
_this$componentConfig3,
|
|
36
|
+
_this$componentConfig4,
|
|
37
|
+
_this$componentConfig5,
|
|
38
|
+
_this$componentConfig6;
|
|
35
39
|
_classCallCheck(this, BasicDataTime);
|
|
36
40
|
_defineProperty(this, "name", void 0);
|
|
37
41
|
_defineProperty(this, "id", void 0);
|
|
@@ -40,8 +44,11 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
40
44
|
_defineProperty(this, "rules", void 0);
|
|
41
45
|
_defineProperty(this, "componentConfig", void 0);
|
|
42
46
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
47
|
+
_defineProperty(this, "formField", void 0);
|
|
43
48
|
_defineProperty(this, "canSort", void 0);
|
|
44
49
|
_defineProperty(this, "children", void 0);
|
|
50
|
+
_defineProperty(this, "dataType", void 0);
|
|
51
|
+
_defineProperty(this, "format", void 0);
|
|
45
52
|
_defineProperty(this, "getValue", function (value) {
|
|
46
53
|
return Array.isArray(value) ? value.join('~') : value;
|
|
47
54
|
});
|
|
@@ -71,12 +78,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
71
78
|
}
|
|
72
79
|
return Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) ? record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")].join('~') : record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")];
|
|
73
80
|
});
|
|
74
|
-
_defineProperty(this, "editRender", function () {
|
|
81
|
+
_defineProperty(this, "editRender", function (p) {
|
|
75
82
|
var _this$componentConfig, _this$componentConfig2;
|
|
76
83
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
77
84
|
title: _this.name,
|
|
78
85
|
name: _this.id,
|
|
79
86
|
rules: _this.rules,
|
|
87
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
80
88
|
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
89
|
component: /*#__PURE__*/React.createElement(DateTime, _this.componentConfig)
|
|
82
90
|
});
|
|
@@ -118,11 +126,14 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
118
126
|
this.name = options.name;
|
|
119
127
|
this.id = options.id;
|
|
120
128
|
this.sortField = "".concat(options.id, "_dateTime");
|
|
129
|
+
this.formField = "".concat(options.id, "_dateTime");
|
|
121
130
|
this.type = options.type;
|
|
122
131
|
this.componentConfig = options.componentConfig;
|
|
123
132
|
this.rules = [];
|
|
124
133
|
this.isCombinationComponent = false;
|
|
125
134
|
this.canSort = true;
|
|
126
135
|
this.children = [];
|
|
136
|
+
this.dataType = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && (_this$componentConfig4 = _this$componentConfig3.dateType) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.includes('RANGE') ? 'range' : 'string';
|
|
137
|
+
this.format = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && (_this$componentConfig6 = _this$componentConfig5.dateType) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.includes('DATE_TIME') ? 'dateTime' : 'date';
|
|
127
138
|
});
|
|
128
139
|
export default BasicDataTime;
|
|
@@ -9,15 +9,17 @@ declare class EItemEncode implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
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: any) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
20
|
getComponentValue: (r: Record) => any;
|
|
19
21
|
renderExport: (value: unknown, record: Record) => 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;
|
|
@@ -25,8 +25,10 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "effects", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
28
29
|
_defineProperty(this, "canSort", void 0);
|
|
29
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
34
|
id: _this.id,
|
|
@@ -60,13 +62,14 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
60
62
|
return item.outerId;
|
|
61
63
|
}).join(' ');
|
|
62
64
|
});
|
|
63
|
-
_defineProperty(this, "editRender", function () {
|
|
65
|
+
_defineProperty(this, "editRender", function (p) {
|
|
64
66
|
var _this$effects, _this$effects2;
|
|
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(ItemEncode, _extends({}, _this.componentConfig, {
|
|
71
74
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
72
75
|
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
|
@@ -97,6 +100,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
97
100
|
this.name = options.name;
|
|
98
101
|
this.id = options.id;
|
|
99
102
|
this.sortField = "".concat(options.id, "_itemList");
|
|
103
|
+
this.formField = "".concat(options.id, "_itemList");
|
|
100
104
|
this.type = options.type;
|
|
101
105
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
102
106
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -118,5 +122,6 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
118
122
|
return Promise.resolve();
|
|
119
123
|
}
|
|
120
124
|
}] : [];
|
|
125
|
+
this.dataType = 'object';
|
|
121
126
|
});
|
|
122
127
|
export default EItemEncode;
|
|
@@ -9,15 +9,17 @@ declare class EItemId implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
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: any) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: unknown, 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;
|
|
@@ -25,8 +25,10 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "effects", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
28
29
|
_defineProperty(this, "canSort", void 0);
|
|
29
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
34
|
id: _this.id,
|
|
@@ -60,13 +62,14 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
60
62
|
return i.numIid;
|
|
61
63
|
}).join('\n');
|
|
62
64
|
});
|
|
63
|
-
_defineProperty(this, "editRender", function () {
|
|
65
|
+
_defineProperty(this, "editRender", function (p) {
|
|
64
66
|
var _this$componentConfig, _this$effects, _this$effects2;
|
|
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(ItemId, _extends({}, _this.componentConfig, {
|
|
71
74
|
maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
|
|
72
75
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -98,6 +101,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
98
101
|
this.name = options.name;
|
|
99
102
|
this.id = options.id;
|
|
100
103
|
this.sortField = "".concat(options.id, "_itemList");
|
|
104
|
+
this.formField = "".concat(options.id, "_itemList");
|
|
101
105
|
this.type = options.type;
|
|
102
106
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
103
107
|
this.isCombinationComponent = false;
|
|
@@ -119,5 +123,6 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
119
123
|
return Promise.resolve();
|
|
120
124
|
}
|
|
121
125
|
}] : [];
|
|
126
|
+
this.dataType = 'object';
|
|
122
127
|
});
|
|
123
128
|
export default EItemId;
|
|
@@ -9,15 +9,17 @@ declare class EItemSelect implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
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: any) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: unknown, 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: () => never[];
|
|
22
24
|
}
|
|
23
25
|
export default EItemSelect;
|
|
@@ -23,8 +23,10 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
23
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
24
|
_defineProperty(this, "effects", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
32
|
id: _this.id,
|
|
@@ -55,12 +57,13 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
55
57
|
return i.numIid;
|
|
56
58
|
}).join("\n");
|
|
57
59
|
});
|
|
58
|
-
_defineProperty(this, "editRender", function () {
|
|
60
|
+
_defineProperty(this, "editRender", function (p) {
|
|
59
61
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$effects, _this$effects2;
|
|
60
62
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
61
63
|
title: _this.name,
|
|
62
64
|
name: _this.id,
|
|
63
65
|
rules: _this.rules,
|
|
66
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
64
67
|
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,
|
|
65
68
|
component: /*#__PURE__*/React.createElement(ItemSelect, _extends({}, _this.componentConfig, {
|
|
66
69
|
maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
|
|
@@ -76,6 +79,7 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
76
79
|
this.name = options.name;
|
|
77
80
|
this.id = options.id;
|
|
78
81
|
this.sortField = "".concat(options.id, "_itemList");
|
|
82
|
+
this.formField = "".concat(options.id, "_itemList");
|
|
79
83
|
this.type = options.type;
|
|
80
84
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
81
85
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -83,5 +87,6 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
83
87
|
this.isCombinationComponent = false;
|
|
84
88
|
this.canSort = false;
|
|
85
89
|
this.children = [];
|
|
90
|
+
this.dataType = 'object';
|
|
86
91
|
});
|
|
87
92
|
export default EItemSelect;
|
|
@@ -8,15 +8,17 @@ declare class ErpTradeId 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: (item: ColumnConfig) => {
|
|
21
23
|
searchDefaultConditions: "in";
|
|
22
24
|
type: string;
|
|
@@ -21,8 +21,10 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
21
21
|
_defineProperty(this, "rules", void 0);
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "formField", void 0);
|
|
24
25
|
_defineProperty(this, "canSort", void 0);
|
|
25
26
|
_defineProperty(this, "children", void 0);
|
|
27
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
27
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
28
30
|
id: _this.id,
|
|
@@ -45,12 +47,13 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
45
47
|
var _record2;
|
|
46
48
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
47
49
|
});
|
|
48
|
-
_defineProperty(this, "editRender", function () {
|
|
50
|
+
_defineProperty(this, "editRender", function (p) {
|
|
49
51
|
var _this$componentConfig, _this$componentConfig2;
|
|
50
52
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
51
53
|
title: _this.name,
|
|
52
54
|
name: _this.id,
|
|
53
55
|
rules: _this.rules,
|
|
56
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
54
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,
|
|
55
58
|
component: /*#__PURE__*/React.createElement(TradeId, null)
|
|
56
59
|
});
|
|
@@ -77,11 +80,13 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
77
80
|
this.name = options.name;
|
|
78
81
|
this.id = options.id;
|
|
79
82
|
this.sortField = "".concat(options.id, "_tradeId");
|
|
83
|
+
this.formField = "".concat(options.id, "_tradeId");
|
|
80
84
|
this.type = options.type;
|
|
81
85
|
this.componentConfig = options.componentConfig;
|
|
82
86
|
this.rules = [];
|
|
83
87
|
this.isCombinationComponent = false;
|
|
84
88
|
this.canSort = true;
|
|
85
89
|
this.children = [];
|
|
90
|
+
this.dataType = 'string';
|
|
86
91
|
});
|
|
87
92
|
export default ErpTradeId;
|
|
@@ -12,15 +12,18 @@ declare class Express implements ComponentInterface {
|
|
|
12
12
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
13
|
width: number;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
15
16
|
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
18
|
+
dataType: ComponentInterface['dataType'];
|
|
19
|
+
options: ComponentInterface['options'];
|
|
17
20
|
constructor(options: PickOption);
|
|
18
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
22
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
23
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
24
|
getComponentValue: (r: Record) => any;
|
|
22
25
|
renderExport: (value: string, record: Record) => any;
|
|
23
|
-
editRender: () => React.JSX.Element;
|
|
26
|
+
editRender: (p: any) => React.JSX.Element;
|
|
24
27
|
filterConfig: (item: ColumnConfig) => {
|
|
25
28
|
searchDefaultConditions: "in";
|
|
26
29
|
type: string;
|
|
@@ -25,8 +25,11 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
25
25
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
26
26
|
_defineProperty(this, "width", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
28
29
|
_defineProperty(this, "canSort", void 0);
|
|
29
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
32
|
+
_defineProperty(this, "options", void 0);
|
|
30
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
35
|
id: _this.id,
|
|
@@ -50,12 +53,13 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
50
53
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
54
|
return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
52
55
|
});
|
|
53
|
-
_defineProperty(this, "editRender", function () {
|
|
56
|
+
_defineProperty(this, "editRender", function (p) {
|
|
54
57
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
55
58
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
56
59
|
title: _this.name,
|
|
57
60
|
name: _this.id,
|
|
58
61
|
rules: _this.rules,
|
|
62
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
59
63
|
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
64
|
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, {
|
|
61
65
|
options: _this.expressDateInstance.getExpressData()
|
|
@@ -83,6 +87,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
83
87
|
this.name = options.name;
|
|
84
88
|
this.id = options.id;
|
|
85
89
|
this.sortField = options.id;
|
|
90
|
+
this.formField = options.id;
|
|
86
91
|
this.type = options.type;
|
|
87
92
|
this.componentConfig = options.componentConfig;
|
|
88
93
|
this.rules = [];
|
|
@@ -92,5 +97,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
92
97
|
this.isCombinationComponent = false;
|
|
93
98
|
this.canSort = true;
|
|
94
99
|
this.children = [];
|
|
100
|
+
this.dataType = 'string';
|
|
101
|
+
this.options = this.expressDateInstance.getExpressData() || [];
|
|
95
102
|
});
|
|
96
103
|
export default Express;
|
|
@@ -10,15 +10,17 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
10
10
|
align: ALignType;
|
|
11
11
|
width: number;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
15
17
|
constructor(options: PickOption);
|
|
16
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
19
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
20
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
21
|
getComponentValue: (r: Record) => any;
|
|
20
22
|
renderExport: (value: string, record: Record) => any;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
23
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
24
|
filterConfig: (item: ColumnConfig) => {
|
|
23
25
|
searchDefaultConditions: "like";
|
|
24
26
|
type: string;
|
|
@@ -24,8 +24,10 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(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);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
33
|
id: _this.id,
|
|
@@ -48,12 +50,13 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
48
50
|
var _record$_this$id2;
|
|
49
51
|
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
50
52
|
});
|
|
51
|
-
_defineProperty(this, "editRender", function () {
|
|
53
|
+
_defineProperty(this, "editRender", function (p) {
|
|
52
54
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
53
55
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
54
56
|
title: _this.name,
|
|
55
57
|
name: _this.id,
|
|
56
58
|
rules: _this.rules,
|
|
59
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
57
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,
|
|
58
61
|
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
|
|
59
62
|
});
|
|
@@ -76,6 +79,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
76
79
|
this.name = options.name;
|
|
77
80
|
this.id = options.id;
|
|
78
81
|
this.sortField = options.id;
|
|
82
|
+
this.formField = options.id;
|
|
79
83
|
this.type = options.type;
|
|
80
84
|
this.componentConfig = options.componentConfig;
|
|
81
85
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
@@ -90,6 +94,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
90
94
|
this.width = 200;
|
|
91
95
|
this.isCombinationComponent = false;
|
|
92
96
|
this.canSort = true;
|
|
97
|
+
this.dataType = 'string';
|
|
93
98
|
this.children = [];
|
|
94
99
|
});
|
|
95
100
|
export default ExpressCode;
|
|
@@ -10,8 +10,11 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
workOrderStatus: any;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
options: ComponentInterface['options'];
|
|
15
18
|
constructor(options: PickOption);
|
|
16
19
|
renderMenu: (record: Record) => React.JSX.Element;
|
|
17
20
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -19,7 +22,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
19
22
|
getComponentValue: (r: Record) => any;
|
|
20
23
|
renderExport: (value: any, record: Record) => any;
|
|
21
24
|
renderClient: () => null;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
25
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
26
|
filterConfig: (item: ColumnConfig) => {
|
|
24
27
|
searchDefaultConditions: "in";
|
|
25
28
|
type: string;
|