@kmkf-fe-packages/services-components 0.13.0-alpha.0 → 0.13.0-alpha.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/components/Cascader/index.d.ts +5 -3
- package/dist/esm/components/Cascader/index.js +16 -12
- package/dist/esm/components/FlowTag/index.d.ts +38 -0
- package/dist/esm/components/FlowTag/index.js +126 -0
- package/dist/esm/factory.d.ts +3 -3
- package/dist/esm/factory.js +97 -97
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +4 -4
|
@@ -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,13 +27,15 @@ 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: "in";
|
|
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;
|
|
37
39
|
fieldNames: {
|
|
38
40
|
label: string;
|
|
39
41
|
value: string;
|
|
@@ -41,7 +43,7 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
41
43
|
};
|
|
42
44
|
};
|
|
43
45
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
44
|
-
formatFilterValue: (val: Array<string>) => string | undefined;
|
|
46
|
+
formatFilterValue: (val: Array<string>) => (string | undefined)[] | undefined;
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
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.in,
|
|
99
99
|
type: item.type,
|
|
100
100
|
id: "".concat(item.id, "_multSelect"),
|
|
101
101
|
// 过滤组件id
|
|
@@ -104,6 +104,8 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
104
104
|
filterComponentType: 'Cascader',
|
|
105
105
|
props: {
|
|
106
106
|
options: options,
|
|
107
|
+
multiple: true,
|
|
108
|
+
maxTagCount: 'responsive',
|
|
107
109
|
fieldNames: {
|
|
108
110
|
label: 'label',
|
|
109
111
|
value: 'actived',
|
|
@@ -117,15 +119,17 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
117
119
|
},
|
|
118
120
|
formatFilterValue: function formatFilterValue(val) {
|
|
119
121
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
return val.map(function (item) {
|
|
123
|
+
var node = tree.findNodeByValue(options, 'actived', item[item.length - 1]);
|
|
124
|
+
if (node) {
|
|
125
|
+
var label = node.label,
|
|
126
|
+
actived = node.actived;
|
|
127
|
+
return JSON.stringify({
|
|
128
|
+
label: label,
|
|
129
|
+
actived: actived
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
});
|
|
129
133
|
}
|
|
130
134
|
}
|
|
131
135
|
};
|
|
@@ -146,8 +150,8 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
146
150
|
|
|
147
151
|
/**
|
|
148
152
|
* 通过值计算展示内容
|
|
149
|
-
* @param value
|
|
150
|
-
* @returns
|
|
153
|
+
* @param value
|
|
154
|
+
* @returns
|
|
151
155
|
*/);
|
|
152
156
|
|
|
153
157
|
export default BasicCascader;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class FlowTag implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderPc: (value: any, record: Record) => any;
|
|
18
|
+
renderLog: (r: Record) => any;
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
20
|
+
renderExport: (value: any, record: Record) => any;
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "in";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "MultipleSelect";
|
|
29
|
+
props: {
|
|
30
|
+
options: {
|
|
31
|
+
label: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
35
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export default FlowTag;
|
|
@@ -0,0 +1,126 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
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); }
|
|
5
|
+
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); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 "react";
|
|
12
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
+
import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import GetFormItem from "../GetFormItem";
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
17
|
+
var TAG_MAP = {
|
|
18
|
+
REMINDER: "催单",
|
|
19
|
+
REJECT: "驳回"
|
|
20
|
+
};
|
|
21
|
+
var TAG_ICON_MAP = {
|
|
22
|
+
REMINDER: "催单",
|
|
23
|
+
REJECT: "驳回"
|
|
24
|
+
};
|
|
25
|
+
var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
|
|
26
|
+
var _this = this;
|
|
27
|
+
_classCallCheck(this, FlowTag);
|
|
28
|
+
_defineProperty(this, "name", void 0);
|
|
29
|
+
_defineProperty(this, "id", void 0);
|
|
30
|
+
_defineProperty(this, "sortField", void 0);
|
|
31
|
+
_defineProperty(this, "type", void 0);
|
|
32
|
+
_defineProperty(this, "rules", void 0);
|
|
33
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
34
|
+
_defineProperty(this, "effects", void 0);
|
|
35
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
36
|
+
_defineProperty(this, "formField", void 0);
|
|
37
|
+
_defineProperty(this, "canSort", void 0);
|
|
38
|
+
_defineProperty(this, "children", void 0);
|
|
39
|
+
_defineProperty(this, "dataType", void 0);
|
|
40
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
41
|
+
var tag = record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
|
|
42
|
+
if (!tag) return null;
|
|
43
|
+
return tag.map(function (t) {
|
|
44
|
+
return TAG_ICON_MAP[t];
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
var tag = r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
49
|
+
if (!tag) return null;
|
|
50
|
+
return tag.map(function (t) {
|
|
51
|
+
return TAG_ICON_MAP[t];
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
55
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
56
|
+
});
|
|
57
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
58
|
+
var tag = record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
|
|
59
|
+
return tag ? tag.map(function (t) {
|
|
60
|
+
return TAG_MAP[t];
|
|
61
|
+
}).join(",") : "--";
|
|
62
|
+
});
|
|
63
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
64
|
+
var _record;
|
|
65
|
+
if (!isNull(record === null || record === void 0 ? void 0 : record[_this.id])) return null;
|
|
66
|
+
var tagValue = record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.map(function (t) {
|
|
67
|
+
return TAG_ICON_MAP[t];
|
|
68
|
+
});
|
|
69
|
+
return /*#__PURE__*/React.createElement(ItemView, {
|
|
70
|
+
id: _this.id,
|
|
71
|
+
label: _this.name,
|
|
72
|
+
value: tagValue
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
_defineProperty(this, "editRender", function (p) {
|
|
76
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
77
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
78
|
+
title: _this.name,
|
|
79
|
+
name: _this.id,
|
|
80
|
+
rules: _this.rules,
|
|
81
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
82
|
+
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,
|
|
83
|
+
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
84
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(_this.name)
|
|
85
|
+
}))
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
89
|
+
return {
|
|
90
|
+
searchDefaultConditions: SYMBOL.in,
|
|
91
|
+
type: item.type,
|
|
92
|
+
id: item.id,
|
|
93
|
+
// 过滤组件id
|
|
94
|
+
name: item.name,
|
|
95
|
+
// 过滤组件名称
|
|
96
|
+
filterComponentType: "MultipleSelect",
|
|
97
|
+
props: {
|
|
98
|
+
options: [{
|
|
99
|
+
label: "催单",
|
|
100
|
+
value: "REMINDER"
|
|
101
|
+
}, {
|
|
102
|
+
label: "暂存",
|
|
103
|
+
value: "REJECT"
|
|
104
|
+
}]
|
|
105
|
+
},
|
|
106
|
+
filterFn: function filterFn(value) {
|
|
107
|
+
return function (i) {
|
|
108
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
});
|
|
113
|
+
this.name = "标签";
|
|
114
|
+
this.id = (options === null || options === void 0 ? void 0 : options.id) || "markFlag";
|
|
115
|
+
this.sortField = "markFlag";
|
|
116
|
+
this.formField = "markFlag";
|
|
117
|
+
this.type = "FLOW_TAG";
|
|
118
|
+
this.effects = options.effects;
|
|
119
|
+
this.rules = [];
|
|
120
|
+
this.isCombinationComponent = false;
|
|
121
|
+
this.canSort = false;
|
|
122
|
+
this.children = [];
|
|
123
|
+
this.componentConfig = _objectSpread({}, options.componentConfig);
|
|
124
|
+
this.dataType = "string";
|
|
125
|
+
});
|
|
126
|
+
export default FlowTag;
|
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, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from
|
|
2
|
-
import { PickOption } from
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
|
|
2
|
+
import { PickOption } from "./type";
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,173 +1,173 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
|
-
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
|
|
4
2
|
export var factory = function factory(type, options) {
|
|
5
3
|
var _options$componentCon;
|
|
6
4
|
switch (type) {
|
|
7
|
-
case
|
|
5
|
+
case "PLATFORM_INPUT":
|
|
8
6
|
return new PlatForm(options);
|
|
9
|
-
case
|
|
7
|
+
case "SHOP_INPUT":
|
|
10
8
|
return new ShopInput(options);
|
|
11
|
-
case
|
|
9
|
+
case "OPERATOR_INPUT":
|
|
12
10
|
return new Submitter(options);
|
|
13
|
-
case
|
|
11
|
+
case "HANDLER_INPUT":
|
|
14
12
|
return new Handler(options);
|
|
15
|
-
case
|
|
13
|
+
case "COMPLETED_USER_INPUT":
|
|
16
14
|
return new CompletedUser(options);
|
|
17
|
-
case
|
|
15
|
+
case "INPUT":
|
|
18
16
|
return new BasicInput(options);
|
|
19
|
-
case
|
|
17
|
+
case "RADIO":
|
|
20
18
|
return new BasicRadio(options);
|
|
21
|
-
case
|
|
19
|
+
case "TEXTAREA":
|
|
22
20
|
return new BasicTextArea(options);
|
|
23
|
-
case
|
|
21
|
+
case "CHECKBOX":
|
|
24
22
|
return new BasicCheckbox(options);
|
|
25
|
-
case
|
|
23
|
+
case "DATETIME":
|
|
26
24
|
return new BasicDataTime(options);
|
|
27
|
-
case
|
|
28
|
-
case
|
|
25
|
+
case "SELECT":
|
|
26
|
+
case "BUYER_MESSAGE_NOTICE":
|
|
29
27
|
return new BasicSelect(options);
|
|
30
|
-
case
|
|
28
|
+
case "PICTURE":
|
|
31
29
|
return new BasicPicture(options);
|
|
32
|
-
case
|
|
30
|
+
case "BASIC_MULT_SELECT":
|
|
33
31
|
return new BasicMultSelect(options);
|
|
34
|
-
case
|
|
32
|
+
case "MULT_SELECT":
|
|
35
33
|
return new BasicCascader(options);
|
|
36
|
-
case
|
|
34
|
+
case "BASIC_ADDRESS":
|
|
37
35
|
return new BasicAddress(options);
|
|
38
|
-
case
|
|
36
|
+
case "BASIC_GRADE":
|
|
39
37
|
return new BasicGrade(options);
|
|
40
|
-
case
|
|
38
|
+
case "RATE":
|
|
41
39
|
return new BasicRate(options);
|
|
42
|
-
case
|
|
40
|
+
case "FILE":
|
|
43
41
|
return new BasicFile(options);
|
|
44
|
-
case
|
|
42
|
+
case "POSTING":
|
|
45
43
|
return new BasicPosting(options);
|
|
46
|
-
case
|
|
44
|
+
case "SHOP_NAME_INPUT":
|
|
47
45
|
return new ShopName(options);
|
|
48
|
-
case
|
|
46
|
+
case "TRADE_ID_INPUT":
|
|
49
47
|
return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
|
|
50
|
-
case
|
|
48
|
+
case "BUYER_NICK_INPUT":
|
|
51
49
|
return new BuyerNick(options);
|
|
52
|
-
case
|
|
50
|
+
case "RECEIVER_NAME_INPUT":
|
|
53
51
|
return new ReceiverName(options);
|
|
54
|
-
case
|
|
52
|
+
case "RECEIVER_MOBILE_INPUT":
|
|
55
53
|
return new ReceiverMobile(options);
|
|
56
|
-
case
|
|
54
|
+
case "RECEIVER_ADDRESS_INPUT":
|
|
57
55
|
return new ReceiverAddress(options);
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
63
|
-
case
|
|
64
|
-
case
|
|
56
|
+
case "TRADE_CREATE_DATETIME":
|
|
57
|
+
case "TRADE_PAYMENT_DATETIME":
|
|
58
|
+
case "TRADE_DELIVERY_DATETIME":
|
|
59
|
+
case "TRADE_CLOSING_DATETIME":
|
|
60
|
+
case "BS_SIGNING_TIME":
|
|
61
|
+
case "BS_SEND_TIME":
|
|
62
|
+
case "BS_TRADE_PAYMENT_TIME":
|
|
65
63
|
return new TradeDateTime(options);
|
|
66
|
-
case
|
|
64
|
+
case "EXPRESS_LOGISTICS_SELECT":
|
|
67
65
|
return new Logistics(options);
|
|
68
|
-
case
|
|
66
|
+
case "RETURN_LOGISTICS_SELECT":
|
|
69
67
|
return new ReturnLogistics(options);
|
|
70
|
-
case
|
|
71
|
-
case
|
|
72
|
-
case
|
|
73
|
-
case
|
|
68
|
+
case "ACTUAL_PAYMENT":
|
|
69
|
+
case "BS_NET_RECEIPTS":
|
|
70
|
+
case "BS_DEPOSIT":
|
|
71
|
+
case "BS_PACKAGE_WEIGHT":
|
|
74
72
|
return new ActualPayment(options);
|
|
75
|
-
case
|
|
73
|
+
case "REMARK_INPUT":
|
|
76
74
|
return new ERemark(options);
|
|
77
|
-
case
|
|
75
|
+
case "ITEM_SELECT":
|
|
78
76
|
return new ItemSelect(options);
|
|
79
|
-
case
|
|
77
|
+
case "ITEM_ID":
|
|
80
78
|
return new ItemId(options);
|
|
81
|
-
case
|
|
79
|
+
case "ITEM_ENCODE":
|
|
82
80
|
return new ItemEnCode(options);
|
|
83
|
-
case
|
|
81
|
+
case "ALI_PAY_INPUT":
|
|
84
82
|
return new AliPay(options);
|
|
85
|
-
case
|
|
83
|
+
case "ORDINARY_INVOICE":
|
|
86
84
|
return new Ordinary(options);
|
|
87
|
-
case
|
|
85
|
+
case "ITEM_SELECT_THIRD":
|
|
88
86
|
return new ThirdItemSelect(options);
|
|
89
|
-
case
|
|
87
|
+
case "ENTERPRISE_PAYMENT":
|
|
90
88
|
return new Payment(options);
|
|
91
|
-
case
|
|
89
|
+
case "SYSTEM_ORDER_NO":
|
|
92
90
|
return new SystemOrderNo(options);
|
|
93
|
-
case
|
|
91
|
+
case "LOGISTICS_INTERCEPTION":
|
|
94
92
|
return new LogisticsInterception(options);
|
|
95
|
-
case
|
|
93
|
+
case "LOGISTICS_TRAJECTORY":
|
|
96
94
|
return new LogisticsTrajectory(options);
|
|
97
|
-
case
|
|
95
|
+
case "WORK_ORDER_ID_INPUT":
|
|
98
96
|
return new WorkOrderId(options);
|
|
99
|
-
case
|
|
97
|
+
case "FLOW_STATUS_SELECT":
|
|
100
98
|
return new FlowStatusSelect(options);
|
|
101
|
-
case
|
|
99
|
+
case "FLOW_MARK_SELECT":
|
|
102
100
|
return new FlowMarkSelect(options);
|
|
103
|
-
case
|
|
101
|
+
case "FLOW_TAG":
|
|
102
|
+
return new FlowTag(options);
|
|
103
|
+
case "COMPLETED_DATETIME":
|
|
104
104
|
return new CommonDataTime(options);
|
|
105
|
-
case
|
|
105
|
+
case "CREATED_DATETIME":
|
|
106
106
|
return new CommonDataTime(options);
|
|
107
|
-
case
|
|
107
|
+
case "UPDATE_DATETIME":
|
|
108
108
|
return new CommonDataTime(options);
|
|
109
|
-
case
|
|
109
|
+
case "TEMPLATE_ID_INPUT":
|
|
110
110
|
return new TemplateSelect(options);
|
|
111
|
-
case
|
|
112
|
-
case
|
|
111
|
+
case "JST_LOGISTICS":
|
|
112
|
+
case "REISSUE_LOGISTICS":
|
|
113
113
|
return new JstLogistics(options);
|
|
114
|
-
case
|
|
114
|
+
case "JST_ITEM_SELECT_THIRD":
|
|
115
115
|
return new JstItemSelect(options);
|
|
116
|
-
case
|
|
116
|
+
case "JST_SUPPLY":
|
|
117
117
|
return new JstSupply(options);
|
|
118
|
-
case
|
|
119
|
-
case
|
|
118
|
+
case "BS_SYSTEM_ORDER":
|
|
119
|
+
case "WLN_SYSTEM_ORDER":
|
|
120
120
|
return new BsSystemOrder(options);
|
|
121
|
-
case
|
|
122
|
-
case
|
|
123
|
-
case
|
|
121
|
+
case "JST_SEND_GOOD":
|
|
122
|
+
case "BS_SEND_GOOD":
|
|
123
|
+
case "WLN_SEND_GOOD":
|
|
124
124
|
return new JstSendGood(options);
|
|
125
|
-
case
|
|
125
|
+
case "BS_POSTING":
|
|
126
126
|
return new BasicPosting(options);
|
|
127
|
-
case
|
|
127
|
+
case "BS_GOODS":
|
|
128
128
|
return new BsGoods(options);
|
|
129
|
-
case
|
|
129
|
+
case "BS_EXCHANGE_GOODS":
|
|
130
130
|
return new BsExchange(options);
|
|
131
|
-
case
|
|
131
|
+
case "BS_REISSUE_GOODS":
|
|
132
132
|
return new BsReissue(options);
|
|
133
|
-
case
|
|
133
|
+
case "BS_RETURN_GOODS":
|
|
134
134
|
return new BsReturn(options);
|
|
135
|
-
case '
|
|
136
|
-
case
|
|
137
|
-
case
|
|
138
|
-
case
|
|
135
|
+
// case 'REISSUE_TRADE_ID':
|
|
136
|
+
case "BS_DELIVERY_NO":
|
|
137
|
+
case "RETURN_GOODS_TRADE_ID":
|
|
138
|
+
case "EXCHANGE_TRADE_ID":
|
|
139
139
|
return new CommonSystemOrder(options);
|
|
140
|
-
case
|
|
141
|
-
case
|
|
140
|
+
case "BS_LOGISTICS":
|
|
141
|
+
case "WLN_LOGISTICS":
|
|
142
142
|
return new BsLogistics(options);
|
|
143
|
-
case
|
|
143
|
+
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
144
144
|
return new FlowWorkOrderId(options);
|
|
145
|
-
case
|
|
145
|
+
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
146
146
|
return new FlowWorkOrderId(options);
|
|
147
|
-
case
|
|
148
|
-
case
|
|
149
|
-
case
|
|
150
|
-
case
|
|
147
|
+
case "REISSUE_STATUS":
|
|
148
|
+
case "ADJUST_WORK_ORDER_STATUS":
|
|
149
|
+
case "CREATE_STATUS":
|
|
150
|
+
case "INVOICE_STATUS":
|
|
151
151
|
return new StatusSelect(options);
|
|
152
|
-
case
|
|
153
|
-
case
|
|
154
|
-
case
|
|
152
|
+
case "RETURN_GOODS_STATUS":
|
|
153
|
+
case "EXCHANGE_STATUS":
|
|
154
|
+
case "WAREHOUSING_STATUS":
|
|
155
155
|
return new CommonMultiStatus(options);
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
case
|
|
156
|
+
case "REISSUE_TRADE_ID":
|
|
157
|
+
// case 'EXCHANGE_TRADE_ID':
|
|
158
|
+
return new CommonTradeId(options);
|
|
159
|
+
case "NUMERICAL_CALCULATION":
|
|
160
160
|
return new Calculation(options);
|
|
161
|
-
case
|
|
161
|
+
case "NODE_DEAD_LINE_INPUT":
|
|
162
162
|
// 工单时效
|
|
163
163
|
return new NodeDeadLine(options);
|
|
164
|
-
case
|
|
164
|
+
case "HANDLER_DEAD_LINE_INPUT":
|
|
165
165
|
// 处理人时效
|
|
166
166
|
return new HandlerDeadLine(options);
|
|
167
|
-
case
|
|
167
|
+
case "NODE_STAY_DURATION_INPUT":
|
|
168
168
|
// 工单停留时长
|
|
169
169
|
return new NodeStayDuration(options);
|
|
170
|
-
case
|
|
170
|
+
case "WLN_GOODS":
|
|
171
171
|
// 万里牛商品
|
|
172
172
|
return new WlnGoods(options);
|
|
173
173
|
default:
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { default as BsReturn } from "./components/BS/BsReturn";
|
|
|
45
45
|
export { default as BsLogistics } from "./components/BS/BsLogistics";
|
|
46
46
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
47
47
|
export { default as FlowMarkSelect } from "./components/FlowMarkSelect";
|
|
48
|
+
export { default as FlowTag } from "./components/FlowTag";
|
|
48
49
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
49
50
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
50
51
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
package/dist/esm/index.js
CHANGED
|
@@ -45,6 +45,7 @@ export { default as BsReturn } from "./components/BS/BsReturn";
|
|
|
45
45
|
export { default as BsLogistics } from "./components/BS/BsLogistics";
|
|
46
46
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
47
47
|
export { default as FlowMarkSelect } from "./components/FlowMarkSelect";
|
|
48
|
+
export { default as FlowTag } from "./components/FlowTag";
|
|
48
49
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
49
50
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
50
51
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.13.0-alpha.
|
|
3
|
+
"version": "0.13.0-alpha.2",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.13.0-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.13.0-alpha.2",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "28fcac29b9d97a98033d60ab0b100ede3186f1e6"
|
|
44
44
|
}
|