@kmkf-fe-packages/services-components 0.8.18-alpha.13 → 0.8.18-alpha.15
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/FlowMarkSelect/icon/iconfont.css +665 -9
- package/dist/esm/components/FlowMarkSelect/icon/iconfont.js +31 -31
- package/dist/esm/components/FlowMarkSelect/icon/iconfont.json +1163 -15
- package/dist/esm/components/FlowMarkSelect/icon/iconfont.ttf +0 -0
- package/dist/esm/components/FlowMarkSelect/icon/iconfont.woff +0 -0
- package/dist/esm/components/FlowMarkSelect/icon/iconfont.woff2 +0 -0
- package/dist/esm/components/FlowMarkSelect/index.d.ts +6 -6
- package/dist/esm/components/FlowMarkSelect/index.js +45 -45
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +4 -4
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './icon/iconfont.css';
|
|
4
4
|
declare class FlowMarkSelect implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
11
|
-
effects: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
|
+
effects: ComponentInterface['effects'];
|
|
12
12
|
workOrderMark: any[];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
formField: string;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderMenu: (record: Record) => React.JSX.Element;
|
|
20
20
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -8,11 +8,11 @@ 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
|
|
12
|
-
import { Dropdown, Menu } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { Dropdown, Menu } from 'antd';
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { ApaasSelect } from
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
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";
|
|
@@ -39,7 +39,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
39
39
|
var key = _ref.key,
|
|
40
40
|
domEvent = _ref.domEvent;
|
|
41
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) ===
|
|
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
43
|
}
|
|
44
44
|
}, _this.workOrderMark.map(function (item) {
|
|
45
45
|
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
@@ -54,7 +54,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
54
54
|
});
|
|
55
55
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
56
56
|
overlay: _this.renderMenu(record)
|
|
57
|
-
}, /*#__PURE__*/React.createElement("span", null, (mark === null || mark === void 0 ? void 0 : mark.label) ||
|
|
57
|
+
}, /*#__PURE__*/React.createElement("span", null, (mark === null || mark === void 0 ? void 0 : mark.label) || '--'));
|
|
58
58
|
});
|
|
59
59
|
_defineProperty(this, "renderLog", function (r) {
|
|
60
60
|
var mark = _this.workOrderMark.find(function (item) {
|
|
@@ -71,23 +71,23 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
71
71
|
});
|
|
72
72
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
73
73
|
var MARK_MAP = {
|
|
74
|
-
1:
|
|
75
|
-
2:
|
|
76
|
-
3:
|
|
77
|
-
4:
|
|
78
|
-
5:
|
|
79
|
-
6:
|
|
74
|
+
1: '白色',
|
|
75
|
+
2: '红色',
|
|
76
|
+
3: '黄色',
|
|
77
|
+
4: '蓝色',
|
|
78
|
+
5: '绿色',
|
|
79
|
+
6: '紫色'
|
|
80
80
|
};
|
|
81
81
|
var mark = _this.workOrderMark.find(function (item) {
|
|
82
82
|
return item.value === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
83
83
|
});
|
|
84
|
-
return mark ? MARK_MAP[mark === null || mark === void 0 ? void 0 : mark.value] :
|
|
84
|
+
return mark ? MARK_MAP[mark === null || mark === void 0 ? void 0 : mark.value] : '--';
|
|
85
85
|
});
|
|
86
86
|
_defineProperty(this, "renderClient", function (record) {
|
|
87
87
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
88
88
|
id: _this.id,
|
|
89
89
|
label: _this.name,
|
|
90
|
-
value: (record === null || record === void 0 ? void 0 : record[_this.id]) ||
|
|
90
|
+
value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ''
|
|
91
91
|
}) : null;
|
|
92
92
|
});
|
|
93
93
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -111,41 +111,41 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
111
111
|
// 过滤组件id
|
|
112
112
|
name: item.name,
|
|
113
113
|
// 过滤组件名称
|
|
114
|
-
filterComponentType:
|
|
114
|
+
filterComponentType: 'MultipleSelect',
|
|
115
115
|
props: {
|
|
116
116
|
//不使用workOrderMark的数据,筛选会深拷贝
|
|
117
117
|
options: [{
|
|
118
|
-
label:
|
|
119
|
-
value:
|
|
118
|
+
label: '空白',
|
|
119
|
+
value: '1'
|
|
120
120
|
}, {
|
|
121
|
-
label:
|
|
122
|
-
value:
|
|
121
|
+
label: '红色',
|
|
122
|
+
value: '2'
|
|
123
123
|
}, {
|
|
124
|
-
label:
|
|
125
|
-
value:
|
|
124
|
+
label: '黄色',
|
|
125
|
+
value: '3'
|
|
126
126
|
}, {
|
|
127
|
-
label:
|
|
128
|
-
value:
|
|
127
|
+
label: '蓝色',
|
|
128
|
+
value: '4'
|
|
129
129
|
}, {
|
|
130
|
-
label:
|
|
131
|
-
value:
|
|
130
|
+
label: '绿色',
|
|
131
|
+
value: '5'
|
|
132
132
|
}, {
|
|
133
|
-
label:
|
|
134
|
-
value:
|
|
133
|
+
label: '紫色',
|
|
134
|
+
value: '6'
|
|
135
135
|
}]
|
|
136
136
|
},
|
|
137
137
|
filterFn: function filterFn(value) {
|
|
138
138
|
return function (i) {
|
|
139
|
-
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
139
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
});
|
|
144
|
-
this.name =
|
|
145
|
-
this.id =
|
|
146
|
-
this.sortField =
|
|
147
|
-
this.formField =
|
|
148
|
-
this.type =
|
|
144
|
+
this.name = '标记';
|
|
145
|
+
this.id = 'markFlag';
|
|
146
|
+
this.sortField = 'markFlag';
|
|
147
|
+
this.formField = 'markFlag';
|
|
148
|
+
this.type = 'FLOW_MARK_SELECT';
|
|
149
149
|
this.effects = options.effects;
|
|
150
150
|
this.rules = [];
|
|
151
151
|
this.isCombinationComponent = false;
|
|
@@ -155,51 +155,51 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
155
155
|
label: /*#__PURE__*/React.createElement("span", {
|
|
156
156
|
className: "iconfont icon-xingxing"
|
|
157
157
|
}),
|
|
158
|
-
value:
|
|
158
|
+
value: '1'
|
|
159
159
|
}, {
|
|
160
160
|
label: /*#__PURE__*/React.createElement("span", {
|
|
161
161
|
className: "iconfont icon-xingxing1",
|
|
162
162
|
style: {
|
|
163
|
-
color:
|
|
163
|
+
color: '#ff0000'
|
|
164
164
|
}
|
|
165
165
|
}),
|
|
166
|
-
value:
|
|
166
|
+
value: '2'
|
|
167
167
|
}, {
|
|
168
168
|
label: /*#__PURE__*/React.createElement("span", {
|
|
169
169
|
className: "iconfont icon-xingxing1",
|
|
170
170
|
style: {
|
|
171
|
-
color:
|
|
171
|
+
color: '#f6b343'
|
|
172
172
|
}
|
|
173
173
|
}),
|
|
174
|
-
value:
|
|
174
|
+
value: '3'
|
|
175
175
|
}, {
|
|
176
176
|
label: /*#__PURE__*/React.createElement("span", {
|
|
177
177
|
className: "iconfont icon-xingxing1",
|
|
178
178
|
style: {
|
|
179
|
-
color:
|
|
179
|
+
color: '#4d90f7'
|
|
180
180
|
}
|
|
181
181
|
}),
|
|
182
|
-
value:
|
|
182
|
+
value: '4'
|
|
183
183
|
}, {
|
|
184
184
|
label: /*#__PURE__*/React.createElement("span", {
|
|
185
185
|
className: "iconfont icon-xingxing1",
|
|
186
186
|
style: {
|
|
187
|
-
color:
|
|
187
|
+
color: '#6ed86c'
|
|
188
188
|
}
|
|
189
189
|
}),
|
|
190
|
-
value:
|
|
190
|
+
value: '5'
|
|
191
191
|
}, {
|
|
192
192
|
label: /*#__PURE__*/React.createElement("span", {
|
|
193
193
|
className: "iconfont icon-xingxing1",
|
|
194
194
|
style: {
|
|
195
|
-
color:
|
|
195
|
+
color: '#be4ed1'
|
|
196
196
|
}
|
|
197
197
|
}),
|
|
198
|
-
value:
|
|
198
|
+
value: '6'
|
|
199
199
|
}];
|
|
200
200
|
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
201
201
|
options: this.workOrderMark
|
|
202
202
|
});
|
|
203
|
-
this.dataType =
|
|
203
|
+
this.dataType = 'string';
|
|
204
204
|
});
|
|
205
205
|
export default FlowMarkSelect;
|
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, 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) => FlowMarkSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | 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 | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.8.18-alpha.
|
|
3
|
+
"version": "0.8.18-alpha.15",
|
|
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.8.18-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.8.18-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.8.18-alpha.15",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.18-alpha.15"
|
|
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": "d291fa6a399c900dd1dae0dd8a10d7834346580e"
|
|
44
44
|
}
|