@kmkf-fe-packages/services-components 1.22.1-beta.3 → 1.22.1-beta.32
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/dist/index.js +113 -0
- package/dist/esm/components/BS/BsGoods/index.js +6 -2
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +5 -5
- package/dist/esm/components/BS/BsSystemOrder/index.js +37 -15
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +6 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +20 -9
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +1 -0
- package/dist/esm/components/BS/common/BsHeaderGood.js +178 -101
- package/dist/esm/components/BsE3/BsGoods/index.js +1 -1
- package/dist/esm/components/BsE3/BsReissueE3/index.js +1 -1
- package/dist/esm/components/Common/dist/index.js +1525 -0
- package/dist/esm/components/Common/index.d.ts +6 -5
- package/dist/esm/components/Common/index.js +502 -361
- package/dist/esm/components/CommonHeaderGood/index copy.d.ts +27 -0
- package/dist/esm/components/CommonHeaderGood/index copy.js +659 -0
- package/dist/esm/components/CommonHeaderGood/index.d.ts +1 -0
- package/dist/esm/components/CommonHeaderGood/index.js +126 -93
- package/dist/esm/components/CommonMultiStatus/index.d.ts +5 -4
- package/dist/esm/components/CommonMultiStatus/index.js +98 -65
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/MemberLevel/index.d.ts +35 -0
- package/dist/esm/components/MemberLevel/index.js +119 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Radio/index.js +3 -2
- 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/dist/esm/type.d.ts +7 -2
- package/package.json +4 -4
|
@@ -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;
|
|
@@ -36,6 +36,5 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
-
formDataTransform: (value: string) => string | number;
|
|
40
39
|
}
|
|
41
40
|
export default PaymentAmount;
|
|
@@ -132,10 +132,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
|
-
_defineProperty(this, "formDataTransform", function (value) {
|
|
136
|
-
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
137
|
-
return isNumber.test(value) ? Number(value) : value;
|
|
138
|
-
});
|
|
139
135
|
this.name = '打款金额';
|
|
140
136
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
141
137
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -61,7 +61,8 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
61
61
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) === undefined) {
|
|
62
62
|
return "--";
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
var other = get(record, "".concat(_this.id, "_").concat(typeMap[type], "Other"), "");
|
|
65
|
+
return "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]).concat(other ? " " + other : "");
|
|
65
66
|
});
|
|
66
67
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
67
68
|
return typeMap[type] || "";
|
|
@@ -82,7 +83,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
82
83
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
83
84
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
84
85
|
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,
|
|
85
|
-
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 :
|
|
86
|
+
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 : "",
|
|
86
87
|
component: /*#__PURE__*/React.createElement(ApaasRadio, _extends({}, _this.componentConfig, {
|
|
87
88
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
88
89
|
}))
|
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) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsGoods | BsSystemOrder | BsE3Goods | BsE3Reissue | CommonMultiStatus | JstSendGood | 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 | JstLogistics | 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 | Label | 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/dist/esm/type.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FormInstance } from "antd";
|
|
3
3
|
import { SYMBOL } from "./constant";
|
|
4
|
+
export declare type ShowHeaderObjType = {
|
|
5
|
+
title: string;
|
|
6
|
+
dataIndex: string;
|
|
7
|
+
show?: boolean;
|
|
8
|
+
};
|
|
4
9
|
export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
|
|
5
10
|
export declare type ALignType = "left" | "right" | "center";
|
|
6
11
|
export declare type QuerySymbol = keyof typeof SYMBOL;
|
|
@@ -176,7 +181,7 @@ export interface ComponentInterface {
|
|
|
176
181
|
*/
|
|
177
182
|
erpFlag?: boolean;
|
|
178
183
|
reissueFlag?: boolean;
|
|
179
|
-
showHeader?: string[];
|
|
184
|
+
showHeader?: (ShowHeaderObjType | string)[];
|
|
180
185
|
reasonList?: any[];
|
|
181
186
|
disabled?: boolean;
|
|
182
187
|
config?: any;
|
|
@@ -270,7 +275,7 @@ export interface ComponentInterface {
|
|
|
270
275
|
getComponentValue: (r: Record) => any;
|
|
271
276
|
formDataTransform?: (r: any) => any;
|
|
272
277
|
}
|
|
273
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue">;
|
|
278
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
|
|
274
279
|
export declare type ColumnConfig = {
|
|
275
280
|
id: string;
|
|
276
281
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.32",
|
|
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.1-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.22.1-beta.30",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.29",
|
|
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": "af7503e65c74d8151e8cb22b5afe2400cb1f976b",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|