@kmkf-fe-packages/services-components 0.26.2-rc.3 → 0.27.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +19 -9
- package/dist/esm/components/Common/index.d.ts +0 -1
- package/dist/esm/components/Common/index.js +3 -76
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +0 -6
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +3 -21
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -9
- package/dist/esm/components/LogisticsTrajectory/index.js +4 -25
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +15 -28
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +7 -12
- package/dist/esm/index.d.ts +1 -3
- package/dist/esm/index.js +0 -2
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +0 -8
- package/package.json +4 -4
- package/dist/esm/components/CommonInput/index.d.ts +0 -34
- package/dist/esm/components/CommonInput/index.js +0 -105
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +0 -27
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +0 -71
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +0 -27
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +0 -71
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +0 -27
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +0 -71
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -33
- package/dist/esm/components/PaymentVoucherCode/index.js +0 -104
|
@@ -6,26 +6,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
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
|
-
import React from
|
|
10
|
-
import { ApaasSelect } from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull, filterFn as _filterFn } from
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var typeMap = {
|
|
16
|
-
BUYER_MESSAGE_NOTICE:
|
|
17
|
-
|
|
18
|
-
disabled: false
|
|
19
|
-
},
|
|
20
|
-
SELECT: {
|
|
21
|
-
key: "select",
|
|
22
|
-
disabled: false
|
|
23
|
-
},
|
|
24
|
-
NEW_PAYMENT_STATUS: {
|
|
25
|
-
key: "newPaymentStatus",
|
|
26
|
-
disabled: true,
|
|
27
|
-
placeholder: "自动获取无需填写"
|
|
28
|
-
}
|
|
16
|
+
BUYER_MESSAGE_NOTICE: 'buyerMessageNotice',
|
|
17
|
+
SELECT: 'select'
|
|
29
18
|
};
|
|
30
19
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
31
20
|
var _this = this,
|
|
@@ -44,7 +33,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
44
33
|
_defineProperty(this, "dataType", void 0);
|
|
45
34
|
_defineProperty(this, "options", void 0);
|
|
46
35
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
47
|
-
return typeMap[type]
|
|
36
|
+
return typeMap[type] || '';
|
|
48
37
|
});
|
|
49
38
|
_defineProperty(this, "editRender", function (p) {
|
|
50
39
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -55,10 +44,8 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
55
44
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
56
45
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
57
46
|
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
|
-
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({
|
|
59
|
-
|
|
60
|
-
}, _this.componentConfig, {
|
|
61
|
-
placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
47
|
+
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
48
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
62
49
|
showSearch: true,
|
|
63
50
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
64
51
|
}))
|
|
@@ -68,27 +55,27 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
68
55
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
69
56
|
id: _this.id,
|
|
70
57
|
label: _this.name,
|
|
71
|
-
value: (record === null || record === void 0 ? void 0 : record[_this.id]) ||
|
|
58
|
+
value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ''
|
|
72
59
|
}) : null;
|
|
73
60
|
});
|
|
74
61
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
75
62
|
var _record;
|
|
76
63
|
var type = _this.type;
|
|
77
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type]
|
|
64
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record !== void 0 ? _record : '--');
|
|
78
65
|
});
|
|
79
66
|
_defineProperty(this, "renderLog", function (r) {
|
|
80
67
|
var type = _this.type;
|
|
81
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type]
|
|
68
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])])) return null;
|
|
82
69
|
return _this.renderPc(undefined, r);
|
|
83
70
|
});
|
|
84
71
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
85
72
|
var type = _this.type;
|
|
86
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type]
|
|
73
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])];
|
|
87
74
|
});
|
|
88
75
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
89
76
|
var _record2;
|
|
90
77
|
var type = _this.type;
|
|
91
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type]
|
|
78
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
92
79
|
});
|
|
93
80
|
_defineProperty(this, "filterConfig", function (item) {
|
|
94
81
|
var _item$config;
|
|
@@ -100,7 +87,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
100
87
|
// 过滤组件id
|
|
101
88
|
name: item.name,
|
|
102
89
|
// 过滤组件名称
|
|
103
|
-
filterComponentType:
|
|
90
|
+
filterComponentType: 'MultipleSelect',
|
|
104
91
|
props: {
|
|
105
92
|
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
106
93
|
},
|
|
@@ -121,7 +108,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
121
108
|
this.isCombinationComponent = false;
|
|
122
109
|
this.canSort = true;
|
|
123
110
|
this.children = [];
|
|
124
|
-
this.dataType =
|
|
111
|
+
this.dataType = 'string';
|
|
125
112
|
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
126
113
|
});
|
|
127
114
|
export default BasicSelect;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BuyerNick | LogisticsInterception | LogisticsMoreInterception | LogisticsMoreTrajectory | LogisticsTrajectory | BasicMultSelect | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus | WdtGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -30,7 +30,6 @@ export var factory = function factory(type, options) {
|
|
|
30
30
|
return new BasicDataTime(options);
|
|
31
31
|
case "SELECT":
|
|
32
32
|
case "BUYER_MESSAGE_NOTICE":
|
|
33
|
-
case "NEW_PAYMENT_STATUS":
|
|
34
33
|
return new BasicSelect(options);
|
|
35
34
|
case "PICTURE":
|
|
36
35
|
return new BasicPicture(options);
|
|
@@ -174,27 +173,23 @@ export var factory = function factory(type, options) {
|
|
|
174
173
|
// case "REISSUE_TRADE_ID":
|
|
175
174
|
// case 'EXCHANGE_TRADE_ID':
|
|
176
175
|
// return new CommonTradeId(options);
|
|
177
|
-
case
|
|
176
|
+
case 'NUMERICAL_CALCULATION':
|
|
178
177
|
return new Calculation(options);
|
|
179
|
-
case
|
|
178
|
+
case 'NODE_DEAD_LINE_INPUT':
|
|
180
179
|
// 工单时效
|
|
181
180
|
return new NodeDeadLine(options);
|
|
182
|
-
case
|
|
181
|
+
case 'HANDLER_DEAD_LINE_INPUT':
|
|
183
182
|
// 处理人时效
|
|
184
183
|
return new HandlerDeadLine(options);
|
|
185
|
-
case
|
|
184
|
+
case 'NODE_STAY_DURATION_INPUT':
|
|
186
185
|
// 工单停留时长
|
|
187
186
|
return new NodeStayDuration(options);
|
|
188
|
-
case
|
|
187
|
+
case 'WLN_GOODS':
|
|
189
188
|
// 万里牛商品
|
|
190
189
|
return new WlnGoods(options);
|
|
191
|
-
case
|
|
190
|
+
case 'WDT_GOODS':
|
|
192
191
|
// 万里牛商品
|
|
193
192
|
return new WdtGoods(options);
|
|
194
|
-
case "BUSINESS_ORDER_NO":
|
|
195
|
-
return new CommonInput(options);
|
|
196
|
-
case "PAYMENT_VOUCHER_CODE":
|
|
197
|
-
return new PaymentVoucherCode(options);
|
|
198
193
|
default:
|
|
199
194
|
return new BasicInput(options);
|
|
200
195
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -70,10 +70,8 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
70
70
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
71
71
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
|
-
export { default as MsgStatus } from
|
|
73
|
+
export { default as MsgStatus } from './components/MsgStatus';
|
|
74
74
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
75
|
-
export { default as CommonInput } from "./components/CommonInput";
|
|
76
|
-
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
77
75
|
export { factory } from "./factory";
|
|
78
76
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
79
77
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/index.js
CHANGED
|
@@ -72,8 +72,6 @@ export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
73
|
export { default as MsgStatus } from "./components/MsgStatus";
|
|
74
74
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
75
|
-
export { default as CommonInput } from "./components/CommonInput";
|
|
76
|
-
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
77
75
|
export { factory } from "./factory";
|
|
78
76
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
79
77
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const replaceCheck: (data: any) => Promise<any>;
|
|
2
|
-
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
3
2
|
export declare const queryAddressData: () => Promise<void>;
|
|
4
3
|
export declare const queryBsAddressData: () => Promise<void>;
|
|
5
4
|
export declare const queryWdtAddressData: () => Promise<void>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -21,14 +21,6 @@ export var replaceCheck = function replaceCheck(data) {
|
|
|
21
21
|
data: data
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
// 获取支付宝电子回单
|
|
25
|
-
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
26
|
-
return request({
|
|
27
|
-
url: '/qy/payment/paymentOrder/getAlipayBillReceipt',
|
|
28
|
-
method: 'post',
|
|
29
|
-
data: data
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
24
|
export var queryAddressData = function queryAddressData() {
|
|
33
25
|
return request({
|
|
34
26
|
url: "/qy/gdfw/template/queryAreas/noLogin",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0-alpha.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.27.0-alpha.0",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.27.0-alpha.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0972e249426cd06922db0bc33f71483b4f6d143b",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class CommonInput implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
rules: any[];
|
|
9
|
-
showContains: boolean;
|
|
10
|
-
onlyContainsString: boolean;
|
|
11
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
-
effects: ComponentInterface["effects"];
|
|
13
|
-
isCombinationComponent: boolean;
|
|
14
|
-
formField: string;
|
|
15
|
-
canSort: boolean;
|
|
16
|
-
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface["dataType"];
|
|
18
|
-
options: ComponentInterface["options"];
|
|
19
|
-
constructor(options: PickOption);
|
|
20
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
21
|
-
renderPc: (value: unknown, record: Record) => any;
|
|
22
|
-
renderLog: (r: Record) => any;
|
|
23
|
-
getComponentValue: (r: Record) => any;
|
|
24
|
-
renderExport: (value: unknown, record: Record) => any;
|
|
25
|
-
editRender: (p: any) => React.JSX.Element;
|
|
26
|
-
filterConfig: (item: ColumnConfig) => {
|
|
27
|
-
searchDefaultConditions: "like";
|
|
28
|
-
type: string;
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
filterComponentType: "Input";
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export default CommonInput;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
-
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; }
|
|
7
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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
|
-
import React from "react";
|
|
10
|
-
import { Input } from "antd";
|
|
11
|
-
import GetFormItem from "../GetFormItem";
|
|
12
|
-
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
-
import { SYMBOL } from "../../constant";
|
|
15
|
-
var INPUT_MAP = {
|
|
16
|
-
BUSINESS_ORDER_NO: {
|
|
17
|
-
key: "businessOrderNo",
|
|
18
|
-
disabled: true,
|
|
19
|
-
placeholder: "自动获取无需填写"
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
23
|
-
var _this = this;
|
|
24
|
-
_classCallCheck(this, CommonInput);
|
|
25
|
-
_defineProperty(this, "name", void 0);
|
|
26
|
-
_defineProperty(this, "id", void 0);
|
|
27
|
-
_defineProperty(this, "sortField", void 0);
|
|
28
|
-
_defineProperty(this, "type", void 0);
|
|
29
|
-
_defineProperty(this, "rules", void 0);
|
|
30
|
-
_defineProperty(this, "showContains", void 0);
|
|
31
|
-
_defineProperty(this, "onlyContainsString", void 0);
|
|
32
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
33
|
-
_defineProperty(this, "effects", void 0);
|
|
34
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
35
|
-
_defineProperty(this, "formField", void 0);
|
|
36
|
-
_defineProperty(this, "canSort", void 0);
|
|
37
|
-
_defineProperty(this, "children", void 0);
|
|
38
|
-
_defineProperty(this, "dataType", void 0);
|
|
39
|
-
_defineProperty(this, "options", void 0);
|
|
40
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
41
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
42
|
-
id: _this.id,
|
|
43
|
-
label: _this.name,
|
|
44
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
45
|
-
}) : null;
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) === undefined) {
|
|
49
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
50
|
-
}
|
|
51
|
-
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)];
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
54
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)])) return null;
|
|
55
|
-
return _this.renderPc(undefined, r);
|
|
56
|
-
});
|
|
57
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
58
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)];
|
|
59
|
-
});
|
|
60
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
61
|
-
var _record;
|
|
62
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
|
|
63
|
-
});
|
|
64
|
-
_defineProperty(this, "editRender", function (p) {
|
|
65
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
66
|
-
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
|
-
title: _this.name,
|
|
68
|
-
name: _this.id,
|
|
69
|
-
rules: _this.rules,
|
|
70
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
71
|
-
display: p === null || p === void 0 ? void 0 : p.display,
|
|
72
|
-
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,
|
|
73
|
-
component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
|
|
74
|
-
placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
75
|
-
disabled: INPUT_MAP[_this.type].disabled
|
|
76
|
-
}))
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
80
|
-
return {
|
|
81
|
-
searchDefaultConditions: SYMBOL.like,
|
|
82
|
-
type: item.type,
|
|
83
|
-
id: "".concat(item.id, "_").concat(INPUT_MAP[_this.type].key),
|
|
84
|
-
// 过滤组件id
|
|
85
|
-
name: item.name,
|
|
86
|
-
// 过滤组件名称
|
|
87
|
-
filterComponentType: "Input"
|
|
88
|
-
};
|
|
89
|
-
});
|
|
90
|
-
this.name = options.name;
|
|
91
|
-
this.id = options.id;
|
|
92
|
-
this.sortField = "".concat(options.id, "_").concat(INPUT_MAP[options.type].key);
|
|
93
|
-
this.formField = "".concat(options.id, "_").concat(INPUT_MAP[options.type].key);
|
|
94
|
-
this.type = options.type;
|
|
95
|
-
this.showContains = false;
|
|
96
|
-
this.onlyContainsString = true;
|
|
97
|
-
this.componentConfig = options.componentConfig;
|
|
98
|
-
this.effects = options.effects;
|
|
99
|
-
this.rules = [];
|
|
100
|
-
this.isCombinationComponent = false;
|
|
101
|
-
this.canSort = !!INPUT_MAP[options.type].canSort;
|
|
102
|
-
this.children = [];
|
|
103
|
-
this.dataType = "string";
|
|
104
|
-
});
|
|
105
|
-
export default CommonInput;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class TrajectoryLastLogisticsInfo implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
parentId: string;
|
|
6
|
-
id: string;
|
|
7
|
-
sortField: string;
|
|
8
|
-
type: string;
|
|
9
|
-
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
-
align: ALignType;
|
|
12
|
-
width: number;
|
|
13
|
-
isCombinationComponent: boolean;
|
|
14
|
-
formField: string;
|
|
15
|
-
canSort: boolean;
|
|
16
|
-
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface["dataType"];
|
|
18
|
-
constructor(options: PickOption);
|
|
19
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
-
renderPc: (value: unknown, record: Record) => any;
|
|
21
|
-
renderLog: (r: Record) => any;
|
|
22
|
-
getComponentValue: (r: Record) => any;
|
|
23
|
-
renderExport: (value: string, record: Record) => any;
|
|
24
|
-
editRender: () => null;
|
|
25
|
-
filterConfig: () => never[];
|
|
26
|
-
}
|
|
27
|
-
export default TrajectoryLastLogisticsInfo;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 "react";
|
|
9
|
-
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
-
var TrajectoryLastLogisticsInfo = /*#__PURE__*/_createClass(function TrajectoryLastLogisticsInfo(options) {
|
|
12
|
-
var _this = this;
|
|
13
|
-
_classCallCheck(this, TrajectoryLastLogisticsInfo);
|
|
14
|
-
_defineProperty(this, "name", void 0);
|
|
15
|
-
_defineProperty(this, "parentId", void 0);
|
|
16
|
-
_defineProperty(this, "id", void 0);
|
|
17
|
-
_defineProperty(this, "sortField", void 0);
|
|
18
|
-
_defineProperty(this, "type", void 0);
|
|
19
|
-
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
-
_defineProperty(this, "align", void 0);
|
|
22
|
-
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "formField", void 0);
|
|
25
|
-
_defineProperty(this, "canSort", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
29
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
|
-
id: _this.id,
|
|
31
|
-
label: _this.name,
|
|
32
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
33
|
-
}) : null;
|
|
34
|
-
});
|
|
35
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
var _record$_this$id;
|
|
37
|
-
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
|
|
38
|
-
});
|
|
39
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
41
|
-
return _this.renderPc(undefined, r);
|
|
42
|
-
});
|
|
43
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
45
|
-
});
|
|
46
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
|
-
var _record$_this$id2;
|
|
48
|
-
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
49
|
-
});
|
|
50
|
-
_defineProperty(this, "editRender", function () {
|
|
51
|
-
return null;
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "filterConfig", function () {
|
|
54
|
-
return [];
|
|
55
|
-
});
|
|
56
|
-
this.name = options.name;
|
|
57
|
-
this.parentId = options.id;
|
|
58
|
-
this.id = "".concat(options.id);
|
|
59
|
-
this.sortField = "".concat(options.id);
|
|
60
|
-
this.formField = "".concat(options.id);
|
|
61
|
-
this.type = options.type;
|
|
62
|
-
this.componentConfig = options.componentConfig;
|
|
63
|
-
this.rules = [];
|
|
64
|
-
this.align = "left";
|
|
65
|
-
this.width = 200;
|
|
66
|
-
this.isCombinationComponent = false;
|
|
67
|
-
this.canSort = false;
|
|
68
|
-
this.dataType = "string";
|
|
69
|
-
this.children = [];
|
|
70
|
-
});
|
|
71
|
-
export default TrajectoryLastLogisticsInfo;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class TrajectoryLastUpdateTime implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
parentId: string;
|
|
6
|
-
id: string;
|
|
7
|
-
sortField: string;
|
|
8
|
-
type: string;
|
|
9
|
-
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
-
align: ALignType;
|
|
12
|
-
width: number;
|
|
13
|
-
isCombinationComponent: boolean;
|
|
14
|
-
formField: string;
|
|
15
|
-
canSort: boolean;
|
|
16
|
-
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface["dataType"];
|
|
18
|
-
constructor(options: PickOption);
|
|
19
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
-
renderPc: (value: unknown, record: Record) => any;
|
|
21
|
-
renderLog: (r: Record) => any;
|
|
22
|
-
getComponentValue: (r: Record) => any;
|
|
23
|
-
renderExport: (value: string, record: Record) => any;
|
|
24
|
-
editRender: () => null;
|
|
25
|
-
filterConfig: () => never[];
|
|
26
|
-
}
|
|
27
|
-
export default TrajectoryLastUpdateTime;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 "react";
|
|
9
|
-
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
-
var TrajectoryLastUpdateTime = /*#__PURE__*/_createClass(function TrajectoryLastUpdateTime(options) {
|
|
12
|
-
var _this = this;
|
|
13
|
-
_classCallCheck(this, TrajectoryLastUpdateTime);
|
|
14
|
-
_defineProperty(this, "name", void 0);
|
|
15
|
-
_defineProperty(this, "parentId", void 0);
|
|
16
|
-
_defineProperty(this, "id", void 0);
|
|
17
|
-
_defineProperty(this, "sortField", void 0);
|
|
18
|
-
_defineProperty(this, "type", void 0);
|
|
19
|
-
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
-
_defineProperty(this, "align", void 0);
|
|
22
|
-
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "formField", void 0);
|
|
25
|
-
_defineProperty(this, "canSort", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
29
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
|
-
id: _this.id,
|
|
31
|
-
label: _this.name,
|
|
32
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
33
|
-
}) : null;
|
|
34
|
-
});
|
|
35
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
var _record$_this$id;
|
|
37
|
-
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
|
|
38
|
-
});
|
|
39
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
41
|
-
return _this.renderPc(undefined, r);
|
|
42
|
-
});
|
|
43
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
45
|
-
});
|
|
46
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
|
-
var _record$_this$id2;
|
|
48
|
-
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
49
|
-
});
|
|
50
|
-
_defineProperty(this, "editRender", function () {
|
|
51
|
-
return null;
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "filterConfig", function () {
|
|
54
|
-
return [];
|
|
55
|
-
});
|
|
56
|
-
this.name = options.name;
|
|
57
|
-
this.parentId = options.id;
|
|
58
|
-
this.id = "".concat(options.id);
|
|
59
|
-
this.sortField = "".concat(options.id);
|
|
60
|
-
this.formField = "".concat(options.id);
|
|
61
|
-
this.type = options.type;
|
|
62
|
-
this.componentConfig = options.componentConfig;
|
|
63
|
-
this.rules = [];
|
|
64
|
-
this.align = "left";
|
|
65
|
-
this.width = 200;
|
|
66
|
-
this.isCombinationComponent = false;
|
|
67
|
-
this.canSort = false;
|
|
68
|
-
this.dataType = "string";
|
|
69
|
-
this.children = [];
|
|
70
|
-
});
|
|
71
|
-
export default TrajectoryLastUpdateTime;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class TrajectoryStatus implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
parentId: string;
|
|
6
|
-
id: string;
|
|
7
|
-
sortField: string;
|
|
8
|
-
type: string;
|
|
9
|
-
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
-
align: ALignType;
|
|
12
|
-
width: number;
|
|
13
|
-
isCombinationComponent: boolean;
|
|
14
|
-
formField: string;
|
|
15
|
-
canSort: boolean;
|
|
16
|
-
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface["dataType"];
|
|
18
|
-
constructor(options: PickOption);
|
|
19
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
-
renderPc: (value: unknown, record: Record) => any;
|
|
21
|
-
renderLog: (r: Record) => any;
|
|
22
|
-
getComponentValue: (r: Record) => any;
|
|
23
|
-
renderExport: (value: string, record: Record) => any;
|
|
24
|
-
editRender: () => null;
|
|
25
|
-
filterConfig: () => never[];
|
|
26
|
-
}
|
|
27
|
-
export default TrajectoryStatus;
|