@kmkf-fe-packages/services-components 0.13.0-alpha.17 → 0.13.0-alpha.18
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.
|
@@ -13,6 +13,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
dataType: ComponentInterface['dataType'];
|
|
15
15
|
templateId?: string;
|
|
16
|
+
workOrderUniqueKey?: string;
|
|
16
17
|
constructor(options: PickOption);
|
|
17
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -32,6 +32,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
32
32
|
_defineProperty(this, "children", void 0);
|
|
33
33
|
_defineProperty(this, "dataType", void 0);
|
|
34
34
|
_defineProperty(this, "templateId", void 0);
|
|
35
|
+
_defineProperty(this, "workOrderUniqueKey", void 0);
|
|
35
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
37
|
var _record;
|
|
37
38
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -91,6 +92,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
91
92
|
this.type = options.type;
|
|
92
93
|
this.templateId = options.templateId;
|
|
93
94
|
this.componentConfig = options.componentConfig;
|
|
95
|
+
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
94
96
|
this.rules = [{
|
|
95
97
|
validator: function validator(_, value) {
|
|
96
98
|
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
|
|
@@ -154,6 +156,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
154
156
|
}
|
|
155
157
|
params = {
|
|
156
158
|
templateId: _this.templateId,
|
|
159
|
+
workOrderUniqueKey: _this.workOrderUniqueKey,
|
|
157
160
|
needCheckComponentList: [{
|
|
158
161
|
componentKey: _this.formField,
|
|
159
162
|
componentValue: String(value)
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
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, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } 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) => BasicInput | PrevSubmitter | Submitter | 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 | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting;
|
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';
|
|
31
31
|
export interface ComponentInterface {
|
|
32
32
|
id: string;
|
|
33
33
|
sortField: string;
|
|
@@ -47,10 +47,11 @@ export interface ComponentInterface {
|
|
|
47
47
|
rules?: any[];
|
|
48
48
|
width?: number;
|
|
49
49
|
align?: ALignType;
|
|
50
|
-
dataType:
|
|
51
|
-
format?:
|
|
50
|
+
dataType: 'string' | 'number' | 'boolean' | 'array' | 'range' | 'object';
|
|
51
|
+
format?: 'dateTime' | 'date' | 'time' | 'cascader' | 'shopInput';
|
|
52
52
|
options?: Array<any>;
|
|
53
53
|
templateId?: string;
|
|
54
|
+
workOrderUniqueKey?: string;
|
|
54
55
|
/**
|
|
55
56
|
* @description 组件下标
|
|
56
57
|
* @deprecated 已弃用字段,后续版本不在使用
|
|
@@ -72,7 +73,7 @@ export interface ComponentInterface {
|
|
|
72
73
|
/**
|
|
73
74
|
* @description 显示字段名称
|
|
74
75
|
*/
|
|
75
|
-
showField?:
|
|
76
|
+
showField?: 'EXPRESS_COMPANY' | 'EXPRESS_WAYBILL_CODE' | 'EXPRESS_SNAPSHOT' | 'all' | 'bs' | 'workOrder';
|
|
76
77
|
/**
|
|
77
78
|
* @description 是否选择SKU
|
|
78
79
|
*/
|
|
@@ -92,7 +93,7 @@ export interface ComponentInterface {
|
|
|
92
93
|
/**
|
|
93
94
|
* @description 备注状态
|
|
94
95
|
*/
|
|
95
|
-
associatedType?:
|
|
96
|
+
associatedType?: 'APPEND';
|
|
96
97
|
isAssociated?: boolean;
|
|
97
98
|
isShowFlag?: boolean;
|
|
98
99
|
/**
|
|
@@ -133,7 +134,7 @@ export interface ComponentInterface {
|
|
|
133
134
|
* @description 时间初始值
|
|
134
135
|
*/
|
|
135
136
|
dateTime?: string;
|
|
136
|
-
dateType?:
|
|
137
|
+
dateType?: 'DATE' | 'DATE_TIME' | 'DATE_RANGE' | 'DATE_TIME_RANGE';
|
|
137
138
|
maxSize?: number;
|
|
138
139
|
basicGrade?: number;
|
|
139
140
|
range?: number;
|
|
@@ -228,13 +229,13 @@ export interface ComponentInterface {
|
|
|
228
229
|
getComponentValue: (r: Record) => any;
|
|
229
230
|
formDataTransform?: (r: any) => any;
|
|
230
231
|
}
|
|
231
|
-
export declare type PickOption = Pick<ComponentInterface,
|
|
232
|
+
export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects' | 'columnHeader' | 'templateId' | 'workOrderUniqueKey'>;
|
|
232
233
|
export declare type ColumnConfig = {
|
|
233
234
|
id: string;
|
|
234
235
|
name: string;
|
|
235
236
|
type: string;
|
|
236
237
|
subKey?: string;
|
|
237
|
-
mode?:
|
|
238
|
-
config?: ComponentInterface[
|
|
239
|
-
templateConfig?: ComponentInterface[
|
|
238
|
+
mode?: 'multiple';
|
|
239
|
+
config?: ComponentInterface['componentConfig'];
|
|
240
|
+
templateConfig?: ComponentInterface['componentConfig'];
|
|
240
241
|
};
|
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.18",
|
|
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.18",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.18"
|
|
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": "d55dda722db7d05be325329fa4a66cfaa7cd3c08"
|
|
44
44
|
}
|