@kmkf-fe-packages/services-components 0.8.17-alpha.3 → 0.8.17-alpha.31
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 +3 -3
- package/dist/esm/components/BS/DeliveryNo/index.d.ts +32 -0
- package/dist/esm/components/BS/DeliveryNo/index.js +137 -0
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderGood.js +43 -36
- package/dist/esm/components/Calculation/index.d.ts +31 -0
- package/dist/esm/components/Calculation/index.js +103 -0
- package/dist/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +73 -29
- package/dist/esm/components/CommonMultiStatus/index.d.ts +32 -0
- package/dist/esm/components/CommonMultiStatus/index.js +161 -0
- package/dist/esm/components/CommonSystemOrder/index.d.ts +32 -0
- package/dist/esm/components/CommonSystemOrder/index.js +151 -0
- package/dist/esm/components/CommonTradeId/index.js +1 -4
- package/dist/esm/components/GetFormItem/index.d.ts +4 -2
- package/dist/esm/components/GetFormItem/index.js +10 -3
- package/dist/esm/components/HandlerDeadLine/index.d.ts +43 -0
- package/dist/esm/components/HandlerDeadLine/index.js +85 -0
- package/dist/esm/components/HandlerDeadLine/index.less +3 -0
- package/dist/esm/components/NodeDeadLine/index.d.ts +43 -0
- package/dist/esm/components/NodeDeadLine/index.js +85 -0
- package/dist/esm/components/NodeDeadLine/index.less +3 -0
- package/dist/esm/components/NodeStayDuration/index.d.ts +26 -0
- package/dist/esm/components/NodeStayDuration/index.js +61 -0
- package/dist/esm/components/NodeStayDuration/index.less +3 -0
- package/dist/esm/components/ShopInput/index.d.ts +1 -0
- package/dist/esm/components/ShopInput/index.js +2 -0
- package/dist/esm/components/StatusSelect/index.js +3 -17
- package/dist/esm/components/TextArea/index.d.ts +3 -3
- package/dist/esm/components/TextArea/index.js +9 -9
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +15 -4
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/type.d.ts +2 -1
- package/package.json +4 -4
|
@@ -0,0 +1,85 @@
|
|
|
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 { SYMBOL } from "../../constant";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
var HandlerDeadLine = /*#__PURE__*/_createClass(function HandlerDeadLine(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, HandlerDeadLine);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "effects", void 0);
|
|
21
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "formField", void 0);
|
|
23
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
25
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
|
+
_defineProperty(this, "options", void 0);
|
|
27
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
|
+
var _record, _record2;
|
|
29
|
+
if (!(record !== null && record !== void 0 && record.hasHandlerDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
|
|
30
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
31
|
+
className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
|
|
32
|
+
}, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderLog", function () {
|
|
35
|
+
return null;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
38
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
41
|
+
var _record3;
|
|
42
|
+
return (_record3 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record3 !== void 0 ? _record3 : '--';
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderClient", function () {
|
|
45
|
+
return null;
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "editRender", function () {
|
|
48
|
+
return null;
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
51
|
+
return {
|
|
52
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
53
|
+
type: item.type,
|
|
54
|
+
id: item.id,
|
|
55
|
+
// 过滤组件id
|
|
56
|
+
name: item.name,
|
|
57
|
+
// 过滤组件名称
|
|
58
|
+
filterComponentType: 'MultipleSelect',
|
|
59
|
+
props: {
|
|
60
|
+
mode: "",
|
|
61
|
+
options: _this.options
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
this.name = options.name;
|
|
66
|
+
this.id = options.id;
|
|
67
|
+
this.sortField = options.id;
|
|
68
|
+
this.formField = options.id;
|
|
69
|
+
this.type = options.type;
|
|
70
|
+
this.componentConfig = options.componentConfig;
|
|
71
|
+
this.effects = options.effects;
|
|
72
|
+
this.dataType = 'string';
|
|
73
|
+
this.rules = [];
|
|
74
|
+
this.isCombinationComponent = false;
|
|
75
|
+
this.canSort = false;
|
|
76
|
+
this.children = [];
|
|
77
|
+
this.options = [{
|
|
78
|
+
label: '已超时',
|
|
79
|
+
value: 'TIME_OUT'
|
|
80
|
+
}, {
|
|
81
|
+
label: '未超时',
|
|
82
|
+
value: 'NOT_TIME_OUT'
|
|
83
|
+
}];
|
|
84
|
+
});
|
|
85
|
+
export default HandlerDeadLine;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare class NodeDeadLine implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
options: Array<{
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}>;
|
|
21
|
+
constructor(options: PickOption);
|
|
22
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
23
|
+
renderLog: () => null;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
25
|
+
renderExport: (value: any, record: any) => any;
|
|
26
|
+
renderClient: () => null;
|
|
27
|
+
editRender: () => null;
|
|
28
|
+
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
searchDefaultConditions: "eq";
|
|
30
|
+
type: string;
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
filterComponentType: "MultipleSelect";
|
|
34
|
+
props: {
|
|
35
|
+
mode: string;
|
|
36
|
+
options: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export default NodeDeadLine;
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { SYMBOL } from "../../constant";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
var NodeDeadLine = /*#__PURE__*/_createClass(function NodeDeadLine(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, NodeDeadLine);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "effects", void 0);
|
|
21
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "formField", void 0);
|
|
23
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
25
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
|
+
_defineProperty(this, "options", void 0);
|
|
27
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
|
+
var _record, _record2;
|
|
29
|
+
if (!(record !== null && record !== void 0 && record.hasNodeDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
|
|
30
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
31
|
+
className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
|
|
32
|
+
}, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderLog", function () {
|
|
35
|
+
return null;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
38
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
41
|
+
var _record3;
|
|
42
|
+
return (_record3 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record3 !== void 0 ? _record3 : '--';
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderClient", function () {
|
|
45
|
+
return null;
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "editRender", function () {
|
|
48
|
+
return null;
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
51
|
+
return {
|
|
52
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
53
|
+
type: item.type,
|
|
54
|
+
id: item.id,
|
|
55
|
+
// 过滤组件id
|
|
56
|
+
name: item.name,
|
|
57
|
+
// 过滤组件名称
|
|
58
|
+
filterComponentType: 'MultipleSelect',
|
|
59
|
+
props: {
|
|
60
|
+
mode: "",
|
|
61
|
+
options: _this.options
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
this.name = options.name;
|
|
66
|
+
this.id = options.id;
|
|
67
|
+
this.sortField = options.id;
|
|
68
|
+
this.formField = options.id;
|
|
69
|
+
this.type = options.type;
|
|
70
|
+
this.componentConfig = options.componentConfig;
|
|
71
|
+
this.effects = options.effects;
|
|
72
|
+
this.dataType = 'string';
|
|
73
|
+
this.rules = [];
|
|
74
|
+
this.isCombinationComponent = false;
|
|
75
|
+
this.canSort = false;
|
|
76
|
+
this.children = [];
|
|
77
|
+
this.options = [{
|
|
78
|
+
label: '已超时',
|
|
79
|
+
value: 'TIME_OUT'
|
|
80
|
+
}, {
|
|
81
|
+
label: '未超时',
|
|
82
|
+
value: 'NOT_TIME_OUT'
|
|
83
|
+
}];
|
|
84
|
+
});
|
|
85
|
+
export default NodeDeadLine;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare class NodeStayDuration implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
constructor(options: PickOption);
|
|
18
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
|
+
renderLog: () => null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: (value: any, record: any) => any;
|
|
22
|
+
renderClient: () => null;
|
|
23
|
+
editRender: () => null;
|
|
24
|
+
filterConfig: () => never[];
|
|
25
|
+
}
|
|
26
|
+
export default NodeStayDuration;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 "./index.less";
|
|
10
|
+
var NodeStayDuration = /*#__PURE__*/_createClass(function NodeStayDuration(options) {
|
|
11
|
+
var _this = this;
|
|
12
|
+
_classCallCheck(this, NodeStayDuration);
|
|
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, "rules", void 0);
|
|
18
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
19
|
+
_defineProperty(this, "effects", void 0);
|
|
20
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
21
|
+
_defineProperty(this, "formField", void 0);
|
|
22
|
+
_defineProperty(this, "canSort", void 0);
|
|
23
|
+
_defineProperty(this, "children", void 0);
|
|
24
|
+
_defineProperty(this, "dataType", void 0);
|
|
25
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
26
|
+
var _record;
|
|
27
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
28
|
+
});
|
|
29
|
+
_defineProperty(this, "renderLog", function () {
|
|
30
|
+
return null;
|
|
31
|
+
});
|
|
32
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
33
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
34
|
+
});
|
|
35
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
36
|
+
var _record2;
|
|
37
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
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.name;
|
|
49
|
+
this.id = options.id;
|
|
50
|
+
this.sortField = options.id;
|
|
51
|
+
this.formField = options.id;
|
|
52
|
+
this.type = options.type;
|
|
53
|
+
this.componentConfig = options.componentConfig;
|
|
54
|
+
this.effects = options.effects;
|
|
55
|
+
this.dataType = 'string';
|
|
56
|
+
this.rules = [];
|
|
57
|
+
this.isCombinationComponent = false;
|
|
58
|
+
this.canSort = false;
|
|
59
|
+
this.children = [];
|
|
60
|
+
});
|
|
61
|
+
export default NodeStayDuration;
|
|
@@ -13,6 +13,7 @@ declare class ShopInput implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
dataType: ComponentInterface['dataType'];
|
|
15
15
|
options: ComponentInterface['options'];
|
|
16
|
+
format: ComponentInterface['format'];
|
|
16
17
|
constructor(options: PickOption);
|
|
17
18
|
renderPc: (shopName: unknown, record: any) => React.JSX.Element;
|
|
18
19
|
renderLog: (record: Record) => any;
|
|
@@ -25,6 +25,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
25
25
|
_defineProperty(this, "children", void 0);
|
|
26
26
|
_defineProperty(this, "dataType", void 0);
|
|
27
27
|
_defineProperty(this, "options", void 0);
|
|
28
|
+
_defineProperty(this, "format", void 0);
|
|
28
29
|
_defineProperty(this, "renderPc", function (shopName, record) {
|
|
29
30
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
30
31
|
type: record === null || record === void 0 ? void 0 : record.platform,
|
|
@@ -96,5 +97,6 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
96
97
|
this.children = [];
|
|
97
98
|
this.dataType = 'string';
|
|
98
99
|
this.options = this === null || this === void 0 ? void 0 : (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList;
|
|
100
|
+
this.format = 'shopInput';
|
|
99
101
|
});
|
|
100
102
|
export default ShopInput;
|
|
@@ -44,7 +44,7 @@ var selectTypeMap = {
|
|
|
44
44
|
info: "exchangeReason",
|
|
45
45
|
failValue: "失败"
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
ADJUST_WORK_ORDER_STATUS: {
|
|
48
48
|
options: [{
|
|
49
49
|
value: "成功",
|
|
50
50
|
label: "成功",
|
|
@@ -54,22 +54,8 @@ var selectTypeMap = {
|
|
|
54
54
|
label: "失败",
|
|
55
55
|
color: "#ff4d4f"
|
|
56
56
|
}],
|
|
57
|
-
key: "
|
|
58
|
-
info: "
|
|
59
|
-
failValue: "失败"
|
|
60
|
-
},
|
|
61
|
-
RETURN_GOODS_STATUS: {
|
|
62
|
-
options: [{
|
|
63
|
-
value: "成功",
|
|
64
|
-
label: "成功",
|
|
65
|
-
color: "#52c41a"
|
|
66
|
-
}, {
|
|
67
|
-
value: "失败",
|
|
68
|
-
label: "失败",
|
|
69
|
-
color: "#ff4d4f"
|
|
70
|
-
}],
|
|
71
|
-
key: "returnGoodsStatusValue",
|
|
72
|
-
info: "returnGoodsReason",
|
|
57
|
+
key: "adjustWorkOrderStatusValue",
|
|
58
|
+
info: "adjustWorkOrderReason",
|
|
73
59
|
failValue: "失败"
|
|
74
60
|
}
|
|
75
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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 BasicInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -11,7 +11,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
15
|
constructor(options: PickOption);
|
|
16
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -6,11 +6,11 @@ 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 { ApaasTextArea } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { ApaasTextArea } 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 BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
16
16
|
var _this = this;
|
|
@@ -28,7 +28,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
28
28
|
_defineProperty(this, "dataType", void 0);
|
|
29
29
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
30
30
|
var _record;
|
|
31
|
-
return /*#__PURE__*/React.createElement("
|
|
31
|
+
return /*#__PURE__*/React.createElement("pre", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record !== void 0 ? _record : "--");
|
|
32
32
|
});
|
|
33
33
|
_defineProperty(this, "renderLog", function (r) {
|
|
34
34
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_textarea")])) return null;
|
|
@@ -39,13 +39,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
39
39
|
});
|
|
40
40
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
41
41
|
var _record2;
|
|
42
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record2 !== void 0 ? _record2 :
|
|
42
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
43
43
|
});
|
|
44
44
|
_defineProperty(this, "renderClient", function (record) {
|
|
45
45
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
46
46
|
id: _this.id,
|
|
47
47
|
label: _this.name,
|
|
48
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
48
|
+
value: /*#__PURE__*/React.createElement("pre", null, record === null || record === void 0 ? void 0 : record[_this.id])
|
|
49
49
|
}) : null;
|
|
50
50
|
});
|
|
51
51
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -69,10 +69,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
69
69
|
// 过滤组件id
|
|
70
70
|
name: item.name,
|
|
71
71
|
// 过滤组件名称
|
|
72
|
-
filterComponentType:
|
|
72
|
+
filterComponentType: "Input",
|
|
73
73
|
filterFn: function filterFn(value) {
|
|
74
74
|
return function (i) {
|
|
75
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
75
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "textarea")).includes(value);
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
};
|
|
@@ -83,7 +83,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
83
83
|
this.formField = "".concat(options.id, "_textarea");
|
|
84
84
|
this.type = options.type;
|
|
85
85
|
this.componentConfig = options.componentConfig;
|
|
86
|
-
this.dataType =
|
|
86
|
+
this.dataType = "string";
|
|
87
87
|
this.rules = [];
|
|
88
88
|
this.isCombinationComponent = false;
|
|
89
89
|
this.canSort = true;
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId } 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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } 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) => Calculation | CommonMultiStatus | CommonSystemOrder | CommonTradeId | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | NodeDeadLine | HandlerDeadLine | NodeStayDuration;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId } 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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from "./index";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
@@ -125,19 +125,30 @@ export var factory = function factory(type, options) {
|
|
|
125
125
|
return new BsExchange(options);
|
|
126
126
|
case "BS_REISSUE_GOODS":
|
|
127
127
|
return new BsReissue(options);
|
|
128
|
+
case "BS_DELIVERY_NO":
|
|
129
|
+
case "RETURN_GOODS_TRADE_ID":
|
|
130
|
+
return new CommonSystemOrder(options);
|
|
128
131
|
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
129
132
|
return new FlowWorkOrderId(options);
|
|
130
133
|
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
131
134
|
return new FlowWorkOrderId(options);
|
|
132
135
|
case "REISSUE_STATUS":
|
|
133
136
|
case "EXCHANGE_STATUS":
|
|
134
|
-
case "
|
|
135
|
-
case "RETURN_GOODS_STATUS":
|
|
137
|
+
case "ADJUST_WORK_ORDER_STATUS":
|
|
136
138
|
return new StatusSelect(options);
|
|
139
|
+
case "RETURN_GOODS_STATUS":
|
|
140
|
+
return new CommonMultiStatus(options);
|
|
137
141
|
case "REISSUE_TRADE_ID":
|
|
138
142
|
case "EXCHANGE_TRADE_ID":
|
|
139
|
-
case "RETURN_GOODS_TRADE_ID":
|
|
140
143
|
return new CommonTradeId(options);
|
|
144
|
+
case "NUMERICAL_CALCULATION":
|
|
145
|
+
return new Calculation(options);
|
|
146
|
+
case "NODE_DEAD_LINE_INPUT":
|
|
147
|
+
return new NodeDeadLine(options);
|
|
148
|
+
case "HANDLER_DEAD_LINE_INPUT":
|
|
149
|
+
return new HandlerDeadLine(options);
|
|
150
|
+
case "NODE_STAY_DURATION_INPUT":
|
|
151
|
+
return new NodeStayDuration(options);
|
|
141
152
|
default:
|
|
142
153
|
return new BasicInput(options);
|
|
143
154
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -54,6 +54,12 @@ export { default as CompletedUser } from "./components/CompletedUser";
|
|
|
54
54
|
export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
|
|
55
55
|
export { default as StatusSelect } from "./components/StatusSelect";
|
|
56
56
|
export { default as CommonTradeId } from "./components/CommonTradeId";
|
|
57
|
+
export { default as Calculation } from "./components/Calculation";
|
|
58
|
+
export { default as CommonSystemOrder } from "./components/CommonSystemOrder";
|
|
59
|
+
export { default as CommonMultiStatus } from "./components/CommonMultiStatus";
|
|
60
|
+
export { default as NodeDeadLine } from "./components/NodeDeadLine";
|
|
61
|
+
export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
62
|
+
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
57
63
|
export { factory } from "./factory";
|
|
58
64
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
59
65
|
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
package/dist/esm/index.js
CHANGED
|
@@ -54,6 +54,12 @@ export { default as CompletedUser } from "./components/CompletedUser";
|
|
|
54
54
|
export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
|
|
55
55
|
export { default as StatusSelect } from "./components/StatusSelect";
|
|
56
56
|
export { default as CommonTradeId } from "./components/CommonTradeId";
|
|
57
|
+
export { default as Calculation } from "./components/Calculation";
|
|
58
|
+
export { default as CommonSystemOrder } from "./components/CommonSystemOrder";
|
|
59
|
+
export { default as CommonMultiStatus } from "./components/CommonMultiStatus";
|
|
60
|
+
export { default as NodeDeadLine } from "./components/NodeDeadLine";
|
|
61
|
+
export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
62
|
+
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
57
63
|
export { factory } from "./factory";
|
|
58
64
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
59
65
|
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface ComponentInterface {
|
|
|
39
39
|
width?: number;
|
|
40
40
|
align?: ALignType;
|
|
41
41
|
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
42
|
-
format?: "dateTime" | "date" | "time" | "cascader";
|
|
42
|
+
format?: "dateTime" | "date" | "time" | "cascader" | 'shopInput';
|
|
43
43
|
options?: Array<any>;
|
|
44
44
|
/**
|
|
45
45
|
* @description 组件下标
|
|
@@ -147,6 +147,7 @@ export interface ComponentInterface {
|
|
|
147
147
|
showHeader?: string[];
|
|
148
148
|
reasonList?: any[];
|
|
149
149
|
disabled?: boolean;
|
|
150
|
+
config?: any;
|
|
150
151
|
};
|
|
151
152
|
effects?: {
|
|
152
153
|
queryWorkOrderDetail?: (r: Record) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.8.17-alpha.
|
|
3
|
+
"version": "0.8.17-alpha.31",
|
|
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.8.17-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.8.17-alpha.31",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.29"
|
|
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": "f11e9806c4e5eb7941734a8331ba324e692e191c"
|
|
44
44
|
}
|