@kmkf-fe-packages/services-components 0.26.2-rc.2 → 0.26.2-rc.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/commonComponents/SelectMark/index.js +6 -2
- package/dist/esm/components/CommonInput/index.d.ts +0 -10
- package/dist/esm/components/CommonInput/index.js +2 -43
- package/dist/esm/components/CompletedUser/index.js +1 -1
- package/dist/esm/components/FlowMarkSelect/index.js +3 -2
- package/dist/esm/components/FlowStatusSelect/index.js +1 -0
- package/dist/esm/components/FlowTag/index.js +1 -1
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +40 -0
- package/dist/esm/components/FlowWorkOrderStatus/index.js +143 -0
- package/dist/esm/components/Handler/index.js +1 -1
- package/dist/esm/components/HandlerDeadLine/index.js +0 -1
- package/dist/esm/components/NodeDeadLine/index.js +0 -1
- package/dist/esm/components/NodeInput/index.d.ts +24 -0
- package/dist/esm/components/NodeInput/index.js +58 -0
- package/dist/esm/components/PlatForm/index.js +1 -1
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +28 -15
- package/dist/esm/components/ShopInput/index.js +1 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -2
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
|
@@ -79,11 +79,15 @@ export default (function (props) {
|
|
|
79
79
|
return item.value === value;
|
|
80
80
|
})) === null || _workOrderMark$find === void 0 ? void 0 : _workOrderMark$find.label;
|
|
81
81
|
}, [value]);
|
|
82
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
82
|
+
return markLabel ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
83
83
|
overlay: renderMenu()
|
|
84
84
|
}, /*#__PURE__*/React.createElement("span", {
|
|
85
85
|
onClick: function onClick(e) {
|
|
86
86
|
return e.stopPropagation();
|
|
87
87
|
}
|
|
88
|
-
}, markLabel || "--"))
|
|
88
|
+
}, markLabel || "--")) : /*#__PURE__*/React.createElement("span", {
|
|
89
|
+
onClick: function onClick(e) {
|
|
90
|
+
return e.stopPropagation();
|
|
91
|
+
}
|
|
92
|
+
}, markLabel || "--");
|
|
89
93
|
});
|
|
@@ -29,16 +29,6 @@ declare class CommonInput implements ComponentInterface {
|
|
|
29
29
|
id: string;
|
|
30
30
|
name: string;
|
|
31
31
|
filterComponentType: "Input";
|
|
32
|
-
props?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
searchDefaultConditions: "in";
|
|
35
|
-
type: string;
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
filterComponentType: "MultipleSelect";
|
|
39
|
-
props: {
|
|
40
|
-
options: any;
|
|
41
|
-
};
|
|
42
32
|
};
|
|
43
33
|
}
|
|
44
34
|
export default CommonInput;
|
|
@@ -13,39 +13,10 @@ import ItemView from "../../commonComponents/ItemView";
|
|
|
13
13
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var INPUT_MAP = {
|
|
16
|
-
NEW_PAYMENT_STATUS: {
|
|
17
|
-
key: "newPaymentStatus",
|
|
18
|
-
options: [{
|
|
19
|
-
label: "未打款",
|
|
20
|
-
value: "未打款"
|
|
21
|
-
}, {
|
|
22
|
-
label: "审核通过",
|
|
23
|
-
value: "审核通过"
|
|
24
|
-
}, {
|
|
25
|
-
label: "标记已打款",
|
|
26
|
-
value: "标记已打款"
|
|
27
|
-
}, {
|
|
28
|
-
label: "支付宝待付款",
|
|
29
|
-
value: "支付宝待付款"
|
|
30
|
-
}, {
|
|
31
|
-
label: "支付宝打款成功",
|
|
32
|
-
value: "支付宝打款成功"
|
|
33
|
-
}, {
|
|
34
|
-
label: "支付宝打款失败",
|
|
35
|
-
value: "支付宝打款失败"
|
|
36
|
-
}, {
|
|
37
|
-
label: "支付宝打款关闭",
|
|
38
|
-
value: "支付宝打款关闭"
|
|
39
|
-
}],
|
|
40
|
-
disabled: true,
|
|
41
|
-
placeholder: "自动获取无需填写",
|
|
42
|
-
filterType: "Select"
|
|
43
|
-
},
|
|
44
16
|
BUSINESS_ORDER_NO: {
|
|
45
17
|
key: "businessOrderNo",
|
|
46
18
|
disabled: true,
|
|
47
|
-
placeholder: "自动获取无需填写"
|
|
48
|
-
filterType: "Input"
|
|
19
|
+
placeholder: "自动获取无需填写"
|
|
49
20
|
}
|
|
50
21
|
};
|
|
51
22
|
var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
@@ -106,7 +77,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
106
77
|
});
|
|
107
78
|
});
|
|
108
79
|
_defineProperty(this, "filterConfig", function (item) {
|
|
109
|
-
return
|
|
80
|
+
return {
|
|
110
81
|
searchDefaultConditions: SYMBOL.like,
|
|
111
82
|
type: item.type,
|
|
112
83
|
id: "".concat(item.id, "_").concat(INPUT_MAP[_this.type].key),
|
|
@@ -114,17 +85,6 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
114
85
|
name: item.name,
|
|
115
86
|
// 过滤组件名称
|
|
116
87
|
filterComponentType: "Input"
|
|
117
|
-
} : {
|
|
118
|
-
searchDefaultConditions: SYMBOL.in,
|
|
119
|
-
type: item.type,
|
|
120
|
-
id: "".concat(item.id, "_").concat(INPUT_MAP[_this.type].key),
|
|
121
|
-
// 过滤组件id
|
|
122
|
-
name: item.name,
|
|
123
|
-
// 过滤组件名称
|
|
124
|
-
filterComponentType: "MultipleSelect",
|
|
125
|
-
props: {
|
|
126
|
-
options: INPUT_MAP[_this.type].options || []
|
|
127
|
-
}
|
|
128
88
|
};
|
|
129
89
|
});
|
|
130
90
|
this.name = options.name;
|
|
@@ -141,6 +101,5 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
141
101
|
this.canSort = !!INPUT_MAP[options.type].canSort;
|
|
142
102
|
this.children = [];
|
|
143
103
|
this.dataType = "string";
|
|
144
|
-
this.options = INPUT_MAP[options.type].options || [];
|
|
145
104
|
});
|
|
146
105
|
export default CommonInput;
|
|
@@ -64,7 +64,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
|
-
this.name = "完成人";
|
|
67
|
+
this.name = this.name = (options === null || options === void 0 ? void 0 : options.name) || "完成人";
|
|
68
68
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "completedUserName";
|
|
69
69
|
this.sortField = "completedUserName";
|
|
70
70
|
this.formField = "completedUserName";
|
|
@@ -40,8 +40,9 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
40
40
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
41
41
|
var changeMarkHandle = function changeMarkHandle(key) {
|
|
42
42
|
var _this$effects, _this$effects2;
|
|
43
|
-
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleChangeSingleWorkOrderMark) === "function" && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleChangeSingleWorkOrderMark(key, record));
|
|
43
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleChangeSingleWorkOrderMark) === "function" && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleChangeSingleWorkOrderMark(key, record, _this.id)); // TODO: 针对流程模板中有多个组件同时出现的时候,需要通过组件id找到对应的节点信息
|
|
44
44
|
};
|
|
45
|
+
|
|
45
46
|
return /*#__PURE__*/React.createElement(SelectMark, {
|
|
46
47
|
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
|
|
47
48
|
onChange: changeMarkHandle
|
|
@@ -134,7 +135,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
});
|
|
137
|
-
this.name = "标记";
|
|
138
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "标记";
|
|
138
139
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "markFlag";
|
|
139
140
|
this.sortField = "markFlag";
|
|
140
141
|
this.formField = "markFlag";
|
|
@@ -12,6 +12,7 @@ import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
13
|
import get from 'lodash/get';
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
|
+
// 节点状态
|
|
15
16
|
var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
16
17
|
var _this = this,
|
|
17
18
|
_Object$keys2;
|
|
@@ -123,7 +123,7 @@ var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
});
|
|
126
|
-
this.name = "标签";
|
|
126
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "标签";
|
|
127
127
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "flowTags";
|
|
128
128
|
this.sortField = "flowTags";
|
|
129
129
|
this.formField = "flowTags";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare class FlowWorkOrderStatus 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
|
+
workOrderStatus: any;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
options: ComponentInterface['options'];
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
22
|
+
renderExport: (value: any, record: Record) => any;
|
|
23
|
+
renderClient: () => null;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "in";
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "MultipleSelect";
|
|
31
|
+
props: {
|
|
32
|
+
options: {
|
|
33
|
+
label: any;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export default FlowWorkOrderStatus;
|
|
@@ -0,0 +1,143 @@
|
|
|
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 _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
|
+
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); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
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); }
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
|
|
11
|
+
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import GetFormItem from "../GetFormItem";
|
|
13
|
+
import get from 'lodash/get';
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
15
|
+
// 节点状态
|
|
16
|
+
var FlowWorkOrderStatus = /*#__PURE__*/_createClass(function FlowWorkOrderStatus(options) {
|
|
17
|
+
var _this = this,
|
|
18
|
+
_Object$keys2;
|
|
19
|
+
_classCallCheck(this, FlowWorkOrderStatus);
|
|
20
|
+
_defineProperty(this, "name", void 0);
|
|
21
|
+
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
23
|
+
_defineProperty(this, "type", void 0);
|
|
24
|
+
_defineProperty(this, "rules", void 0);
|
|
25
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
+
_defineProperty(this, "effects", void 0);
|
|
27
|
+
_defineProperty(this, "workOrderStatus", void 0);
|
|
28
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
31
|
+
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "options", void 0);
|
|
34
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
35
|
+
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
36
|
+
return status ? /*#__PURE__*/React.createElement("span", {
|
|
37
|
+
style: {
|
|
38
|
+
color: status.color
|
|
39
|
+
}
|
|
40
|
+
}, status === null || status === void 0 ? void 0 : status.label) : /*#__PURE__*/React.createElement("span", null, "--");
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
43
|
+
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
44
|
+
if (!status) return null;
|
|
45
|
+
return _this.renderPc(undefined, r);
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
48
|
+
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
49
|
+
return status;
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
|
+
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
53
|
+
return status ? status === null || status === void 0 ? void 0 : status.label : '--';
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "renderClient", function () {
|
|
56
|
+
return null;
|
|
57
|
+
});
|
|
58
|
+
_defineProperty(this, "editRender", function (p) {
|
|
59
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
60
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
61
|
+
title: _this.name,
|
|
62
|
+
name: _this.id,
|
|
63
|
+
rules: _this.rules,
|
|
64
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
|
+
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,
|
|
66
|
+
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
67
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
68
|
+
showSearch: true
|
|
69
|
+
}))
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
73
|
+
var _Object$keys;
|
|
74
|
+
return {
|
|
75
|
+
searchDefaultConditions: SYMBOL.in,
|
|
76
|
+
type: item.type,
|
|
77
|
+
id: item.id,
|
|
78
|
+
// 过滤组件id
|
|
79
|
+
name: item.name,
|
|
80
|
+
// 过滤组件名称
|
|
81
|
+
filterComponentType: 'MultipleSelect',
|
|
82
|
+
props: {
|
|
83
|
+
options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (item) {
|
|
84
|
+
return {
|
|
85
|
+
label: _this.workOrderStatus[item].label,
|
|
86
|
+
value: item
|
|
87
|
+
};
|
|
88
|
+
})
|
|
89
|
+
},
|
|
90
|
+
filterFn: function filterFn(value) {
|
|
91
|
+
return function (i) {
|
|
92
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
this.name = options.name;
|
|
98
|
+
this.id = options.id;
|
|
99
|
+
this.sortField = options.id;
|
|
100
|
+
this.formField = options.id;
|
|
101
|
+
this.type = options.type;
|
|
102
|
+
this.componentConfig = options.componentConfig;
|
|
103
|
+
this.effects = options.effects;
|
|
104
|
+
this.rules = [];
|
|
105
|
+
this.isCombinationComponent = false;
|
|
106
|
+
this.canSort = true;
|
|
107
|
+
this.children = [];
|
|
108
|
+
this.workOrderStatus = {
|
|
109
|
+
"WAITING": {
|
|
110
|
+
label: '待处理',
|
|
111
|
+
color: '#faad14',
|
|
112
|
+
bgColor: '#faad14'
|
|
113
|
+
},
|
|
114
|
+
"PROCESSING": {
|
|
115
|
+
label: '处理中',
|
|
116
|
+
color: '#1890ff',
|
|
117
|
+
bgColor: '#1890ff'
|
|
118
|
+
},
|
|
119
|
+
"STOPPING": {
|
|
120
|
+
label: '暂停中',
|
|
121
|
+
color: '#ff4d4f',
|
|
122
|
+
bgColor: '#ff4d4f'
|
|
123
|
+
},
|
|
124
|
+
"COMPLETED": {
|
|
125
|
+
label: '已完成',
|
|
126
|
+
color: '#73d13d',
|
|
127
|
+
bgColor: '#73d13d'
|
|
128
|
+
},
|
|
129
|
+
"CLOSED": {
|
|
130
|
+
label: '已关闭',
|
|
131
|
+
color: 'rgba(0, 0, 0, 0.65)',
|
|
132
|
+
bgColor: 'rgba(0, 0, 0, 0.04);'
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
this.dataType = 'string';
|
|
136
|
+
this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
|
|
137
|
+
return {
|
|
138
|
+
label: _this.workOrderStatus[item].label,
|
|
139
|
+
value: item
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
export default FlowWorkOrderStatus;
|
|
@@ -74,7 +74,7 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
|
-
this.name = "处理人";
|
|
77
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "处理人";
|
|
78
78
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "handlerList";
|
|
79
79
|
this.sortField = "handlerList";
|
|
80
80
|
this.formField = "handlerList";
|
|
@@ -26,7 +26,6 @@ var HandlerDeadLine = /*#__PURE__*/_createClass(function HandlerDeadLine(options
|
|
|
26
26
|
_defineProperty(this, "options", void 0);
|
|
27
27
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
28
|
var _record, _record2;
|
|
29
|
-
if (!(record !== null && record !== void 0 && record.hasHandlerDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
|
|
30
29
|
return /*#__PURE__*/React.createElement("span", {
|
|
31
30
|
className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
|
|
32
31
|
}, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
|
|
@@ -26,7 +26,6 @@ var NodeDeadLine = /*#__PURE__*/_createClass(function NodeDeadLine(options) {
|
|
|
26
26
|
_defineProperty(this, "options", void 0);
|
|
27
27
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
28
|
var _record, _record2;
|
|
29
|
-
if (!(record !== null && record !== void 0 && record.hasNodeDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
|
|
30
29
|
return /*#__PURE__*/React.createElement("span", {
|
|
31
30
|
className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
|
|
32
31
|
}, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentInterface, Record, PickOption } from '../../type';
|
|
3
|
+
declare class NodeInput implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
isCombinationComponent: boolean;
|
|
10
|
+
formField: string;
|
|
11
|
+
canSort: boolean;
|
|
12
|
+
children: ComponentInterface[];
|
|
13
|
+
dataType: ComponentInterface['dataType'];
|
|
14
|
+
options: ComponentInterface['options'];
|
|
15
|
+
constructor(options: PickOption);
|
|
16
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
|
+
renderExport: (value: any, record: Record) => any;
|
|
18
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
20
|
+
renderClient: () => null;
|
|
21
|
+
editRender: () => null;
|
|
22
|
+
filterConfig: () => never[];
|
|
23
|
+
}
|
|
24
|
+
export default NodeInput;
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import React from 'react';
|
|
9
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
var NodeInput = /*#__PURE__*/_createClass(function NodeInput(options) {
|
|
11
|
+
var _this = this;
|
|
12
|
+
_classCallCheck(this, NodeInput);
|
|
13
|
+
_defineProperty(this, "name", void 0);
|
|
14
|
+
_defineProperty(this, "id", void 0);
|
|
15
|
+
_defineProperty(this, "sortField", void 0);
|
|
16
|
+
_defineProperty(this, "type", void 0);
|
|
17
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
18
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
19
|
+
_defineProperty(this, "formField", void 0);
|
|
20
|
+
_defineProperty(this, "canSort", void 0);
|
|
21
|
+
_defineProperty(this, "children", void 0);
|
|
22
|
+
_defineProperty(this, "dataType", void 0);
|
|
23
|
+
_defineProperty(this, "options", void 0);
|
|
24
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
25
|
+
var _record;
|
|
26
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
27
|
+
});
|
|
28
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
29
|
+
var _record2;
|
|
30
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
31
|
+
});
|
|
32
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
33
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
34
|
+
return _this.renderPc(undefined, r);
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
37
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderClient", function () {
|
|
40
|
+
return null;
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "editRender", function () {
|
|
43
|
+
return null;
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "filterConfig", function () {
|
|
46
|
+
return [];
|
|
47
|
+
});
|
|
48
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "当前步骤";
|
|
49
|
+
this.id = (options === null || options === void 0 ? void 0 : options.id) || "nodeId";
|
|
50
|
+
this.type = "NODE_INPUT";
|
|
51
|
+
this.sortField = 'nodeId';
|
|
52
|
+
this.formField = 'nodeId';
|
|
53
|
+
this.isCombinationComponent = false;
|
|
54
|
+
this.canSort = false;
|
|
55
|
+
this.children = [];
|
|
56
|
+
this.dataType = 'string';
|
|
57
|
+
});
|
|
58
|
+
export default NodeInput;
|
|
@@ -64,7 +64,7 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm(options) {
|
|
|
64
64
|
options: platData
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
|
-
this.name = "平台";
|
|
67
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "平台";
|
|
68
68
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "platform";
|
|
69
69
|
this.type = "PLATFORM_INPUT";
|
|
70
70
|
this.sortField = 'platform';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BasicSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
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;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getKeyByComponentType: (type: string) => any;
|
|
18
18
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -6,15 +6,26 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import { ApaasSelect } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull, filterFn as _filterFn } from
|
|
13
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var typeMap = {
|
|
16
|
-
BUYER_MESSAGE_NOTICE:
|
|
17
|
-
|
|
16
|
+
BUYER_MESSAGE_NOTICE: {
|
|
17
|
+
key: "buyerMessageNotice",
|
|
18
|
+
disabled: false
|
|
19
|
+
},
|
|
20
|
+
SELECT: {
|
|
21
|
+
key: "select",
|
|
22
|
+
disabled: false
|
|
23
|
+
},
|
|
24
|
+
NEW_PAYMENT_STATUS: {
|
|
25
|
+
key: "newPaymentStatus",
|
|
26
|
+
disabled: true,
|
|
27
|
+
placeholder: "自动获取无需填写"
|
|
28
|
+
}
|
|
18
29
|
};
|
|
19
30
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
20
31
|
var _this = this,
|
|
@@ -33,7 +44,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
33
44
|
_defineProperty(this, "dataType", void 0);
|
|
34
45
|
_defineProperty(this, "options", void 0);
|
|
35
46
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
36
|
-
return typeMap[type] ||
|
|
47
|
+
return typeMap[type].key || "";
|
|
37
48
|
});
|
|
38
49
|
_defineProperty(this, "editRender", function (p) {
|
|
39
50
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -44,8 +55,10 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
44
55
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
45
56
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
46
57
|
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,
|
|
47
|
-
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({
|
|
48
|
-
|
|
58
|
+
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({
|
|
59
|
+
disabled: typeMap[_this.type].disabled
|
|
60
|
+
}, _this.componentConfig, {
|
|
61
|
+
placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
49
62
|
showSearch: true,
|
|
50
63
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
51
64
|
}))
|
|
@@ -55,27 +68,27 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
55
68
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
56
69
|
id: _this.id,
|
|
57
70
|
label: _this.name,
|
|
58
|
-
value: (record === null || record === void 0 ? void 0 : record[_this.id]) ||
|
|
71
|
+
value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ""
|
|
59
72
|
}) : null;
|
|
60
73
|
});
|
|
61
74
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
62
75
|
var _record;
|
|
63
76
|
var type = _this.type;
|
|
64
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record !== void 0 ? _record :
|
|
77
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record !== void 0 ? _record : "--");
|
|
65
78
|
});
|
|
66
79
|
_defineProperty(this, "renderLog", function (r) {
|
|
67
80
|
var type = _this.type;
|
|
68
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])])) return null;
|
|
81
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)])) return null;
|
|
69
82
|
return _this.renderPc(undefined, r);
|
|
70
83
|
});
|
|
71
84
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
72
85
|
var type = _this.type;
|
|
73
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])];
|
|
86
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
74
87
|
});
|
|
75
88
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
89
|
var _record2;
|
|
77
90
|
var type = _this.type;
|
|
78
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 :
|
|
91
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
79
92
|
});
|
|
80
93
|
_defineProperty(this, "filterConfig", function (item) {
|
|
81
94
|
var _item$config;
|
|
@@ -87,7 +100,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
87
100
|
// 过滤组件id
|
|
88
101
|
name: item.name,
|
|
89
102
|
// 过滤组件名称
|
|
90
|
-
filterComponentType:
|
|
103
|
+
filterComponentType: "MultipleSelect",
|
|
91
104
|
props: {
|
|
92
105
|
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
93
106
|
},
|
|
@@ -108,7 +121,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
108
121
|
this.isCombinationComponent = false;
|
|
109
122
|
this.canSort = true;
|
|
110
123
|
this.children = [];
|
|
111
|
-
this.dataType =
|
|
124
|
+
this.dataType = "string";
|
|
112
125
|
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
113
126
|
});
|
|
114
127
|
export default BasicSelect;
|
|
@@ -86,7 +86,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
});
|
|
89
|
-
this.name = "店铺名称";
|
|
89
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "店铺名称";
|
|
90
90
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "shopName";
|
|
91
91
|
this.type = "SHOP_INPUT";
|
|
92
92
|
this.sortField = "shopName";
|
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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods, CommonInput, PaymentVoucherCode } 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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BuyerNick | CommonInput | LogisticsMoreInterception | LogisticsMoreTrajectory | LogisticsTrajectory | BasicMultSelect | PaymentVoucherCode | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BuyerNick | CommonInput | CompletedUser | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderStatus | Handler | HandlerDeadLine | LogisticsMoreInterception | LogisticsMoreTrajectory | LogisticsTrajectory | BasicMultSelect | NodeDeadLine | NodeInput | PaymentVoucherCode | PlatForm | BasicSelect | ShopInput | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | 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 | TemplateSelect | WorkOrderId | LogisticsInterception | Submitter | PrevSubmitter | FlowCreator | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeStayDuration | WlnGoods | BsPosting | MsgStatus | WdtGoods;
|
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, 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, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -30,6 +30,7 @@ export var factory = function factory(type, options) {
|
|
|
30
30
|
return new BasicDataTime(options);
|
|
31
31
|
case "SELECT":
|
|
32
32
|
case "BUYER_MESSAGE_NOTICE":
|
|
33
|
+
case "NEW_PAYMENT_STATUS":
|
|
33
34
|
return new BasicSelect(options);
|
|
34
35
|
case "PICTURE":
|
|
35
36
|
return new BasicPicture(options);
|
|
@@ -190,11 +191,21 @@ export var factory = function factory(type, options) {
|
|
|
190
191
|
case "WDT_GOODS":
|
|
191
192
|
// 万里牛商品
|
|
192
193
|
return new WdtGoods(options);
|
|
193
|
-
case "NEW_PAYMENT_STATUS":
|
|
194
194
|
case "BUSINESS_ORDER_NO":
|
|
195
195
|
return new CommonInput(options);
|
|
196
196
|
case "PAYMENT_VOUCHER_CODE":
|
|
197
197
|
return new PaymentVoucherCode(options);
|
|
198
|
+
case "NODE_INPUT":
|
|
199
|
+
return new NodeInput(options);
|
|
200
|
+
case "FLOW_WORK_STATUS_SELECT":
|
|
201
|
+
return new FlowWorkOrderStatus(options);
|
|
202
|
+
case "FLOW_CREATED_DATETIME":
|
|
203
|
+
return new CommonDataTime(options);
|
|
204
|
+
case "FLOW_UPDATE_DATETIME":
|
|
205
|
+
return new CommonDataTime(options);
|
|
206
|
+
case 'WDT_GOODS':
|
|
207
|
+
// 万里牛商品
|
|
208
|
+
return new WdtGoods(options);
|
|
198
209
|
default:
|
|
199
210
|
return new BasicInput(options);
|
|
200
211
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -70,7 +70,9 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
70
70
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
71
71
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
|
-
export { default as
|
|
73
|
+
export { default as NodeInput } from './components/NodeInput';
|
|
74
|
+
export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
|
|
75
|
+
export { default as MsgStatus } from './components/MsgStatus';
|
|
74
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
75
77
|
export { default as CommonInput } from "./components/CommonInput";
|
|
76
78
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
package/dist/esm/index.js
CHANGED
|
@@ -70,6 +70,8 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
70
70
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
71
71
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
|
+
export { default as NodeInput } from "./components/NodeInput";
|
|
74
|
+
export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
|
|
73
75
|
export { default as MsgStatus } from "./components/MsgStatus";
|
|
74
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
75
77
|
export { default as CommonInput } from "./components/CommonInput";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -170,7 +170,7 @@ export interface ComponentInterface {
|
|
|
170
170
|
effects?: {
|
|
171
171
|
queryWorkOrderDetail?: (r: Record) => void;
|
|
172
172
|
handleOpenRepeatList?: (r: Record) => void;
|
|
173
|
-
handleChangeSingleWorkOrderMark?: (t: string, r: Record) => void;
|
|
173
|
+
handleChangeSingleWorkOrderMark?: (t: string, r: Record, id?: string) => void;
|
|
174
174
|
templateList?: any[];
|
|
175
175
|
isEditing?: boolean;
|
|
176
176
|
form?: FormInstance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.26.2-rc.
|
|
3
|
+
"version": "0.26.2-rc.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.26.2-rc.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.26.2-rc.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.26.2-rc.4",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.26.2-rc.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": "c93713ab8fc8c868fc59dc463a0d6c4b48541837",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|