@kmkf-fe-packages/services-components 1.22.5 → 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/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 +3 -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
|
|
@@ -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) => JstSendGood | 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 |
|
|
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) {
|
|
@@ -230,6 +230,8 @@ export var factory = function factory(type, options) {
|
|
|
230
230
|
case "AFTER_SALES_ORDER_ID":
|
|
231
231
|
// 售后单ID
|
|
232
232
|
return new AfterSalesOrderId(options);
|
|
233
|
+
case "MEMBER_LEVEL":
|
|
234
|
+
return new MemberLevel(options);
|
|
233
235
|
default:
|
|
234
236
|
return new BasicInput(options);
|
|
235
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
|
}
|