@kmkf-fe-packages/services-components 0.8.21-alpha.4 → 0.9.1-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/dist/esm/components/CommonMultiStatus/index.d.ts +1 -1
- package/dist/esm/components/CommonMultiStatus/index.js +3 -3
- package/dist/esm/components/CommonSystemOrder/index.d.ts +1 -1
- package/dist/esm/components/CommonSystemOrder/index.js +4 -4
- package/dist/esm/components/FlowMarkSelect/index.d.ts +7 -5
- package/dist/esm/components/FlowMarkSelect/index.js +69 -51
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -4
- package/dist/esm/components/LogisticsInterception/index.js +5 -9
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +1 -1
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -3
- package/dist/esm/components/TradeId/index.js +1 -1
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/package.json +4 -4
- package/dist/esm/commonComponents/SelectMark/index.d.ts +0 -8
- package/dist/esm/commonComponents/SelectMark/index.js +0 -81
- package/dist/esm/components/LogisticsInterception/interceptSnapshot.d.ts +0 -35
- package/dist/esm/components/LogisticsInterception/interceptSnapshot.js +0 -84
- /package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.css +0 -0
- /package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.js +0 -0
- /package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.json +0 -0
- /package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.ttf +0 -0
- /package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.woff +0 -0
- /package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.woff2 +0 -0
|
@@ -78,7 +78,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
78
78
|
return e.stopPropagation();
|
|
79
79
|
}
|
|
80
80
|
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
81
|
-
list:
|
|
81
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
82
82
|
valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
|
|
83
83
|
failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
|
|
84
84
|
options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options
|
|
@@ -118,7 +118,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
118
118
|
});
|
|
119
119
|
_defineProperty(this, "filterConfig", function (item) {
|
|
120
120
|
var _typeMap$_this$type13;
|
|
121
|
-
return {
|
|
121
|
+
return [{
|
|
122
122
|
searchDefaultConditions: SYMBOL.like,
|
|
123
123
|
type: item.type,
|
|
124
124
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.code),
|
|
@@ -130,7 +130,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
130
130
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.code), value);
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
};
|
|
133
|
+
}];
|
|
134
134
|
});
|
|
135
135
|
this.name = options.name;
|
|
136
136
|
this.id = options.id;
|
|
@@ -23,8 +23,8 @@ var typeMap = {
|
|
|
23
23
|
valueKey: "deliveryNo"
|
|
24
24
|
},
|
|
25
25
|
RETURN_GOODS_TRADE_ID: {
|
|
26
|
-
key: "
|
|
27
|
-
code: "
|
|
26
|
+
key: "returnGoodsTradeIdList",
|
|
27
|
+
code: "returnGoodsTradeIds",
|
|
28
28
|
name: "退货单id",
|
|
29
29
|
type: 2,
|
|
30
30
|
valueKey: "returnGoodsTradeId"
|
|
@@ -109,7 +109,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
109
109
|
});
|
|
110
110
|
_defineProperty(this, "filterConfig", function (item) {
|
|
111
111
|
var _typeMap$_this$type10;
|
|
112
|
-
return {
|
|
112
|
+
return [{
|
|
113
113
|
searchDefaultConditions: SYMBOL.like,
|
|
114
114
|
type: item.type,
|
|
115
115
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code),
|
|
@@ -121,7 +121,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
121
121
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.code), value);
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
};
|
|
124
|
+
}];
|
|
125
125
|
});
|
|
126
126
|
this.name = options.name;
|
|
127
127
|
this.id = options.id;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import "./icon/iconfont.css";
|
|
3
4
|
declare class FlowMarkSelect implements ComponentInterface {
|
|
4
5
|
name: string;
|
|
5
6
|
id: string;
|
|
6
7
|
sortField: string;
|
|
7
8
|
type: string;
|
|
8
9
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
10
|
-
effects: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
11
12
|
workOrderMark: any[];
|
|
12
13
|
isCombinationComponent: boolean;
|
|
13
14
|
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
17
18
|
constructor(options: PickOption);
|
|
19
|
+
renderMenu: (record: Record) => React.JSX.Element;
|
|
18
20
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
19
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
22
|
getComponentValue: (r: Record) => any;
|
|
@@ -8,14 +8,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
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
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
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
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { Dropdown, Menu } from "antd";
|
|
12
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
|
|
15
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
16
|
import GetFormItem from "../GetFormItem";
|
|
17
17
|
import { SYMBOL } from "../../constant";
|
|
18
|
-
|
|
18
|
+
import "./icon/iconfont.css";
|
|
19
19
|
var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options) {
|
|
20
20
|
var _this = this;
|
|
21
21
|
_classCallCheck(this, FlowMarkSelect);
|
|
@@ -32,15 +32,33 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
32
32
|
_defineProperty(this, "canSort", void 0);
|
|
33
33
|
_defineProperty(this, "children", void 0);
|
|
34
34
|
_defineProperty(this, "dataType", void 0);
|
|
35
|
+
_defineProperty(this, "renderMenu", function (record) {
|
|
36
|
+
var menu = /*#__PURE__*/React.createElement(Menu, {
|
|
37
|
+
onClick: function onClick(_ref) {
|
|
38
|
+
var _this$effects, _this$effects2;
|
|
39
|
+
var key = _ref.key,
|
|
40
|
+
domEvent = _ref.domEvent;
|
|
41
|
+
domEvent.stopPropagation();
|
|
42
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleChangeSingleWorkOrderMark) === "function" && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleChangeSingleWorkOrderMark(key, record));
|
|
43
|
+
}
|
|
44
|
+
}, _this.workOrderMark.map(function (item) {
|
|
45
|
+
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
46
|
+
key: item.value
|
|
47
|
+
}, item.label);
|
|
48
|
+
}));
|
|
49
|
+
return menu;
|
|
50
|
+
});
|
|
35
51
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleChangeSingleWorkOrderMark) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleChangeSingleWorkOrderMark(key, record));
|
|
39
|
-
};
|
|
40
|
-
return /*#__PURE__*/React.createElement(SelectMark, {
|
|
41
|
-
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
|
|
42
|
-
onChange: changeMarkHandle
|
|
52
|
+
var mark = _this.workOrderMark.find(function (item) {
|
|
53
|
+
return item.value === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
43
54
|
});
|
|
55
|
+
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
56
|
+
overlay: _this.renderMenu(record)
|
|
57
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
58
|
+
onClick: function onClick(e) {
|
|
59
|
+
return e.stopPropagation();
|
|
60
|
+
}
|
|
61
|
+
}, (mark === null || mark === void 0 ? void 0 : mark.label) || "--"));
|
|
44
62
|
});
|
|
45
63
|
_defineProperty(this, "renderLog", function (r) {
|
|
46
64
|
var mark = _this.workOrderMark.find(function (item) {
|
|
@@ -57,23 +75,23 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
57
75
|
});
|
|
58
76
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
59
77
|
var MARK_MAP = {
|
|
60
|
-
1:
|
|
61
|
-
2:
|
|
62
|
-
3:
|
|
63
|
-
4:
|
|
64
|
-
5:
|
|
65
|
-
6:
|
|
78
|
+
1: "白色",
|
|
79
|
+
2: "红色",
|
|
80
|
+
3: "黄色",
|
|
81
|
+
4: "蓝色",
|
|
82
|
+
5: "绿色",
|
|
83
|
+
6: "紫色"
|
|
66
84
|
};
|
|
67
85
|
var mark = _this.workOrderMark.find(function (item) {
|
|
68
86
|
return item.value === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
69
87
|
});
|
|
70
|
-
return mark ? MARK_MAP[mark === null || mark === void 0 ? void 0 : mark.value] :
|
|
88
|
+
return mark ? MARK_MAP[mark === null || mark === void 0 ? void 0 : mark.value] : "--";
|
|
71
89
|
});
|
|
72
90
|
_defineProperty(this, "renderClient", function (record) {
|
|
73
91
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
74
92
|
id: _this.id,
|
|
75
93
|
label: _this.name,
|
|
76
|
-
value: (record === null || record === void 0 ? void 0 : record[_this.id]) ||
|
|
94
|
+
value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ""
|
|
77
95
|
}) : null;
|
|
78
96
|
});
|
|
79
97
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -97,41 +115,41 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
97
115
|
// 过滤组件id
|
|
98
116
|
name: item.name,
|
|
99
117
|
// 过滤组件名称
|
|
100
|
-
filterComponentType:
|
|
118
|
+
filterComponentType: "MultipleSelect",
|
|
101
119
|
props: {
|
|
102
120
|
//不使用workOrderMark的数据,筛选会深拷贝
|
|
103
121
|
options: [{
|
|
104
|
-
label:
|
|
105
|
-
value:
|
|
122
|
+
label: "空白",
|
|
123
|
+
value: "1"
|
|
106
124
|
}, {
|
|
107
|
-
label:
|
|
108
|
-
value:
|
|
125
|
+
label: "红色",
|
|
126
|
+
value: "2"
|
|
109
127
|
}, {
|
|
110
|
-
label:
|
|
111
|
-
value:
|
|
128
|
+
label: "黄色",
|
|
129
|
+
value: "3"
|
|
112
130
|
}, {
|
|
113
|
-
label:
|
|
114
|
-
value:
|
|
131
|
+
label: "蓝色",
|
|
132
|
+
value: "4"
|
|
115
133
|
}, {
|
|
116
|
-
label:
|
|
117
|
-
value:
|
|
134
|
+
label: "绿色",
|
|
135
|
+
value: "5"
|
|
118
136
|
}, {
|
|
119
|
-
label:
|
|
120
|
-
value:
|
|
137
|
+
label: "紫色",
|
|
138
|
+
value: "6"
|
|
121
139
|
}]
|
|
122
140
|
},
|
|
123
141
|
filterFn: function filterFn(value) {
|
|
124
142
|
return function (i) {
|
|
125
|
-
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
143
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
|
|
126
144
|
};
|
|
127
145
|
}
|
|
128
146
|
};
|
|
129
147
|
});
|
|
130
|
-
this.name =
|
|
131
|
-
this.id =
|
|
132
|
-
this.sortField =
|
|
133
|
-
this.formField =
|
|
134
|
-
this.type =
|
|
148
|
+
this.name = "标记";
|
|
149
|
+
this.id = "markFlag";
|
|
150
|
+
this.sortField = "markFlag";
|
|
151
|
+
this.formField = "markFlag";
|
|
152
|
+
this.type = "FLOW_MARK_SELECT";
|
|
135
153
|
this.effects = options.effects;
|
|
136
154
|
this.rules = [];
|
|
137
155
|
this.isCombinationComponent = false;
|
|
@@ -141,51 +159,51 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
141
159
|
label: /*#__PURE__*/React.createElement("span", {
|
|
142
160
|
className: "iconfont icon-xingxing"
|
|
143
161
|
}),
|
|
144
|
-
value:
|
|
162
|
+
value: "1"
|
|
145
163
|
}, {
|
|
146
164
|
label: /*#__PURE__*/React.createElement("span", {
|
|
147
165
|
className: "iconfont icon-xingxing1",
|
|
148
166
|
style: {
|
|
149
|
-
color:
|
|
167
|
+
color: "#ff0000"
|
|
150
168
|
}
|
|
151
169
|
}),
|
|
152
|
-
value:
|
|
170
|
+
value: "2"
|
|
153
171
|
}, {
|
|
154
172
|
label: /*#__PURE__*/React.createElement("span", {
|
|
155
173
|
className: "iconfont icon-xingxing1",
|
|
156
174
|
style: {
|
|
157
|
-
color:
|
|
175
|
+
color: "#f6b343"
|
|
158
176
|
}
|
|
159
177
|
}),
|
|
160
|
-
value:
|
|
178
|
+
value: "3"
|
|
161
179
|
}, {
|
|
162
180
|
label: /*#__PURE__*/React.createElement("span", {
|
|
163
181
|
className: "iconfont icon-xingxing1",
|
|
164
182
|
style: {
|
|
165
|
-
color:
|
|
183
|
+
color: "#4d90f7"
|
|
166
184
|
}
|
|
167
185
|
}),
|
|
168
|
-
value:
|
|
186
|
+
value: "4"
|
|
169
187
|
}, {
|
|
170
188
|
label: /*#__PURE__*/React.createElement("span", {
|
|
171
189
|
className: "iconfont icon-xingxing1",
|
|
172
190
|
style: {
|
|
173
|
-
color:
|
|
191
|
+
color: "#6ed86c"
|
|
174
192
|
}
|
|
175
193
|
}),
|
|
176
|
-
value:
|
|
194
|
+
value: "5"
|
|
177
195
|
}, {
|
|
178
196
|
label: /*#__PURE__*/React.createElement("span", {
|
|
179
197
|
className: "iconfont icon-xingxing1",
|
|
180
198
|
style: {
|
|
181
|
-
color:
|
|
199
|
+
color: "#be4ed1"
|
|
182
200
|
}
|
|
183
201
|
}),
|
|
184
|
-
value:
|
|
202
|
+
value: "6"
|
|
185
203
|
}];
|
|
186
204
|
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
187
205
|
options: this.workOrderMark
|
|
188
206
|
});
|
|
189
|
-
this.dataType =
|
|
207
|
+
this.dataType = "string";
|
|
190
208
|
});
|
|
191
209
|
export default FlowMarkSelect;
|
|
@@ -2,7 +2,6 @@ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ExpressData, ExpressInterceptData, LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
5
|
-
import InterceptSnapshot from "./interceptSnapshot";
|
|
6
5
|
import InterceptAddress from "./InterceptAddress";
|
|
7
6
|
import InterceptType from "./InterceptType";
|
|
8
7
|
import InterceptStatus from "./InterceptStatus";
|
|
@@ -20,7 +19,6 @@ declare class Logistics implements ComponentInterface {
|
|
|
20
19
|
interceptType: InterceptType;
|
|
21
20
|
interceptLogisticsStatus: InterceptStatus;
|
|
22
21
|
interceptSenderMobile: InterceptSenderMobile;
|
|
23
|
-
interceptSnapshot: InterceptSnapshot;
|
|
24
22
|
isCombinationComponent: boolean;
|
|
25
23
|
formField: string;
|
|
26
24
|
canSort: boolean;
|
|
@@ -31,7 +29,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
31
29
|
expressInterceptData: InstanceType<typeof ExpressInterceptData>;
|
|
32
30
|
logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
|
|
33
31
|
effects: ComponentInterface["effects"];
|
|
34
|
-
dataType: ComponentInterface[
|
|
32
|
+
dataType: ComponentInterface['dataType'];
|
|
35
33
|
constructor(options: PickOption);
|
|
36
34
|
renderClient: (record: any) => React.JSX.Element;
|
|
37
35
|
renderLog: (record: any) => React.JSX.Element;
|
|
@@ -49,7 +47,6 @@ declare class Logistics implements ComponentInterface {
|
|
|
49
47
|
name: any;
|
|
50
48
|
mobile: any;
|
|
51
49
|
};
|
|
52
|
-
interceptSnapshot: any;
|
|
53
50
|
};
|
|
54
51
|
renderPc: () => null;
|
|
55
52
|
renderExport: () => null;
|
|
@@ -13,7 +13,6 @@ import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
|
|
|
13
13
|
import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
16
|
-
import InterceptSnapshot from "./interceptSnapshot";
|
|
17
16
|
import InterceptAddress from "./InterceptAddress";
|
|
18
17
|
import InterceptType from "./InterceptType";
|
|
19
18
|
import InterceptStatus from "./InterceptStatus";
|
|
@@ -34,7 +33,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
34
33
|
_defineProperty(this, "interceptType", void 0);
|
|
35
34
|
_defineProperty(this, "interceptLogisticsStatus", void 0);
|
|
36
35
|
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
37
|
-
_defineProperty(this, "interceptSnapshot", void 0);
|
|
38
36
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
39
37
|
_defineProperty(this, "formField", void 0);
|
|
40
38
|
_defineProperty(this, "canSort", void 0);
|
|
@@ -47,10 +45,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
47
45
|
_defineProperty(this, "effects", void 0);
|
|
48
46
|
_defineProperty(this, "dataType", void 0);
|
|
49
47
|
_defineProperty(this, "renderClient", function (record) {
|
|
50
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record)
|
|
48
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record));
|
|
51
49
|
});
|
|
52
50
|
_defineProperty(this, "renderLog", function (record) {
|
|
53
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record)))
|
|
51
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))));
|
|
54
52
|
});
|
|
55
53
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
56
54
|
return {
|
|
@@ -59,8 +57,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
59
57
|
interceptSenderMobile: _this.interceptSenderMobile.getComponentValue(r),
|
|
60
58
|
interceptType: _this.interceptType.getComponentValue(r),
|
|
61
59
|
interceptLogisticsStatus: _this.interceptLogisticsStatus.getComponentValue(r),
|
|
62
|
-
interceptRedirectTo: _this.interceptAddress.getComponentValue(r)
|
|
63
|
-
interceptSnapshot: _this.interceptSnapshot.getComponentValue(r)
|
|
60
|
+
interceptRedirectTo: _this.interceptAddress.getComponentValue(r)
|
|
64
61
|
};
|
|
65
62
|
});
|
|
66
63
|
_defineProperty(this, "renderPc", function () {
|
|
@@ -109,7 +106,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
109
106
|
this.interceptType = new InterceptType(options);
|
|
110
107
|
this.interceptLogisticsStatus = new InterceptStatus(options);
|
|
111
108
|
this.interceptSenderMobile = new InterceptSenderMobile(options);
|
|
112
|
-
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
113
109
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
114
110
|
id: "".concat(options.id, "_interceptCompany"),
|
|
115
111
|
name: "物流信息"
|
|
@@ -120,8 +116,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
120
116
|
}));
|
|
121
117
|
this.isCombinationComponent = true;
|
|
122
118
|
this.canSort = false;
|
|
123
|
-
this.dataType =
|
|
124
|
-
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus
|
|
119
|
+
this.dataType = 'object';
|
|
120
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus];
|
|
125
121
|
this.rules = [{
|
|
126
122
|
validator: function validator(_, value) {
|
|
127
123
|
var _this$componentConfig3, _this$componentConfig4, _value$interceptAddre, _value$interceptSende;
|
|
@@ -14,7 +14,7 @@ declare class InterceptSenderMobile implements ComponentInterface {
|
|
|
14
14
|
sortField: string;
|
|
15
15
|
formField: string;
|
|
16
16
|
canSort: boolean;
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
18
|
children: ComponentInterface[];
|
|
19
19
|
constructor(options: PickOption);
|
|
20
20
|
getComponentValue: (r: Record) => any;
|
|
@@ -68,9 +68,9 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
68
68
|
this.name = "发件人手机号";
|
|
69
69
|
this.id = "".concat(options.id, "_interceptSenderMobile");
|
|
70
70
|
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
71
|
-
this.formField = "".concat(options.id, "
|
|
72
|
-
this.sortField = "".concat(options.id, "
|
|
73
|
-
this.dataType =
|
|
71
|
+
this.formField = "".concat(options.id, "_interceptCompany");
|
|
72
|
+
this.sortField = "".concat(options.id, "_interceptCompany");
|
|
73
|
+
this.dataType = 'string';
|
|
74
74
|
this.type = options.type;
|
|
75
75
|
this.componentConfig = options.componentConfig;
|
|
76
76
|
this.rules = [];
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } 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) => ActualPayment | BsExchange | BsGoods | BsLogistics | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | CommonMultiStatus | CommonSystemOrder | CommonTradeId | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowMarkSelect | FlowStatusSelect | FlowWorkOrderId | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | LogisticsTrajectory | NodeDeadLine | NodeStayDuration | Payment | BasicPicture | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | BasicSelect | ShopInput | StatusSelect | BasicTextArea | ThirdItemSelect | BasicDataTime | TradeDateTime | TradeId | WorkOrderId | BasicAddress | BasicCheckbox | BasicMultSelect | BasicGrade | CommonDataTime | ShopName | Logistics | ReturnLogistics | ERemark | AliPay | SystemOrderNo | Ordinary | TemplateSelect | LogisticsInterception | PlatForm | Submitter | Handler | CompletedUser;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -65,7 +65,6 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
65
65
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
66
66
|
export { factory } from "./factory";
|
|
67
67
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
68
|
-
export { default as SelectMark } from "./commonComponents/SelectMark";
|
|
69
68
|
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
|
70
69
|
export { default as ShopList } from "./commonComponents/ShopList";
|
|
71
70
|
export { default as OperationLog } from "./commonComponents/OperationLog";
|
package/dist/esm/index.js
CHANGED
|
@@ -65,7 +65,6 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
65
65
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
66
66
|
export { factory } from "./factory";
|
|
67
67
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
68
|
-
export { default as SelectMark } from "./commonComponents/SelectMark";
|
|
69
68
|
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
|
70
69
|
export { default as ShopList } from "./commonComponents/ShopList";
|
|
71
70
|
export { default as OperationLog } from "./commonComponents/OperationLog";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1-alpha.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.8.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.9.1-alpha.0",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.19"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "8f6cf7363cbff3615cb4017dc316eb18c7f07739"
|
|
44
44
|
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
|
-
import { Menu, Dropdown } from 'antd';
|
|
3
|
-
import "./icon/iconfont.css";
|
|
4
|
-
var workOrderMark = [{
|
|
5
|
-
label: /*#__PURE__*/React.createElement("span", {
|
|
6
|
-
className: "iconfont icon-xingxing"
|
|
7
|
-
}),
|
|
8
|
-
value: '1'
|
|
9
|
-
}, {
|
|
10
|
-
label: /*#__PURE__*/React.createElement("span", {
|
|
11
|
-
className: "iconfont icon-xingxing1",
|
|
12
|
-
style: {
|
|
13
|
-
color: '#ff0000'
|
|
14
|
-
}
|
|
15
|
-
}),
|
|
16
|
-
value: '2'
|
|
17
|
-
}, {
|
|
18
|
-
label: /*#__PURE__*/React.createElement("span", {
|
|
19
|
-
className: "iconfont icon-xingxing1",
|
|
20
|
-
style: {
|
|
21
|
-
color: '#f6b343'
|
|
22
|
-
}
|
|
23
|
-
}),
|
|
24
|
-
value: '3'
|
|
25
|
-
}, {
|
|
26
|
-
label: /*#__PURE__*/React.createElement("span", {
|
|
27
|
-
className: "iconfont icon-xingxing1",
|
|
28
|
-
style: {
|
|
29
|
-
color: '#4d90f7'
|
|
30
|
-
}
|
|
31
|
-
}),
|
|
32
|
-
value: '4'
|
|
33
|
-
}, {
|
|
34
|
-
label: /*#__PURE__*/React.createElement("span", {
|
|
35
|
-
className: "iconfont icon-xingxing1",
|
|
36
|
-
style: {
|
|
37
|
-
color: '#6ed86c'
|
|
38
|
-
}
|
|
39
|
-
}),
|
|
40
|
-
value: '5'
|
|
41
|
-
}, {
|
|
42
|
-
label: /*#__PURE__*/React.createElement("span", {
|
|
43
|
-
className: "iconfont icon-xingxing1",
|
|
44
|
-
style: {
|
|
45
|
-
color: '#be4ed1'
|
|
46
|
-
}
|
|
47
|
-
}),
|
|
48
|
-
value: '6'
|
|
49
|
-
}];
|
|
50
|
-
export default (function (props) {
|
|
51
|
-
var value = props.value,
|
|
52
|
-
onChange = props.onChange;
|
|
53
|
-
var renderMenu = function renderMenu() {
|
|
54
|
-
var menu = /*#__PURE__*/React.createElement(Menu, {
|
|
55
|
-
onClick: function onClick(_ref) {
|
|
56
|
-
var key = _ref.key,
|
|
57
|
-
domEvent = _ref.domEvent;
|
|
58
|
-
domEvent.stopPropagation();
|
|
59
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(key);
|
|
60
|
-
}
|
|
61
|
-
}, workOrderMark.map(function (item) {
|
|
62
|
-
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
63
|
-
key: item.value
|
|
64
|
-
}, item.label);
|
|
65
|
-
}));
|
|
66
|
-
return menu;
|
|
67
|
-
};
|
|
68
|
-
var markLabel = useMemo(function () {
|
|
69
|
-
var _workOrderMark$find;
|
|
70
|
-
return (_workOrderMark$find = workOrderMark.find(function (item) {
|
|
71
|
-
return item.value === value;
|
|
72
|
-
})) === null || _workOrderMark$find === void 0 ? void 0 : _workOrderMark$find.label;
|
|
73
|
-
}, [value]);
|
|
74
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
75
|
-
overlay: renderMenu()
|
|
76
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
77
|
-
onClick: function onClick(e) {
|
|
78
|
-
return e.stopPropagation();
|
|
79
|
-
}
|
|
80
|
-
}, markLabel || '--'));
|
|
81
|
-
});
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
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
|
-
getComponentValue: (r: Record) => any;
|
|
21
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
-
renderPc: (value: any, record: Record) => any;
|
|
23
|
-
renderLog: (r: Record) => any;
|
|
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
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export default InterceptSnapshot;
|
|
@@ -1,84 +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, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
-
import { SYMBOL } from "../../constant";
|
|
12
|
-
var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(options) {
|
|
13
|
-
var _this = this;
|
|
14
|
-
_classCallCheck(this, InterceptSnapshot);
|
|
15
|
-
_defineProperty(this, "name", void 0);
|
|
16
|
-
_defineProperty(this, "id", void 0);
|
|
17
|
-
_defineProperty(this, "companyId", void 0);
|
|
18
|
-
_defineProperty(this, "type", void 0);
|
|
19
|
-
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
-
_defineProperty(this, "effects", void 0);
|
|
22
|
-
_defineProperty(this, "align", void 0);
|
|
23
|
-
_defineProperty(this, "width", void 0);
|
|
24
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
-
_defineProperty(this, "sortField", void 0);
|
|
26
|
-
_defineProperty(this, "formField", void 0);
|
|
27
|
-
_defineProperty(this, "canSort", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "children", void 0);
|
|
30
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
31
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
32
|
-
});
|
|
33
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
34
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
|
-
id: _this.id,
|
|
36
|
-
label: _this.name,
|
|
37
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
38
|
-
}) : null;
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
41
|
-
return record === null || record === void 0 ? void 0 : record[_this.id];
|
|
42
|
-
});
|
|
43
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
44
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
45
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
|
-
var _record;
|
|
49
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "editRender", function () {
|
|
52
|
-
return null;
|
|
53
|
-
});
|
|
54
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
55
|
-
return {
|
|
56
|
-
searchDefaultConditions: SYMBOL.like,
|
|
57
|
-
type: item.type,
|
|
58
|
-
id: "".concat(item.id, "_interceptLogisticsSnapshot"),
|
|
59
|
-
name: "".concat(item.name, "-\u5FEB\u7167"),
|
|
60
|
-
filterComponentType: "Input",
|
|
61
|
-
filterFn: function filterFn(value) {
|
|
62
|
-
return function (i) {
|
|
63
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsSnapshot")).includes(value);
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
});
|
|
68
|
-
this.name = "快照";
|
|
69
|
-
this.id = "".concat(options.id, "_interceptLogisticsSnapshot");
|
|
70
|
-
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
71
|
-
this.formField = "".concat(options.id, "_interceptLogisticsSnapshot");
|
|
72
|
-
this.sortField = "".concat(options.id, "_interceptLogisticsSnapshot");
|
|
73
|
-
this.dataType = "string";
|
|
74
|
-
this.type = options.type;
|
|
75
|
-
this.componentConfig = options.componentConfig;
|
|
76
|
-
this.rules = [];
|
|
77
|
-
this.align = "left";
|
|
78
|
-
this.width = 200;
|
|
79
|
-
this.isCombinationComponent = false;
|
|
80
|
-
this.canSort = true;
|
|
81
|
-
this.children = [];
|
|
82
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
83
|
-
});
|
|
84
|
-
export default InterceptSnapshot;
|
/package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.css
RENAMED
|
File without changes
|
/package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.js
RENAMED
|
File without changes
|
/package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.json
RENAMED
|
File without changes
|
/package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.ttf
RENAMED
|
File without changes
|
/package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.woff
RENAMED
|
File without changes
|
/package/dist/esm/{commonComponents/SelectMark → components/FlowMarkSelect}/icon/iconfont.woff2
RENAMED
|
File without changes
|