@kmkf-fe-packages/services-components 0.26.2-alpha.1 → 0.26.2-rc.2
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 +0 -1
- package/dist/esm/commonComponents/SelectMark/index.js +2 -6
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +9 -19
- package/dist/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +76 -3
- package/dist/esm/components/CommonInput/index.d.ts +44 -0
- package/dist/esm/components/CommonInput/index.js +146 -0
- package/dist/esm/components/CompletedUser/index.js +1 -1
- package/dist/esm/components/FlowMarkSelect/index.js +2 -3
- package/dist/esm/components/FlowStatusSelect/index.js +0 -1
- package/dist/esm/components/FlowTag/index.js +1 -1
- package/dist/esm/components/Handler/index.js +1 -1
- package/dist/esm/components/HandlerDeadLine/index.js +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +31 -0
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +88 -0
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.d.ts +46 -0
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +111 -0
- package/dist/esm/components/{FlowWorkOrderStatus/index.d.ts → LogisticsMoreInterception/InterceptType.d.ts} +16 -12
- package/dist/esm/components/LogisticsMoreInterception/InterceptType.js +96 -0
- package/dist/esm/components/LogisticsMoreInterception/columnHeader.d.ts +5 -0
- package/dist/esm/components/LogisticsMoreInterception/columnHeader.js +55 -0
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +69 -0
- package/dist/esm/components/LogisticsMoreInterception/index.js +184 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptCompany.d.ts +39 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptCompany.js +88 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptItem.d.ts +34 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptItem.js +81 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +35 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +82 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.d.ts +34 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.js +81 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +6 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +23 -5
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +25 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +27 -0
- package/dist/esm/components/{NodeInput/index.js → LogisticsTrajectory/trajectoryStatus.js} +33 -20
- package/dist/esm/components/MultSelect/index.d.ts +4 -4
- package/dist/esm/components/MultSelect/index.js +13 -13
- package/dist/esm/components/NodeDeadLine/index.js +1 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
- package/dist/esm/components/{FlowWorkOrderStatus → PaymentVoucherCode}/index.js +46 -85
- package/dist/esm/components/PlatForm/index.js +1 -1
- package/dist/esm/components/ShopInput/index.js +1 -1
- package/dist/esm/constant.js +12 -13
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +10 -11
- package/dist/esm/index.d.ts +4 -3
- package/dist/esm/index.js +3 -2
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +8 -0
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm/components/NodeInput/index.d.ts +0 -24
|
@@ -0,0 +1,184 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
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); }
|
|
5
|
+
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); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
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); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { Space } from "antd";
|
|
13
|
+
import { LogisticsMoreInterception } from "@kmkf-fe-packages/basic-components";
|
|
14
|
+
import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull, AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
+
import GetFormItem from "../GetFormItem";
|
|
17
|
+
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
18
|
+
import InterceptSnapshot from "./interceptSnapshot";
|
|
19
|
+
import InterceptAddress from "./InterceptAddress";
|
|
20
|
+
import InterceptType from "./InterceptType";
|
|
21
|
+
import InterceptStatus from "./InterceptStatus";
|
|
22
|
+
import InterceptCode from "./interceptItem";
|
|
23
|
+
import Express from "./interceptCompany";
|
|
24
|
+
import ColumnHeader from "./columnHeader";
|
|
25
|
+
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
26
|
+
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
27
|
+
var _this = this,
|
|
28
|
+
_this$componentConfig3;
|
|
29
|
+
_classCallCheck(this, Logistics);
|
|
30
|
+
_defineProperty(this, "name", void 0);
|
|
31
|
+
_defineProperty(this, "columnHeader", void 0);
|
|
32
|
+
_defineProperty(this, "id", void 0);
|
|
33
|
+
_defineProperty(this, "sortField", void 0);
|
|
34
|
+
_defineProperty(this, "type", void 0);
|
|
35
|
+
_defineProperty(this, "rules", void 0);
|
|
36
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
37
|
+
_defineProperty(this, "interceptAddress", void 0);
|
|
38
|
+
_defineProperty(this, "interceptType", void 0);
|
|
39
|
+
_defineProperty(this, "interceptLogisticsStatus", void 0);
|
|
40
|
+
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
41
|
+
_defineProperty(this, "interceptSnapshot", void 0);
|
|
42
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
43
|
+
_defineProperty(this, "formField", void 0);
|
|
44
|
+
_defineProperty(this, "canSort", void 0);
|
|
45
|
+
_defineProperty(this, "children", void 0);
|
|
46
|
+
_defineProperty(this, "express", void 0);
|
|
47
|
+
_defineProperty(this, "expressCode", void 0);
|
|
48
|
+
_defineProperty(this, "expressDateInstance", void 0);
|
|
49
|
+
_defineProperty(this, "expressInterceptData", void 0);
|
|
50
|
+
_defineProperty(this, "logisticsAddressData", void 0);
|
|
51
|
+
_defineProperty(this, "addressDateInstance", void 0);
|
|
52
|
+
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
53
|
+
_defineProperty(this, "effects", void 0);
|
|
54
|
+
_defineProperty(this, "dataType", void 0);
|
|
55
|
+
_defineProperty(this, "renderInfo", function () {
|
|
56
|
+
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
57
|
+
return /*#__PURE__*/React.createElement(Space, {
|
|
58
|
+
wrap: true
|
|
59
|
+
}, list.map(function (item, index) {
|
|
60
|
+
var _ref, _this$expressIntercep;
|
|
61
|
+
var addressText = (_ref = item.interceptAddress || []) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
|
|
62
|
+
return _this.addressDateInstance.getNameByCode(suffix);
|
|
63
|
+
}).join("");
|
|
64
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", item.interceptCode) : null, item.interceptAddress.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, " ", item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
65
|
+
modelWidth: 500,
|
|
66
|
+
interceptCompany: item.interceptCompany,
|
|
67
|
+
interceptCode: item.interceptCode,
|
|
68
|
+
interceptSenderMobile: item.interceptSenderMobile
|
|
69
|
+
})) : null, item.interceptLogisticsSnapshot ? /*#__PURE__*/React.createElement("div", null, "\u5FEB\u7167\uFF1A", item.interceptLogisticsSnapshot) : null);
|
|
70
|
+
}));
|
|
71
|
+
});
|
|
72
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
73
|
+
return !isNull(record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
74
|
+
id: _this.id,
|
|
75
|
+
label: _this.name,
|
|
76
|
+
value: _this.renderInfo(record[_this.id])
|
|
77
|
+
}) : null;
|
|
78
|
+
});
|
|
79
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
80
|
+
return !isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) ? _this.renderInfo(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) : null;
|
|
81
|
+
});
|
|
82
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
83
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")];
|
|
84
|
+
});
|
|
85
|
+
_defineProperty(this, "renderPc", function () {
|
|
86
|
+
return null;
|
|
87
|
+
});
|
|
88
|
+
_defineProperty(this, "renderExport", function () {
|
|
89
|
+
return null;
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "editRender", function (p) {
|
|
92
|
+
var _this$componentConfig, _this$componentConfig2, _this$effects;
|
|
93
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
94
|
+
title: _this.name,
|
|
95
|
+
name: _this.id,
|
|
96
|
+
rules: _this.rules,
|
|
97
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
98
|
+
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,
|
|
99
|
+
component: /*#__PURE__*/React.createElement(LogisticsMoreInterception, _extends({}, _this.componentConfig, {
|
|
100
|
+
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
101
|
+
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
|
|
102
|
+
}))
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
106
|
+
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
107
|
+
subKey: "logisticsInterceptCompanyList"
|
|
108
|
+
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
109
|
+
subKey: "logisticsInterceptCodeList"
|
|
110
|
+
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item)];
|
|
111
|
+
});
|
|
112
|
+
this.name = options.name;
|
|
113
|
+
this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
|
|
114
|
+
name: options.name
|
|
115
|
+
});
|
|
116
|
+
this.id = options.id;
|
|
117
|
+
this.sortField = "".concat(options.id, "_logisticsInterceptList");
|
|
118
|
+
this.formField = "".concat(options.id);
|
|
119
|
+
this.type = options.type;
|
|
120
|
+
this.componentConfig = options.componentConfig;
|
|
121
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
122
|
+
this.expressDateInstance = ExpressData.getInstance();
|
|
123
|
+
this.expressInterceptData = ExpressInterceptData.getInstance();
|
|
124
|
+
this.logisticsAddressData = LogisticsAddressData.getInstance();
|
|
125
|
+
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
126
|
+
this.interceptAddress = new InterceptAddress(options);
|
|
127
|
+
this.interceptType = new InterceptType(options);
|
|
128
|
+
this.interceptLogisticsStatus = new InterceptStatus(options);
|
|
129
|
+
this.interceptSenderMobile = new InterceptSenderMobile(options);
|
|
130
|
+
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
131
|
+
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
132
|
+
id: "".concat(options.id, "_logisticsInterceptCompanyList"),
|
|
133
|
+
name: "物流信息"
|
|
134
|
+
}));
|
|
135
|
+
this.expressCode = new InterceptCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
136
|
+
id: "".concat(options.id, "_logisticsInterceptCodeList"),
|
|
137
|
+
name: "物流单号"
|
|
138
|
+
}));
|
|
139
|
+
this.isCombinationComponent = true;
|
|
140
|
+
this.canSort = false;
|
|
141
|
+
this.dataType = "object";
|
|
142
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot];
|
|
143
|
+
this.rules = [{
|
|
144
|
+
required: (_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required,
|
|
145
|
+
validator: function validator(_, value) {
|
|
146
|
+
if (value.some(function (t) {
|
|
147
|
+
return !(t !== null && t !== void 0 && t.interceptCompany) || !(t !== null && t !== void 0 && t.interceptCode);
|
|
148
|
+
})) {
|
|
149
|
+
return Promise.reject(new Error("请填写物流信息"));
|
|
150
|
+
}
|
|
151
|
+
if (value.some(function (t) {
|
|
152
|
+
return !(t !== null && t !== void 0 && t.interceptType);
|
|
153
|
+
})) {
|
|
154
|
+
return Promise.reject(new Error("请选择拦截类型"));
|
|
155
|
+
}
|
|
156
|
+
var hasNoAddress = value.some(function (t) {
|
|
157
|
+
var _t$interceptAddress;
|
|
158
|
+
var showAddress = _this.expressInterceptData.getShowNewAddressMap()["".concat(t === null || t === void 0 ? void 0 : t.interceptType)];
|
|
159
|
+
return showAddress && (!(t !== null && t !== void 0 && (_t$interceptAddress = t.interceptAddress) !== null && _t$interceptAddress !== void 0 && _t$interceptAddress.length) || !(t !== null && t !== void 0 && t.interceptDetail) || !(t !== null && t !== void 0 && t.interceptReceiverName) || !(t !== null && t !== void 0 && t.interceptReceiverMobile));
|
|
160
|
+
});
|
|
161
|
+
if (hasNoAddress) {
|
|
162
|
+
return Promise.reject(new Error("\u8BF7\u586B\u5199\u6D3E\u9001\u5730\u5740"));
|
|
163
|
+
}
|
|
164
|
+
var hasNoSender = value.some(function (t) {
|
|
165
|
+
var showSender = _this.expressInterceptData.getShowSenderMobileMap()["".concat(t === null || t === void 0 ? void 0 : t.interceptType)];
|
|
166
|
+
return showSender && !(t !== null && t !== void 0 && t.interceptSenderMobile);
|
|
167
|
+
});
|
|
168
|
+
if (hasNoSender) {
|
|
169
|
+
return Promise.reject(new Error("\u8BF7\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"));
|
|
170
|
+
}
|
|
171
|
+
var hasErrorSender = value.some(function (t) {
|
|
172
|
+
var _t$interceptSenderMob;
|
|
173
|
+
var showSender = _this.expressInterceptData.getShowSenderMobileMap()["".concat(t === null || t === void 0 ? void 0 : t.interceptType)];
|
|
174
|
+
return showSender && (t === null || t === void 0 ? void 0 : t.interceptSenderMobile) && !(t !== null && t !== void 0 && (_t$interceptSenderMob = t.interceptSenderMobile) !== null && _t$interceptSenderMob !== void 0 && _t$interceptSenderMob.match(/^[1][0-9]{10}$/));
|
|
175
|
+
});
|
|
176
|
+
if (hasErrorSender) {
|
|
177
|
+
return Promise.reject(new Error("\u8BF7\u586B\u5199\u6B63\u786E\u7684\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"));
|
|
178
|
+
}
|
|
179
|
+
return Promise.resolve();
|
|
180
|
+
}
|
|
181
|
+
}];
|
|
182
|
+
this.addressDateInstance = AddressData.getInstance();
|
|
183
|
+
});
|
|
184
|
+
export default Logistics;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
|
+
declare class InterceptionCompany implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
|
+
width: number;
|
|
14
|
+
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
16
|
+
canSort: boolean;
|
|
17
|
+
children: ComponentInterface[];
|
|
18
|
+
dataType: ComponentInterface['dataType'];
|
|
19
|
+
options: ComponentInterface['options'];
|
|
20
|
+
constructor(options: PickOption);
|
|
21
|
+
renderCompany: (record: any) => React.JSX.Element;
|
|
22
|
+
renderClient: () => null;
|
|
23
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
24
|
+
renderLog: () => null;
|
|
25
|
+
getComponentValue: (r: Record) => any;
|
|
26
|
+
renderExport: (value: string, record: Record) => any;
|
|
27
|
+
editRender: () => null;
|
|
28
|
+
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
searchDefaultConditions: "in";
|
|
30
|
+
type: string;
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
filterComponentType: "MultipleSelect";
|
|
34
|
+
props: {
|
|
35
|
+
options: any[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export default InterceptionCompany;
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import { SYMBOL } from "../../constant";
|
|
12
|
+
var InterceptionCompany = /*#__PURE__*/_createClass(function InterceptionCompany(options) {
|
|
13
|
+
var _this = this;
|
|
14
|
+
_classCallCheck(this, InterceptionCompany);
|
|
15
|
+
_defineProperty(this, "name", 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, "expressDateInstance", void 0);
|
|
23
|
+
_defineProperty(this, "width", void 0);
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "formField", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
|
+
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
|
+
_defineProperty(this, "options", void 0);
|
|
30
|
+
_defineProperty(this, "renderCompany", function (record) {
|
|
31
|
+
var list = record[_this.id] || [];
|
|
32
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), _this.expressDateInstance.getExpressNameByCode(item) || item);
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "renderClient", function () {
|
|
37
|
+
return null;
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
+
if (isNull(record === null || record === void 0 ? void 0 : record[_this.id])) {
|
|
41
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
42
|
+
}
|
|
43
|
+
return _this.renderCompany(record);
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "renderLog", function () {
|
|
46
|
+
return null;
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).map(function (t) {
|
|
50
|
+
return _this.expressDateInstance.getExpressNameByCode(t);
|
|
51
|
+
}).join(',');
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
|
+
return _this.getComponentValue(record) || '--';
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "editRender", function () {
|
|
57
|
+
return null;
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
60
|
+
var subKey = item.subKey;
|
|
61
|
+
return {
|
|
62
|
+
searchDefaultConditions: SYMBOL.in,
|
|
63
|
+
type: item.type,
|
|
64
|
+
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
65
|
+
name: "".concat(item.name, "-\u7269\u6D41\u4FE1\u606F"),
|
|
66
|
+
filterComponentType: 'MultipleSelect',
|
|
67
|
+
props: {
|
|
68
|
+
options: _this.expressDateInstance.getExpressData() || []
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
this.name = options.name;
|
|
73
|
+
this.id = options.id;
|
|
74
|
+
this.sortField = options.id;
|
|
75
|
+
this.formField = options.id;
|
|
76
|
+
this.type = options.type;
|
|
77
|
+
this.componentConfig = options.componentConfig;
|
|
78
|
+
this.rules = [];
|
|
79
|
+
this.align = 'left';
|
|
80
|
+
this.expressDateInstance = ExpressData.getInstance();
|
|
81
|
+
this.width = 200;
|
|
82
|
+
this.isCombinationComponent = false;
|
|
83
|
+
this.canSort = false;
|
|
84
|
+
this.children = [];
|
|
85
|
+
this.dataType = 'object';
|
|
86
|
+
this.options = this.expressDateInstance.getExpressData() || [];
|
|
87
|
+
});
|
|
88
|
+
export default InterceptionCompany;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare class InterceptItem implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
align: ALignType;
|
|
11
|
+
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
constructor(options: PickOption);
|
|
18
|
+
renderItem: (record: any) => React.JSX.Element | "--";
|
|
19
|
+
renderClient: () => null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element | "--";
|
|
21
|
+
renderLog: () => null;
|
|
22
|
+
getComponentValue: (r: Record) => any;
|
|
23
|
+
renderExport: (value: string, record: Record) => any;
|
|
24
|
+
editRender: () => null;
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "in";
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "Input";
|
|
31
|
+
formatFilterValue: (input: string) => string | string[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export default InterceptItem;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { SYMBOL, batchInput } from "../../constant";
|
|
11
|
+
var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, InterceptItem);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "align", void 0);
|
|
21
|
+
_defineProperty(this, "width", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
26
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
|
+
_defineProperty(this, "renderItem", function (record) {
|
|
28
|
+
var list = record[_this.id] || [];
|
|
29
|
+
if (isNull(list)) return '--';
|
|
30
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
|
|
32
|
+
}));
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderClient", function () {
|
|
35
|
+
return null;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
|
+
return _this.renderItem(record);
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderLog", function () {
|
|
41
|
+
return null;
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
+
var _r$_this$id;
|
|
45
|
+
return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(',');
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
|
+
var _this$getComponentVal;
|
|
49
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "editRender", function () {
|
|
52
|
+
return null;
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
55
|
+
var subKey = item.subKey;
|
|
56
|
+
return {
|
|
57
|
+
searchDefaultConditions: SYMBOL.in,
|
|
58
|
+
type: item.type,
|
|
59
|
+
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
60
|
+
name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
|
|
61
|
+
filterComponentType: 'Input',
|
|
62
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
63
|
+
return batchInput(input);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
this.name = options.name;
|
|
68
|
+
this.id = options.id;
|
|
69
|
+
this.sortField = options.id;
|
|
70
|
+
this.formField = options.id;
|
|
71
|
+
this.type = options.type;
|
|
72
|
+
this.componentConfig = options.componentConfig;
|
|
73
|
+
this.rules = [];
|
|
74
|
+
this.align = 'left';
|
|
75
|
+
this.width = 200;
|
|
76
|
+
this.isCombinationComponent = false;
|
|
77
|
+
this.canSort = false;
|
|
78
|
+
this.dataType = 'object';
|
|
79
|
+
this.children = [];
|
|
80
|
+
});
|
|
81
|
+
export default InterceptItem;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare class InterceptSenderMobile implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
companyId: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
effects: ComponentInterface['effects'];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
width: number;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
sortField: string;
|
|
15
|
+
formField: string;
|
|
16
|
+
canSort: boolean;
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
|
+
children: ComponentInterface[];
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
renderMobile: (record: any) => React.JSX.Element;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
22
|
+
renderClient: () => null;
|
|
23
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | null;
|
|
24
|
+
renderLog: () => null;
|
|
25
|
+
renderExport: (value: any, record: Record) => any;
|
|
26
|
+
editRender: () => null;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "like";
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "Input";
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export default InterceptSenderMobile;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { SYMBOL } from "../../constant";
|
|
11
|
+
var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMobile(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, InterceptSenderMobile);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "companyId", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "effects", void 0);
|
|
21
|
+
_defineProperty(this, "align", void 0);
|
|
22
|
+
_defineProperty(this, "width", void 0);
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "sortField", void 0);
|
|
25
|
+
_defineProperty(this, "formField", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "renderMobile", function (record) {
|
|
30
|
+
var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
|
|
31
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item.interceptSenderMobile);
|
|
33
|
+
}));
|
|
34
|
+
});
|
|
35
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
36
|
+
return ((r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || []).map(function (t) {
|
|
37
|
+
return t.interceptSenderMobile;
|
|
38
|
+
}).join(',');
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderClient", function () {
|
|
41
|
+
return null;
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
44
|
+
var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")];
|
|
45
|
+
return !isNull(logisticsInterceptList) ? _this.renderMobile(record) : null;
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderLog", function () {
|
|
48
|
+
return null;
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
|
+
var _this$getComponentVal;
|
|
52
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "editRender", function () {
|
|
55
|
+
return null;
|
|
56
|
+
});
|
|
57
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
58
|
+
return {
|
|
59
|
+
searchDefaultConditions: SYMBOL.like,
|
|
60
|
+
type: item.type,
|
|
61
|
+
id: "".concat(item.id, "_logisticsInterceptList"),
|
|
62
|
+
name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
|
|
63
|
+
filterComponentType: 'Input'
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
this.name = '发件人手机号';
|
|
67
|
+
this.id = "".concat(options.id, "_interceptMobileList");
|
|
68
|
+
this.companyId = "".concat(options.id);
|
|
69
|
+
this.formField = "".concat(options.id);
|
|
70
|
+
this.sortField = "".concat(options.id);
|
|
71
|
+
this.dataType = 'string';
|
|
72
|
+
this.type = options.type;
|
|
73
|
+
this.componentConfig = options.componentConfig;
|
|
74
|
+
this.rules = [];
|
|
75
|
+
this.align = 'left';
|
|
76
|
+
this.width = 200;
|
|
77
|
+
this.isCombinationComponent = false;
|
|
78
|
+
this.canSort = false;
|
|
79
|
+
this.children = [];
|
|
80
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
81
|
+
});
|
|
82
|
+
export default InterceptSenderMobile;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class InterceptSnapshot implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
rules: any[];
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
effects: ComponentInterface["effects"];
|
|
10
|
+
align: ALignType;
|
|
11
|
+
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
sortField: string;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
17
|
+
children: ComponentInterface[];
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderSnapshot: (record: any) => React.JSX.Element;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderClient: () => null;
|
|
22
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | "--";
|
|
23
|
+
renderLog: () => null;
|
|
24
|
+
renderExport: (value: any, record: Record) => any;
|
|
25
|
+
editRender: () => null;
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: "like";
|
|
28
|
+
type: string;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "Input";
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export default InterceptSnapshot;
|