@kmkf-fe-packages/services-components 0.23.1-beta.1 → 0.23.1-beta.4
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/BS/BsLogistics/index.js +5 -4
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +7 -6
- package/dist/esm/components/BS/BsSystemOrder/index.js +22 -19
- package/dist/esm/components/BS/DeliveryNo/index.d.ts +6 -5
- package/dist/esm/components/BS/DeliveryNo/index.js +15 -12
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +16 -15
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +14 -13
- package/dist/esm/components/Common/index.d.ts +2 -1
- package/dist/esm/components/Common/index.js +168 -68
- package/dist/esm/components/CommonMultiStatus/index.d.ts +6 -5
- package/dist/esm/components/CommonMultiStatus/index.js +58 -51
- package/dist/esm/components/CommonSystemOrder/index.d.ts +6 -5
- package/dist/esm/components/CommonSystemOrder/index.js +29 -26
- package/dist/esm/components/Input/index.d.ts +7 -6
- package/dist/esm/components/Input/index.js +37 -26
- package/dist/esm/components/JST/JstLogistics/index.d.ts +11 -0
- package/dist/esm/components/JST/JstLogistics/index.js +21 -7
- package/dist/esm/components/Logistics/index.d.ts +6 -6
- package/dist/esm/components/Logistics/index.js +16 -15
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +48 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +119 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.d.ts +34 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.js +98 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.d.ts +40 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.js +95 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.js +74 -0
- package/dist/esm/components/Payment/index.d.ts +12 -12
- package/dist/esm/components/Payment/index.js +11 -12
- package/dist/esm/components/TradeId/index.d.ts +1 -1
- package/dist/esm/components/TradeId/index.js +2 -2
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +33 -0
- package/dist/esm/components/WDT/WdtGoods/index.js +121 -0
- package/dist/esm/constant.d.ts +1 -0
- package/dist/esm/constant.js +8 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -8
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/type.d.ts +12 -12
- package/package.json +4 -4
package/dist/esm/constant.js
CHANGED
|
@@ -11,4 +11,12 @@ export var SYMBOL = {
|
|
|
11
11
|
nin: 'nin',
|
|
12
12
|
non: 'non',
|
|
13
13
|
notnull: 'notnull'
|
|
14
|
+
};
|
|
15
|
+
export var batchInput = function batchInput(val) {
|
|
16
|
+
console.log('batchInput', val);
|
|
17
|
+
return val ? val.split(/[,|,|\s|\n|\rn]/).filter(function (t) {
|
|
18
|
+
return !!t;
|
|
19
|
+
}).map(function (t) {
|
|
20
|
+
return t.trim();
|
|
21
|
+
}) : val;
|
|
14
22
|
};
|
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, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } 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, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods } 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) => BsLogistics | BsSystemOrder | CommonMultiStatus | CommonSystemOrder | BasicInput | JstLogistics | Logistics | LogisticsMoreTrajectory | Payment | TradeId | WdtGoods | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
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, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -98,6 +98,8 @@ export var factory = function factory(type, options) {
|
|
|
98
98
|
return new LogisticsInterception(options);
|
|
99
99
|
case "LOGISTICS_TRAJECTORY":
|
|
100
100
|
return new LogisticsTrajectory(options);
|
|
101
|
+
case "LOGISTICS_TRAJECTORY_MORE":
|
|
102
|
+
return new LogisticsMoreTrajectory(options);
|
|
101
103
|
case "WORK_ORDER_ID_INPUT":
|
|
102
104
|
return new WorkOrderId(options);
|
|
103
105
|
case "FLOW_STATUS_SELECT":
|
|
@@ -123,6 +125,7 @@ export var factory = function factory(type, options) {
|
|
|
123
125
|
return new JstSupply(options);
|
|
124
126
|
case "BS_SYSTEM_ORDER":
|
|
125
127
|
case "WLN_SYSTEM_ORDER":
|
|
128
|
+
case "WDT_SYSTEM_ORDER":
|
|
126
129
|
return new BsSystemOrder(options);
|
|
127
130
|
case "JST_SEND_GOOD":
|
|
128
131
|
case "BS_SEND_GOOD":
|
|
@@ -132,7 +135,6 @@ export var factory = function factory(type, options) {
|
|
|
132
135
|
case "BS_POSTING":
|
|
133
136
|
return new BsPosting(options);
|
|
134
137
|
case "BS_GOODS":
|
|
135
|
-
// case "WDT_GOODS":
|
|
136
138
|
return new BsGoods(options);
|
|
137
139
|
case "BS_EXCHANGE_GOODS":
|
|
138
140
|
return new BsExchange(options);
|
|
@@ -169,20 +171,23 @@ export var factory = function factory(type, options) {
|
|
|
169
171
|
// case "REISSUE_TRADE_ID":
|
|
170
172
|
// case 'EXCHANGE_TRADE_ID':
|
|
171
173
|
// return new CommonTradeId(options);
|
|
172
|
-
case
|
|
174
|
+
case 'NUMERICAL_CALCULATION':
|
|
173
175
|
return new Calculation(options);
|
|
174
|
-
case
|
|
176
|
+
case 'NODE_DEAD_LINE_INPUT':
|
|
175
177
|
// 工单时效
|
|
176
178
|
return new NodeDeadLine(options);
|
|
177
|
-
case
|
|
179
|
+
case 'HANDLER_DEAD_LINE_INPUT':
|
|
178
180
|
// 处理人时效
|
|
179
181
|
return new HandlerDeadLine(options);
|
|
180
|
-
case
|
|
182
|
+
case 'NODE_STAY_DURATION_INPUT':
|
|
181
183
|
// 工单停留时长
|
|
182
184
|
return new NodeStayDuration(options);
|
|
183
|
-
case
|
|
185
|
+
case 'WLN_GOODS':
|
|
184
186
|
// 万里牛商品
|
|
185
187
|
return new WlnGoods(options);
|
|
188
|
+
case 'WDT_GOODS':
|
|
189
|
+
// 万里牛商品
|
|
190
|
+
return new WdtGoods(options);
|
|
186
191
|
default:
|
|
187
192
|
return new BasicInput(options);
|
|
188
193
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
|
50
50
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
51
51
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
52
52
|
export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
|
|
53
|
+
export { default as LogisticsMoreTrajectory } from "./components/LogisticsMoreTrajectory";
|
|
53
54
|
export { default as PlatForm } from "./components/PlatForm";
|
|
54
55
|
export { default as ShopInput } from "./components/ShopInput";
|
|
55
56
|
export { default as Submitter } from "./components/Submitter";
|
|
@@ -69,6 +70,7 @@ export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
|
69
70
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
70
71
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
71
72
|
export { default as MsgStatus } from './components/MsgStatus';
|
|
73
|
+
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
72
74
|
export { factory } from "./factory";
|
|
73
75
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
74
76
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/index.js
CHANGED
|
@@ -50,6 +50,7 @@ export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
|
50
50
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
51
51
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
52
52
|
export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
|
|
53
|
+
export { default as LogisticsMoreTrajectory } from "./components/LogisticsMoreTrajectory";
|
|
53
54
|
export { default as PlatForm } from "./components/PlatForm";
|
|
54
55
|
export { default as ShopInput } from "./components/ShopInput";
|
|
55
56
|
export { default as Submitter } from "./components/Submitter";
|
|
@@ -69,6 +70,7 @@ export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
|
69
70
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
70
71
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
71
72
|
export { default as MsgStatus } from "./components/MsgStatus";
|
|
73
|
+
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
72
74
|
export { factory } from "./factory";
|
|
73
75
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
74
76
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FormInstance } from
|
|
3
|
-
import { SYMBOL } from
|
|
4
|
-
export declare type DataType =
|
|
5
|
-
export declare type ALignType =
|
|
2
|
+
import type { FormInstance } from "antd";
|
|
3
|
+
import { SYMBOL } from "./constant";
|
|
4
|
+
export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
|
|
5
|
+
export declare type ALignType = "left" | "right" | "center";
|
|
6
6
|
export declare type QuerySymbol = keyof typeof SYMBOL;
|
|
7
7
|
export declare type Record = {
|
|
8
8
|
[props in string]: any;
|
|
@@ -27,7 +27,7 @@ export declare type FilterConfigType = {
|
|
|
27
27
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
28
28
|
formatFilterValue?: (p: any) => any;
|
|
29
29
|
};
|
|
30
|
-
export declare type FilterComponentType =
|
|
30
|
+
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput";
|
|
31
31
|
export interface ComponentInterface {
|
|
32
32
|
id: string;
|
|
33
33
|
sortField: string;
|
|
@@ -77,7 +77,7 @@ export interface ComponentInterface {
|
|
|
77
77
|
/**
|
|
78
78
|
* @description 显示字段名称
|
|
79
79
|
*/
|
|
80
|
-
showField?:
|
|
80
|
+
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder";
|
|
81
81
|
/**
|
|
82
82
|
* @description 是否选择SKU
|
|
83
83
|
*/
|
|
@@ -97,7 +97,7 @@ export interface ComponentInterface {
|
|
|
97
97
|
/**
|
|
98
98
|
* @description 备注状态
|
|
99
99
|
*/
|
|
100
|
-
associatedType?:
|
|
100
|
+
associatedType?: "APPEND";
|
|
101
101
|
isAssociated?: boolean;
|
|
102
102
|
isShowFlag?: boolean;
|
|
103
103
|
/**
|
|
@@ -138,7 +138,7 @@ export interface ComponentInterface {
|
|
|
138
138
|
* @description 时间初始值
|
|
139
139
|
*/
|
|
140
140
|
dateTime?: string;
|
|
141
|
-
dateType?:
|
|
141
|
+
dateType?: "DATE" | "DATE_TIME" | "DATE_RANGE" | "DATE_TIME_RANGE";
|
|
142
142
|
maxSize?: number;
|
|
143
143
|
basicGrade?: number;
|
|
144
144
|
range?: number;
|
|
@@ -233,13 +233,13 @@ export interface ComponentInterface {
|
|
|
233
233
|
getComponentValue: (r: Record) => any;
|
|
234
234
|
formDataTransform?: (r: any) => any;
|
|
235
235
|
}
|
|
236
|
-
export declare type PickOption = Pick<ComponentInterface,
|
|
236
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey">;
|
|
237
237
|
export declare type ColumnConfig = {
|
|
238
238
|
id: string;
|
|
239
239
|
name: string;
|
|
240
240
|
type: string;
|
|
241
241
|
subKey?: string;
|
|
242
|
-
mode?:
|
|
243
|
-
config?: ComponentInterface[
|
|
244
|
-
templateConfig?: ComponentInterface[
|
|
242
|
+
mode?: "multiple";
|
|
243
|
+
config?: ComponentInterface["componentConfig"];
|
|
244
|
+
templateConfig?: ComponentInterface["componentConfig"];
|
|
245
245
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.23.1-beta.
|
|
3
|
+
"version": "0.23.1-beta.4",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.23.1-beta.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.23.1-beta.4",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.4"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "56b3acff5ed4c12ca1c75551c33ada7769547a18",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|