@kmkf-fe-packages/services-components 0.24.0-alpha.7 → 0.24.0-beta.0

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/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
- ---
5
+ ---
@@ -133,7 +133,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
133
133
  }
134
134
  };
135
135
  });
136
- this.name = "标记";
136
+ this.name = (options === null || options === void 0 ? void 0 : options.name) || "标记";
137
137
  this.id = (options === null || options === void 0 ? void 0 : options.id) || "markFlag";
138
138
  this.sortField = "markFlag";
139
139
  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;
@@ -122,7 +122,7 @@ var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
122
122
  }
123
123
  };
124
124
  });
125
- this.name = "标签";
125
+ this.name = (options === null || options === void 0 ? void 0 : options.name) || "标签";
126
126
  this.id = (options === null || options === void 0 ? void 0 : options.id) || "flowTags";
127
127
  this.sortField = "flowTags";
128
128
  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;
@@ -67,8 +67,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
67
67
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
68
68
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
69
69
  onChange: function onChange(e) {
70
- var _this$componentConfig3, _e$target;
71
- return p === null || p === void 0 ? void 0 : p.onChange((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
70
+ return p === null || p === void 0 ? void 0 : p.onChange(e.target.value);
72
71
  }
73
72
  }))
74
73
  });
@@ -106,7 +105,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
106
105
  this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
107
106
  this.rules = [{
108
107
  validator: function validator(_, value) {
109
- var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7, _this$componentConfig8;
108
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
110
109
  if (!value) {
111
110
  return Promise.resolve();
112
111
  }
@@ -114,20 +113,20 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
114
113
  var mail = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$/;
115
114
  var phone = /^1\d{10}$/;
116
115
  var testList = [];
117
- ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.isNumber) && testList.push(number);
118
- ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.isMail) && testList.push(mail);
119
- ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.isPhone) && testList.push(phone);
116
+ ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.isNumber) && testList.push(number);
117
+ ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.isMail) && testList.push(mail);
118
+ ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.isPhone) && testList.push(phone);
120
119
  var isTest = testList.some(function (item) {
121
120
  return item.test(value);
122
121
  });
123
122
  if (testList.length && !isTest) {
124
123
  return Promise.reject(new Error("请填写正确的格式"));
125
124
  }
126
- if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && (_this$componentConfig8 = _this$componentConfig7.rulesOptions) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.length) {
127
- var _this$componentConfig9;
128
- var rulesList = (_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.rulesOptions.filter(function (item) {
129
- var _this$componentConfig10;
130
- return (((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.selectRules) || []).includes(item.id);
125
+ if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && (_this$componentConfig7 = _this$componentConfig6.rulesOptions) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.length) {
126
+ var _this$componentConfig8;
127
+ var rulesList = (_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.rulesOptions.filter(function (item) {
128
+ var _this$componentConfig9;
129
+ return (((_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.selectRules) || []).includes(item.id);
131
130
  });
132
131
  if (!rulesList.length) {
133
132
  return Promise.resolve();
@@ -150,7 +149,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
150
149
  validateTrigger: "onBlur",
151
150
  validator: function () {
152
151
  var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
153
- var _this$componentConfig11;
152
+ var _this$componentConfig10;
154
153
  var _resultList$, params, _yield$replaceCheck, resultList;
155
154
  return _regeneratorRuntime().wrap(function _callee$(_context) {
156
155
  while (1) switch (_context.prev = _context.next) {
@@ -161,7 +160,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
161
160
  }
162
161
  return _context.abrupt("return", Promise.resolve());
163
162
  case 2:
164
- if (!((_this$componentConfig11 = _this.componentConfig) !== null && _this$componentConfig11 !== void 0 && _this$componentConfig11.replaceWarn)) {
163
+ if (!((_this$componentConfig10 = _this.componentConfig) !== null && _this$componentConfig10 !== void 0 && _this$componentConfig10.replaceWarn)) {
165
164
  _context.next = 10;
166
165
  break;
167
166
  }
@@ -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 = "当前步骤";
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;
@@ -169,7 +169,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
169
169
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
170
170
  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,
171
171
  component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
172
- type: _this.type === "BS_POSTING" ? "bs" : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField
172
+ type: _this.type === "POSTING" || ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) === "workOrder" ? "workOrder" : "bs"
173
173
  }))
174
174
  });
175
175
  });
@@ -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, LogisticsMoreTrajectory, 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, NodeInput, FlowWorkOrderStatus } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowCreator | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderId | BasicGrade | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsMoreTrajectory | LogisticsTrajectory | MsgStatus | BasicMultSelect | NodeDeadLine | NodeStayDuration | Ordinary | Payment | BasicPicture | PlatForm | BasicPosting | PrevSubmitter | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | StatusSelect | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WlnGoods | WorkOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonDataTime | CommonMultiStatus | CommonSystemOrder | FlowCreator | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderStatus | BasicInput | JstLogistics | Logistics | LogisticsMoreTrajectory | NodeInput | Payment | BasicPosting | TradeId | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | BsReturn | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
@@ -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, 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, NodeInput, FlowWorkOrderStatus } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -181,6 +181,14 @@ export var factory = function factory(type, options) {
181
181
  case "WLN_GOODS":
182
182
  // 万里牛商品
183
183
  return new WlnGoods(options);
184
+ case "NODE_INPUT":
185
+ return new NodeInput(options);
186
+ case "FLOW_WORK_STATUS_SELECT":
187
+ return new FlowWorkOrderStatus(options);
188
+ case "FLOW_CREATED_DATETIME":
189
+ return new CommonDataTime(options);
190
+ case "FLOW_UPDATE_DATETIME":
191
+ return new CommonDataTime(options);
184
192
  default:
185
193
  return new BasicInput(options);
186
194
  }
@@ -69,7 +69,9 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
69
69
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
70
70
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
71
71
  export { default as BsPosting } from "./components/BS/BsPosting";
72
- export { default as MsgStatus } from "./components/MsgStatus";
72
+ export { default as MsgStatus } from './components/MsgStatus';
73
+ export { default as NodeInput } from './components/NodeInput';
74
+ export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
73
75
  export { factory } from "./factory";
74
76
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
75
77
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/dist/esm/index.js CHANGED
@@ -70,6 +70,8 @@ export { default as NodeStayDuration } from "./components/NodeStayDuration";
70
70
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
71
71
  export { default as BsPosting } from "./components/BS/BsPosting";
72
72
  export { default as MsgStatus } from "./components/MsgStatus";
73
+ export { default as NodeInput } from "./components/NodeInput";
74
+ export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
73
75
  export { factory } from "./factory";
74
76
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
75
77
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.24.0-alpha.7",
3
+ "version": "0.24.0-beta.0",
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.24.0-alpha.7",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.24.0-alpha.7"
23
+ "@kmkf-fe-packages/basic-components": "^0.24.0-beta.0",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.24.0-beta.0"
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": "32acab4a0f1268352868b5460b166e310d0a3fe1",
40
+ "gitHead": "655c1bdd4242ded0a5260bf5ec18666262c340e1",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }