@kmkf-fe-packages/services-components 1.22.4 → 1.22.6
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/ShopList/index.d.ts +2 -1
- package/dist/esm/commonComponents/ShopList/index.js +5 -5
- package/dist/esm/components/BS/BsGoods/index.js +5 -1
- package/dist/esm/components/BS/common/BsHeaderGood.js +15 -1
- package/dist/esm/components/Common/index.js +81 -0
- package/dist/esm/components/CommonMultiStatus/index.d.ts +1 -0
- package/dist/esm/components/CommonMultiStatus/index.js +43 -14
- package/dist/esm/components/MemberLevel/index.d.ts +35 -0
- package/dist/esm/components/MemberLevel/index.js +119 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +4 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +4 -4
|
@@ -2,10 +2,10 @@ var _excluded = ["disabledList", "shopList", "valueMapping", "onChange", "setSho
|
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import React from
|
|
6
|
-
import { Select } from
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Select } from "antd";
|
|
7
7
|
import PlatformAvatar from "../PlatformAvatar";
|
|
8
|
-
import { PlatData } from
|
|
8
|
+
import { PlatData } from "@kmkf-fe-packages/kmkf-utils";
|
|
9
9
|
var ShopList = function ShopList(_ref) {
|
|
10
10
|
var _shopList$filter;
|
|
11
11
|
var _ref$disabledList = _ref.disabledList,
|
|
@@ -24,7 +24,7 @@ var ShopList = function ShopList(_ref) {
|
|
|
24
24
|
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
25
25
|
onChange: handleChange
|
|
26
26
|
}, prop), shopList === null || shopList === void 0 ? void 0 : (_shopList$filter = shopList.filter(function (item) {
|
|
27
|
-
return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1;
|
|
27
|
+
return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1 && (item === null || item === void 0 ? void 0 : item.useStatus) === 1;
|
|
28
28
|
})) === null || _shopList$filter === void 0 ? void 0 : _shopList$filter.map(function (item) {
|
|
29
29
|
var _platDatInstance$getP;
|
|
30
30
|
var plat = (_platDatInstance$getP = platDatInstance.getPlatData()) === null || _platDatInstance$getP === void 0 ? void 0 : _platDatInstance$getP.find(function (plat) {
|
|
@@ -34,7 +34,7 @@ var ShopList = function ShopList(_ref) {
|
|
|
34
34
|
disabled: item.disabled || disabledList.includes(item === null || item === void 0 ? void 0 : item[valueMapping]),
|
|
35
35
|
value: item === null || item === void 0 ? void 0 : item[valueMapping],
|
|
36
36
|
key: item === null || item === void 0 ? void 0 : item[valueMapping],
|
|
37
|
-
label: "".concat((plat === null || plat === void 0 ? void 0 : plat.platformName) ||
|
|
37
|
+
label: "".concat((plat === null || plat === void 0 ? void 0 : plat.platformName) || "").concat(item.shopName)
|
|
38
38
|
}, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
39
39
|
styles: {
|
|
40
40
|
marginRight: 5
|
|
@@ -39,6 +39,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
39
39
|
id: _this.id,
|
|
40
40
|
label: _this.name,
|
|
41
41
|
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
42
|
+
type: _this.type,
|
|
42
43
|
list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.bsGoods) || [],
|
|
43
44
|
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
44
45
|
})
|
|
@@ -51,6 +52,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
51
52
|
var _this$componentConfig2;
|
|
52
53
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")])) return null;
|
|
53
54
|
return /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
55
|
+
type: _this.type,
|
|
54
56
|
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")]) || [],
|
|
55
57
|
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
56
58
|
});
|
|
@@ -71,7 +73,9 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
71
73
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
72
74
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
73
75
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
74
|
-
component: /*#__PURE__*/React.createElement(Goods, _extends({
|
|
76
|
+
component: /*#__PURE__*/React.createElement(Goods, _extends({
|
|
77
|
+
type: _this.type
|
|
78
|
+
}, _this.componentConfig, {
|
|
75
79
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
76
80
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
77
81
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -123,6 +123,18 @@ var HeaderMap = {
|
|
|
123
123
|
name: "SKU 信息",
|
|
124
124
|
key: "propertiesName",
|
|
125
125
|
width: 140
|
|
126
|
+
},
|
|
127
|
+
batch: {
|
|
128
|
+
component: BsHeaderChild,
|
|
129
|
+
name: "批次号",
|
|
130
|
+
key: "batch",
|
|
131
|
+
width: 140
|
|
132
|
+
},
|
|
133
|
+
expireDate: {
|
|
134
|
+
component: BsHeaderChild,
|
|
135
|
+
name: "有效期",
|
|
136
|
+
key: "expireDate",
|
|
137
|
+
width: 140
|
|
126
138
|
}
|
|
127
139
|
|
|
128
140
|
// title: '商品名称',
|
|
@@ -220,7 +232,9 @@ var BsHeaderGods = /*#__PURE__*/_createClass(function BsHeaderGods(options) {
|
|
|
220
232
|
money: "实付金额",
|
|
221
233
|
number: "数量",
|
|
222
234
|
share: "分摊价",
|
|
223
|
-
type: "赠品类型"
|
|
235
|
+
type: "赠品类型",
|
|
236
|
+
batch: "批次号",
|
|
237
|
+
expireDate: "有效期"
|
|
224
238
|
};
|
|
225
239
|
this.children = _toConsumableArray(Object.keys(HeaderMap).reduce(function (prv, key) {
|
|
226
240
|
var _options$componentCon, _options$componentCon2;
|
|
@@ -905,6 +905,87 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
905
905
|
}];
|
|
906
906
|
}
|
|
907
907
|
break;
|
|
908
|
+
case 'BS_GOODS':
|
|
909
|
+
columns = [{
|
|
910
|
+
dataIndex: 'mark',
|
|
911
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
912
|
+
align: 'center',
|
|
913
|
+
ellipsis: true,
|
|
914
|
+
width: 100
|
|
915
|
+
}, {
|
|
916
|
+
dataIndex: 'skuName',
|
|
917
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
918
|
+
align: 'center',
|
|
919
|
+
ellipsis: true,
|
|
920
|
+
width: 200
|
|
921
|
+
}, {
|
|
922
|
+
dataIndex: 'sku',
|
|
923
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
924
|
+
align: 'center',
|
|
925
|
+
ellipsis: true,
|
|
926
|
+
width: 100
|
|
927
|
+
}, {
|
|
928
|
+
dataIndex: 'name',
|
|
929
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
930
|
+
align: 'center',
|
|
931
|
+
ellipsis: true,
|
|
932
|
+
width: 200
|
|
933
|
+
}, {
|
|
934
|
+
dataIndex: 'pic',
|
|
935
|
+
title: "\u56FE\u7247",
|
|
936
|
+
align: 'center',
|
|
937
|
+
ellipsis: true,
|
|
938
|
+
width: 100,
|
|
939
|
+
render: function render(val) {
|
|
940
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
941
|
+
width: 60,
|
|
942
|
+
src: val
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
}, {
|
|
946
|
+
dataIndex: 'code',
|
|
947
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
948
|
+
align: 'center',
|
|
949
|
+
ellipsis: true,
|
|
950
|
+
width: 100
|
|
951
|
+
}, {
|
|
952
|
+
dataIndex: 'money',
|
|
953
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
954
|
+
align: 'center',
|
|
955
|
+
ellipsis: true,
|
|
956
|
+
width: 100
|
|
957
|
+
}, {
|
|
958
|
+
dataIndex: 'number',
|
|
959
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
960
|
+
align: 'center',
|
|
961
|
+
ellipsis: true,
|
|
962
|
+
width: 100
|
|
963
|
+
}, {
|
|
964
|
+
dataIndex: 'share',
|
|
965
|
+
title: "\u5206\u644A\u4EF7",
|
|
966
|
+
align: 'center',
|
|
967
|
+
ellipsis: true,
|
|
968
|
+
width: 70
|
|
969
|
+
}, {
|
|
970
|
+
dataIndex: 'type',
|
|
971
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
972
|
+
align: 'center',
|
|
973
|
+
ellipsis: true,
|
|
974
|
+
width: 100
|
|
975
|
+
}, {
|
|
976
|
+
dataIndex: 'batch',
|
|
977
|
+
title: "\u6279\u6B21\u53F7",
|
|
978
|
+
align: 'center',
|
|
979
|
+
ellipsis: true,
|
|
980
|
+
width: 100
|
|
981
|
+
}, {
|
|
982
|
+
dataIndex: 'expireDate',
|
|
983
|
+
title: "\u6709\u6548\u671F",
|
|
984
|
+
align: 'center',
|
|
985
|
+
ellipsis: true,
|
|
986
|
+
width: 100
|
|
987
|
+
}];
|
|
988
|
+
break;
|
|
908
989
|
default:
|
|
909
990
|
columns = [{
|
|
910
991
|
dataIndex: 'mark',
|
|
@@ -13,6 +13,7 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface['dataType'];
|
|
16
|
+
isSingleValue: boolean;
|
|
16
17
|
constructor(options: PickOption);
|
|
17
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -74,13 +74,40 @@ var typeMap = {
|
|
|
74
74
|
valueKey: 'status',
|
|
75
75
|
idKey: 'systemOrderId',
|
|
76
76
|
failValue: '失败'
|
|
77
|
+
},
|
|
78
|
+
BS_E3_WAREHOUSING_STATUS: {
|
|
79
|
+
options: [{
|
|
80
|
+
value: '2',
|
|
81
|
+
label: '已入库',
|
|
82
|
+
color: '#52c41a'
|
|
83
|
+
}, {
|
|
84
|
+
value: '1',
|
|
85
|
+
label: '部分入库',
|
|
86
|
+
color: '#e7780f'
|
|
87
|
+
}, {
|
|
88
|
+
value: '0',
|
|
89
|
+
label: '未入库',
|
|
90
|
+
color: '#ff4d4f'
|
|
91
|
+
}, {
|
|
92
|
+
value: '3',
|
|
93
|
+
label: '已退回给客户',
|
|
94
|
+
color: '#1B5BF3'
|
|
95
|
+
}],
|
|
96
|
+
key: 'bsE3InStockStatusItemList',
|
|
97
|
+
code: 'bsE3InStockStatusList',
|
|
98
|
+
name: '商品入库状态',
|
|
99
|
+
type: 2,
|
|
100
|
+
valueKey: 'status',
|
|
101
|
+
idKey: 'systemOrderId',
|
|
102
|
+
failValue: '失败'
|
|
77
103
|
}
|
|
78
104
|
};
|
|
79
105
|
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
80
106
|
var _this = this,
|
|
81
107
|
_typeMap$options$type,
|
|
82
108
|
_typeMap$options$type2,
|
|
83
|
-
_this$
|
|
109
|
+
_this$componentConfig5,
|
|
110
|
+
_this$componentConfig6;
|
|
84
111
|
_classCallCheck(this, CommonMultiStatus);
|
|
85
112
|
_defineProperty(this, "name", void 0);
|
|
86
113
|
_defineProperty(this, "id", void 0);
|
|
@@ -94,8 +121,9 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
94
121
|
_defineProperty(this, "canSort", void 0);
|
|
95
122
|
_defineProperty(this, "children", void 0);
|
|
96
123
|
_defineProperty(this, "dataType", void 0);
|
|
124
|
+
_defineProperty(this, "isSingleValue", void 0);
|
|
97
125
|
_defineProperty(this, "renderClient", function (record) {
|
|
98
|
-
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3
|
|
126
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
99
127
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
100
128
|
return !isNull(item);
|
|
101
129
|
}) : false;
|
|
@@ -107,12 +135,12 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
107
135
|
valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
|
|
108
136
|
failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
|
|
109
137
|
options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options,
|
|
110
|
-
isShowPopover:
|
|
138
|
+
isShowPopover: !_this.isSingleValue
|
|
111
139
|
})
|
|
112
140
|
}) : null;
|
|
113
141
|
});
|
|
114
142
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
115
|
-
var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7
|
|
143
|
+
var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
|
|
116
144
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
117
145
|
//兼容多个商品
|
|
118
146
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -124,7 +152,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
124
152
|
valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
|
|
125
153
|
failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
|
|
126
154
|
options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options,
|
|
127
|
-
isShowPopover:
|
|
155
|
+
isShowPopover: !_this.isSingleValue
|
|
128
156
|
}));
|
|
129
157
|
});
|
|
130
158
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -141,12 +169,12 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
141
169
|
var _typeMap$_this$type10;
|
|
142
170
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
|
|
143
171
|
return (list || []).map(function (item) {
|
|
144
|
-
var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13,
|
|
172
|
+
var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13, _typeMap$_this$type16, _typeMap$_this$type17;
|
|
145
173
|
var currentOption = (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : (_typeMap$_this$type12 = _typeMap$_this$type11.options) === null || _typeMap$_this$type12 === void 0 ? void 0 : (_typeMap$_this$type13 = _typeMap$_this$type12.find) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.call(_typeMap$_this$type12, function (option) {
|
|
146
174
|
var _typeMap$_this$type14;
|
|
147
175
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
148
176
|
});
|
|
149
|
-
if (
|
|
177
|
+
if (_this.isSingleValue) {
|
|
150
178
|
var _typeMap$_this$type15;
|
|
151
179
|
return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '';
|
|
152
180
|
}
|
|
@@ -154,15 +182,15 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
154
182
|
}).join(',');
|
|
155
183
|
});
|
|
156
184
|
_defineProperty(this, "editRender", function (p) {
|
|
157
|
-
var _this$
|
|
185
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type18;
|
|
158
186
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
159
187
|
title: _this.name,
|
|
160
188
|
name: _this.id,
|
|
161
189
|
rules: _this.rules,
|
|
162
190
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
163
191
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
164
|
-
required: (_this$
|
|
165
|
-
tooltip: (_this$
|
|
192
|
+
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,
|
|
193
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
166
194
|
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
167
195
|
type: (_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.type,
|
|
168
196
|
failValue: typeMap[_this.type].failValue
|
|
@@ -172,11 +200,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
172
200
|
_defineProperty(this, "filterConfig", function (item) {
|
|
173
201
|
var _typeMap$_this$type19, _item$templateConfig;
|
|
174
202
|
return {
|
|
175
|
-
searchDefaultConditions:
|
|
203
|
+
searchDefaultConditions: ['BS_E3_WAREHOUSING_STATUS', 'WAREHOUSING_STATUS'].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
176
204
|
type: item.type,
|
|
177
205
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code),
|
|
178
206
|
name: "".concat(_this.name),
|
|
179
|
-
filterComponentType:
|
|
207
|
+
filterComponentType: ['BS_E3_WAREHOUSING_STATUS', 'WAREHOUSING_STATUS'].includes(_this.type) ? 'MultipleSelect' : 'SelectInput',
|
|
180
208
|
props: {
|
|
181
209
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
182
210
|
fieldNames: {
|
|
@@ -190,7 +218,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
190
218
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.code), value);
|
|
191
219
|
};
|
|
192
220
|
},
|
|
193
|
-
formatFilterValue:
|
|
221
|
+
formatFilterValue: ['BS_E3_WAREHOUSING_STATUS', 'WAREHOUSING_STATUS'].includes(_this.type) ? null : function (value) {
|
|
194
222
|
if (value.type === 'keywords') {
|
|
195
223
|
return value.keywords;
|
|
196
224
|
} else {
|
|
@@ -211,7 +239,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
211
239
|
this.canSort = false;
|
|
212
240
|
this.children = [];
|
|
213
241
|
this.dataType = 'object';
|
|
214
|
-
this.rules = (_this$
|
|
242
|
+
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
215
243
|
required: true,
|
|
216
244
|
validator: function validator(_, value) {
|
|
217
245
|
var hasNo = (value || []).some(function (item) {
|
|
@@ -226,5 +254,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
226
254
|
}
|
|
227
255
|
}] : [];
|
|
228
256
|
this.align = 'left';
|
|
257
|
+
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === 'BS_E3_WAREHOUSING_STATUS';
|
|
229
258
|
});
|
|
230
259
|
export default CommonMultiStatus;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class MemberLevel implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
12
|
+
canSort: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
18
|
+
editRender: (p: any) => React.JSX.Element;
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
|
+
renderExport: (value: any, record: Record) => any;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "in";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "MultipleSelect";
|
|
29
|
+
props: {
|
|
30
|
+
options: any;
|
|
31
|
+
};
|
|
32
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export default MemberLevel;
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
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); }
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { Select } from "antd";
|
|
11
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
import intersection from "lodash/intersection";
|
|
13
|
+
import GetFormItem from "../GetFormItem";
|
|
14
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
+
import { SYMBOL } from "../../constant";
|
|
16
|
+
var EditRenderItem = function EditRenderItem(props) {
|
|
17
|
+
var value = props.value;
|
|
18
|
+
return /*#__PURE__*/React.createElement(Select, _extends({}, props, {
|
|
19
|
+
value: value,
|
|
20
|
+
mode: "multiple"
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
var MemberLevel = /*#__PURE__*/_createClass(function MemberLevel(options) {
|
|
24
|
+
var _this = this,
|
|
25
|
+
_this$componentConfig5;
|
|
26
|
+
_classCallCheck(this, MemberLevel);
|
|
27
|
+
_defineProperty(this, "name", void 0);
|
|
28
|
+
_defineProperty(this, "id", void 0);
|
|
29
|
+
_defineProperty(this, "sortField", void 0);
|
|
30
|
+
_defineProperty(this, "type", void 0);
|
|
31
|
+
_defineProperty(this, "rules", void 0);
|
|
32
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
33
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
|
+
_defineProperty(this, "formField", void 0);
|
|
35
|
+
_defineProperty(this, "canSort", void 0);
|
|
36
|
+
_defineProperty(this, "children", void 0);
|
|
37
|
+
_defineProperty(this, "dataType", void 0);
|
|
38
|
+
_defineProperty(this, "options", void 0);
|
|
39
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
40
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_memberLevel")];
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "editRender", function (p) {
|
|
43
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
44
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
45
|
+
title: _this.name,
|
|
46
|
+
name: _this.id,
|
|
47
|
+
rules: _this.rules,
|
|
48
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
49
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
50
|
+
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,
|
|
51
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
52
|
+
component: /*#__PURE__*/React.createElement(EditRenderItem, _extends({}, _this.componentConfig, {
|
|
53
|
+
placeholder: "\u8BF7\u9009\u62E9\u4F1A\u5458\u7B49\u7EA7",
|
|
54
|
+
showSearch: true,
|
|
55
|
+
onChange: p === null || p === void 0 ? void 0 : p.onChange,
|
|
56
|
+
options: _this.options,
|
|
57
|
+
optionFilterProp: "label"
|
|
58
|
+
}))
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
62
|
+
var _record;
|
|
63
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
64
|
+
id: _this.id,
|
|
65
|
+
label: _this.name,
|
|
66
|
+
value: record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_memberLevel")]) === null || _record === void 0 ? void 0 : _record.join("、")
|
|
67
|
+
}) : null;
|
|
68
|
+
});
|
|
69
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
70
|
+
var _record2;
|
|
71
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")])) {
|
|
72
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
73
|
+
}
|
|
74
|
+
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_memberLevel")]) === null || _record2 === void 0 ? void 0 : _record2.join("、"));
|
|
75
|
+
});
|
|
76
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
77
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_memberLevel")])) return null;
|
|
78
|
+
return _this.renderPc(undefined, r);
|
|
79
|
+
});
|
|
80
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
81
|
+
var _record3;
|
|
82
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")])) {
|
|
83
|
+
return "--";
|
|
84
|
+
}
|
|
85
|
+
return record === null || record === void 0 ? void 0 : (_record3 = record["".concat(_this.id, "_memberLevel")]) === null || _record3 === void 0 ? void 0 : _record3.join("、");
|
|
86
|
+
});
|
|
87
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
88
|
+
return {
|
|
89
|
+
searchDefaultConditions: SYMBOL.in,
|
|
90
|
+
type: item.type,
|
|
91
|
+
id: "".concat(item.id, "_memberLevel"),
|
|
92
|
+
// 过滤组件id
|
|
93
|
+
name: item.name,
|
|
94
|
+
// 过滤组件名称
|
|
95
|
+
filterComponentType: "MultipleSelect",
|
|
96
|
+
props: {
|
|
97
|
+
options: _this.options || []
|
|
98
|
+
},
|
|
99
|
+
filterFn: function filterFn(value) {
|
|
100
|
+
return function (i) {
|
|
101
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "memberLevel")).length > 0;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
this.name = options.name;
|
|
107
|
+
this.id = options.id;
|
|
108
|
+
this.sortField = options.id;
|
|
109
|
+
this.formField = "".concat(options.id, "_memberLevel");
|
|
110
|
+
this.type = options.type;
|
|
111
|
+
this.componentConfig = options.componentConfig;
|
|
112
|
+
this.rules = [];
|
|
113
|
+
this.isCombinationComponent = false;
|
|
114
|
+
this.canSort = false;
|
|
115
|
+
this.children = [];
|
|
116
|
+
this.dataType = "array";
|
|
117
|
+
this.options = ((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.options) || [];
|
|
118
|
+
});
|
|
119
|
+
export default MemberLevel;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | JstLogistics | JstSendGood |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsGoods | BsSystemOrder | BsE3Goods | BsE3Reissue | CommonMultiStatus | JstLogistics | JstSendGood | Label | MemberLevel | MsgStatus | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -187,6 +187,7 @@ export var factory = function factory(type, options) {
|
|
|
187
187
|
case "RETURN_GOODS_STATUS":
|
|
188
188
|
case "EXCHANGE_STATUS":
|
|
189
189
|
case "WAREHOUSING_STATUS":
|
|
190
|
+
case "BS_E3_WAREHOUSING_STATUS":
|
|
190
191
|
return new CommonMultiStatus(options);
|
|
191
192
|
case "MSG_STATUS":
|
|
192
193
|
return new MsgStatus(options);
|
|
@@ -229,6 +230,8 @@ export var factory = function factory(type, options) {
|
|
|
229
230
|
case "AFTER_SALES_ORDER_ID":
|
|
230
231
|
// 售后单ID
|
|
231
232
|
return new AfterSalesOrderId(options);
|
|
233
|
+
case "MEMBER_LEVEL":
|
|
234
|
+
return new MemberLevel(options);
|
|
232
235
|
default:
|
|
233
236
|
return new BasicInput(options);
|
|
234
237
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
|
83
83
|
export { default as CommonInput } from "./components/CommonInput";
|
|
84
84
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
85
85
|
export { default as Label } from "./components/Label";
|
|
86
|
+
export { default as MemberLevel } from "./components/MemberLevel";
|
|
86
87
|
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
87
88
|
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
88
89
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
package/dist/esm/index.js
CHANGED
|
@@ -83,6 +83,7 @@ export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
|
83
83
|
export { default as CommonInput } from "./components/CommonInput";
|
|
84
84
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
85
85
|
export { default as Label } from "./components/Label";
|
|
86
|
+
export { default as MemberLevel } from "./components/MemberLevel";
|
|
86
87
|
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
87
88
|
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
88
89
|
// TODO: ERP 打款工单使用
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.6",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.22.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.22.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.22.6",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.22.6",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "295d7af78c1cba683897c4dc4f0fc8764ec2f465",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|