@kmkf-fe-packages/services-components 0.13.0-alpha.3 → 0.13.0-beta.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/dist/esm/commonComponents/OperationLog/index.d.ts +1 -0
- package/dist/esm/commonComponents/OperationLog/index.js +12 -13
- package/dist/esm/components/BS/BsExchange/index.d.ts +1 -5
- package/dist/esm/components/BS/BsExchange/index.js +1 -5
- package/dist/esm/components/BS/BsReissue/index.d.ts +1 -4
- package/dist/esm/components/BS/BsReissue/index.js +1 -4
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +5 -5
- package/dist/esm/components/BS/BsSystemOrder/index.js +16 -18
- package/dist/esm/components/Cascader/index.d.ts +3 -5
- package/dist/esm/components/Cascader/index.js +12 -16
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +136 -136
- package/dist/esm/components/CommonMultiStatus/index.d.ts +8 -1
- package/dist/esm/components/CommonMultiStatus/index.js +11 -4
- package/dist/esm/components/Remark/index.d.ts +3 -3
- package/dist/esm/components/Remark/index.js +17 -24
- package/dist/esm/factory.d.ts +3 -3
- package/dist/esm/factory.js +97 -97
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/package.json +4 -4
- package/dist/esm/components/FlowTag/index.d.ts +0 -38
- package/dist/esm/components/FlowTag/index.js +0 -126
|
@@ -4,5 +4,6 @@ declare type OperationLogProps = {
|
|
|
4
4
|
operation: string;
|
|
5
5
|
componentDtoList: any[];
|
|
6
6
|
};
|
|
7
|
+
export declare const unTransField: (key: string) => boolean;
|
|
7
8
|
declare const OperationLog: ({ content, operation, componentDtoList, }: OperationLogProps) => React.JSX.Element | null;
|
|
8
9
|
export default OperationLog;
|
|
@@ -6,7 +6,12 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { factory } from "@kmkf-fe-packages/services-components";
|
|
9
|
-
import { isNull
|
|
9
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
export var unTransField = function unTransField(key) {
|
|
11
|
+
return ["itemList", "jstItemList", "dateTime", "basicMultSelect", "checkbox", "multSelect", "rate", "picture", "file", "bsSendGood", "bsGoods", "bsExchangeType", "bsExchangeReturnGoods", "bsExchangeSwapOutGoods", "bsExchangeGiftGoods", "bsReissueType", "bsReissueGoods", "bsReturnGoods", "bsReturnType", "bsLogisticsList", "bsSystemShowOrder", "bsSystemSelectIds", "reissueLogisticsList", "deliveryNoList", "returnGoodsStatusList", "returnGoodsTradeIdList", "returnGoodsTradeItemList", "tradeIdList", "tradeItemList", "wlnLogisticsList", "wlnSystemShowOrder", "wlnSystemSelectIds", "wlnGoods", "wlnSendGood", "exchangeReason"].reduce(function (cur, nxt) {
|
|
12
|
+
return cur || (key === null || key === void 0 ? void 0 : key.includes(nxt));
|
|
13
|
+
}, false);
|
|
14
|
+
};
|
|
10
15
|
var OperationLog = function OperationLog(_ref) {
|
|
11
16
|
var content = _ref.content,
|
|
12
17
|
operation = _ref.operation,
|
|
@@ -80,10 +85,9 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
80
85
|
type: item.workOrderComponentType
|
|
81
86
|
});
|
|
82
87
|
if (operation !== null && operation !== void 0 && operation.startsWith("UPDATE")) {
|
|
83
|
-
return /*#__PURE__*/React.createElement("
|
|
88
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
84
89
|
style: {
|
|
85
|
-
display: "flex"
|
|
86
|
-
width: "100%"
|
|
90
|
+
display: "flex"
|
|
87
91
|
}
|
|
88
92
|
}, /*#__PURE__*/React.createElement("span", {
|
|
89
93
|
style: {
|
|
@@ -93,15 +97,12 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
93
97
|
flexShrink: 1
|
|
94
98
|
}
|
|
95
99
|
}, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
|
|
96
|
-
|
|
97
|
-
overflow: "auto"
|
|
98
|
-
}
|
|
100
|
+
className: "value"
|
|
99
101
|
}, /*#__PURE__*/React.createElement("span", null, instance.renderLog(oldContent), /*#__PURE__*/React.createElement("span", null, "=>"), instance.renderLog(currentContent))));
|
|
100
102
|
} else if (operation !== null && operation !== void 0 && operation.startsWith("ADD") && !isNull(instance.getComponentValue(currentContent))) {
|
|
101
|
-
return /*#__PURE__*/React.createElement("
|
|
103
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
102
104
|
style: {
|
|
103
|
-
display: "flex"
|
|
104
|
-
width: "100%"
|
|
105
|
+
display: "flex"
|
|
105
106
|
}
|
|
106
107
|
}, /*#__PURE__*/React.createElement("span", {
|
|
107
108
|
style: {
|
|
@@ -111,9 +112,7 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
111
112
|
flexShrink: 1
|
|
112
113
|
}
|
|
113
114
|
}, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
|
|
114
|
-
|
|
115
|
-
overflow: "auto"
|
|
116
|
-
}
|
|
115
|
+
className: "value"
|
|
117
116
|
}, /*#__PURE__*/React.createElement("span", null, instance.renderLog(currentContent))));
|
|
118
117
|
} else {
|
|
119
118
|
return null;
|
|
@@ -23,11 +23,7 @@ declare class BsExchange implements ComponentInterface {
|
|
|
23
23
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
24
|
renderPc: () => null;
|
|
25
25
|
renderLog: (r: Record) => React.JSX.Element;
|
|
26
|
-
getComponentValue: (r: Record) =>
|
|
27
|
-
bsExchangeType: any;
|
|
28
|
-
bsExchangeReturnGoods: any;
|
|
29
|
-
bsExchangeGiftGoods: any;
|
|
30
|
-
};
|
|
26
|
+
getComponentValue: (r: Record) => any;
|
|
31
27
|
renderExport: (value: any, record: any) => null;
|
|
32
28
|
editRender: (p: any) => React.JSX.Element;
|
|
33
29
|
filterConfig: (item: ColumnConfig) => ({
|
|
@@ -80,11 +80,7 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
|
80
80
|
})) : null);
|
|
81
81
|
});
|
|
82
82
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
83
|
-
return
|
|
84
|
-
bsExchangeType: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsExchangeType")],
|
|
85
|
-
bsExchangeReturnGoods: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsExchangeReturnGoods")],
|
|
86
|
-
bsExchangeGiftGoods: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsExchangeGiftGoods")]
|
|
87
|
-
};
|
|
83
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
88
84
|
});
|
|
89
85
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
90
86
|
return null;
|
|
@@ -21,10 +21,7 @@ declare class BsReissue implements ComponentInterface {
|
|
|
21
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
22
|
renderPc: () => null;
|
|
23
23
|
renderLog: (r: Record) => React.JSX.Element;
|
|
24
|
-
getComponentValue: (r: Record) =>
|
|
25
|
-
bsReissueType: any;
|
|
26
|
-
bsReissueGoods: any;
|
|
27
|
-
};
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
28
25
|
renderExport: () => null;
|
|
29
26
|
editRender: (p: any) => React.JSX.Element;
|
|
30
27
|
filterConfig: (item: ColumnConfig) => ({
|
|
@@ -57,10 +57,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
57
57
|
})));
|
|
58
58
|
});
|
|
59
59
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
60
|
-
return
|
|
61
|
-
bsReissueType: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueType")],
|
|
62
|
-
bsReissueGoods: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueGoods")]
|
|
63
|
-
};
|
|
60
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueGoods")];
|
|
64
61
|
});
|
|
65
62
|
_defineProperty(this, "renderExport", function () {
|
|
66
63
|
return null;
|
|
@@ -1,17 +1,17 @@
|
|
|
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
3
|
declare class BsSystemOrder implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
10
|
-
effects: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
effects: ComponentInterface['effects'];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
|
-
dataType: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -8,26 +8,26 @@ 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
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from
|
|
15
|
-
import { BsSystemOrder as SystemOrder } from
|
|
14
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
19
|
var typeMap = {
|
|
20
20
|
BS_SYSTEM_ORDER: {
|
|
21
|
-
key:
|
|
22
|
-
name:
|
|
23
|
-
typeName:
|
|
24
|
-
tagName:
|
|
21
|
+
key: 'bsSystemShowOrder',
|
|
22
|
+
name: 'bs',
|
|
23
|
+
typeName: '单据类型',
|
|
24
|
+
tagName: '标签'
|
|
25
25
|
},
|
|
26
26
|
WLN_SYSTEM_ORDER: {
|
|
27
|
-
key:
|
|
28
|
-
name:
|
|
29
|
-
typeName:
|
|
30
|
-
tagName:
|
|
27
|
+
key: 'wlnSystemShowOrder',
|
|
28
|
+
name: '万里牛',
|
|
29
|
+
typeName: '订单类型',
|
|
30
|
+
tagName: '标记'
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
@@ -62,14 +62,12 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
62
62
|
_defineProperty(this, "renderLog", function (r) {
|
|
63
63
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)])) return null;
|
|
64
64
|
return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
65
|
-
value:
|
|
66
|
-
showOrderInfo: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)]
|
|
67
|
-
},
|
|
65
|
+
value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)],
|
|
68
66
|
type: _this.type
|
|
69
67
|
});
|
|
70
68
|
});
|
|
71
69
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
72
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id
|
|
70
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
73
71
|
});
|
|
74
72
|
_defineProperty(this, "renderExport", function () {
|
|
75
73
|
return null;
|
|
@@ -95,7 +93,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
95
93
|
// 过滤组件id
|
|
96
94
|
name: item.name,
|
|
97
95
|
// 过滤组件名称
|
|
98
|
-
filterComponentType:
|
|
96
|
+
filterComponentType: 'Input'
|
|
99
97
|
}];
|
|
100
98
|
});
|
|
101
99
|
this.name = options.name;
|
|
@@ -111,7 +109,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
111
109
|
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billType"),
|
|
112
110
|
width: 150
|
|
113
111
|
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
114
|
-
name:
|
|
112
|
+
name: '系统订单号',
|
|
115
113
|
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billNo"),
|
|
116
114
|
width: 150
|
|
117
115
|
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -130,6 +128,6 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
130
128
|
return Promise.resolve();
|
|
131
129
|
}
|
|
132
130
|
}] : [];
|
|
133
|
-
this.dataType =
|
|
131
|
+
this.dataType = 'object';
|
|
134
132
|
});
|
|
135
133
|
export default BsSystemOrder;
|
|
@@ -6,7 +6,7 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
@@ -27,15 +27,13 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
27
27
|
renderExport: (value: any, record: Record) => string;
|
|
28
28
|
editRender: (p: any) => React.JSX.Element;
|
|
29
29
|
filterConfig: (item: ColumnConfig) => {
|
|
30
|
-
searchDefaultConditions: "
|
|
30
|
+
searchDefaultConditions: "eq";
|
|
31
31
|
type: string;
|
|
32
32
|
id: string;
|
|
33
33
|
name: string;
|
|
34
34
|
filterComponentType: "Cascader";
|
|
35
35
|
props: {
|
|
36
36
|
options: any;
|
|
37
|
-
multiple: boolean;
|
|
38
|
-
maxTagCount: string;
|
|
39
37
|
fieldNames: {
|
|
40
38
|
label: string;
|
|
41
39
|
value: string;
|
|
@@ -43,7 +41,7 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
43
41
|
};
|
|
44
42
|
};
|
|
45
43
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
46
|
-
formatFilterValue: (val: Array<string>) =>
|
|
44
|
+
formatFilterValue: (val: Array<string>) => string | undefined;
|
|
47
45
|
};
|
|
48
46
|
}
|
|
49
47
|
export default BasicCascader;
|
|
@@ -95,7 +95,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
95
95
|
var _item$config;
|
|
96
96
|
var options = transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []);
|
|
97
97
|
return {
|
|
98
|
-
searchDefaultConditions: SYMBOL.
|
|
98
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
99
99
|
type: item.type,
|
|
100
100
|
id: "".concat(item.id, "_multSelect"),
|
|
101
101
|
// 过滤组件id
|
|
@@ -104,8 +104,6 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
104
104
|
filterComponentType: 'Cascader',
|
|
105
105
|
props: {
|
|
106
106
|
options: options,
|
|
107
|
-
multiple: true,
|
|
108
|
-
maxTagCount: 'responsive',
|
|
109
107
|
fieldNames: {
|
|
110
108
|
label: 'label',
|
|
111
109
|
value: 'actived',
|
|
@@ -119,17 +117,15 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
119
117
|
},
|
|
120
118
|
formatFilterValue: function formatFilterValue(val) {
|
|
121
119
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
});
|
|
120
|
+
var node = tree.findNodeByValue(options, 'actived', val[val.length - 1]);
|
|
121
|
+
if (node) {
|
|
122
|
+
var label = node.label,
|
|
123
|
+
actived = node.actived;
|
|
124
|
+
return JSON.stringify({
|
|
125
|
+
label: label,
|
|
126
|
+
actived: actived
|
|
127
|
+
});
|
|
128
|
+
}
|
|
133
129
|
}
|
|
134
130
|
}
|
|
135
131
|
};
|
|
@@ -150,8 +146,8 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
150
146
|
|
|
151
147
|
/**
|
|
152
148
|
* 通过值计算展示内容
|
|
153
|
-
* @param value
|
|
154
|
-
* @returns
|
|
149
|
+
* @param value
|
|
150
|
+
* @returns
|
|
155
151
|
*/);
|
|
156
152
|
|
|
157
153
|
export default BasicCascader;
|