@kmkf-fe-packages/services-components 0.24.0-beta.0 → 0.24.1-alpha.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 +1 -1
- package/dist/esm/components/BS/common/BsHeaderChild.js +2 -1
- package/dist/esm/components/BS/common/BsHeaderGood.js +60 -2
- package/dist/esm/components/{NodeInput/index.d.ts → BS/common/BsHeaderGoodPic.d.ts} +11 -8
- package/dist/esm/components/BS/common/BsHeaderGoodPic.js +114 -0
- package/dist/esm/components/BS/common/index.d.ts +1 -0
- package/dist/esm/components/BS/common/index.js +1 -0
- package/dist/esm/components/Common/index.d.ts +12 -4
- package/dist/esm/components/Common/index.js +325 -228
- package/dist/esm/components/EItemEnCode/index.d.ts +10 -7
- package/dist/esm/components/EItemEnCode/index.js +68 -44
- package/dist/esm/components/FlowMarkSelect/index.js +1 -1
- package/dist/esm/components/FlowStatusSelect/index.js +0 -1
- package/dist/esm/components/FlowTag/index.js +1 -1
- package/dist/esm/components/Input/index.js +13 -12
- package/dist/esm/components/PostIng/index.js +1 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -9
- package/dist/esm/index.d.ts +1 -3
- package/dist/esm/index.js +0 -2
- package/dist/esm/type.d.ts +2 -1
- package/package.json +4 -4
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +0 -40
- package/dist/esm/components/FlowWorkOrderStatus/index.js +0 -143
- package/dist/esm/components/NodeInput/index.js +0 -58
|
@@ -1,5 +1,6 @@
|
|
|
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
|
+
import { BsHeaderGood } from "../BS/common/index";
|
|
3
4
|
declare class EItemEncode implements ComponentInterface {
|
|
4
5
|
name: string;
|
|
5
6
|
id: string;
|
|
@@ -12,13 +13,16 @@ declare class EItemEncode implements ComponentInterface {
|
|
|
12
13
|
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
|
-
|
|
16
|
+
goods: BsHeaderGood;
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
showHeader: string[];
|
|
19
|
+
platform?: ComponentInterface["platform"];
|
|
16
20
|
constructor(options: PickOption);
|
|
17
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
22
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element | null;
|
|
19
23
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
24
|
getComponentValue: (r: Record) => any;
|
|
21
|
-
renderExport: (
|
|
25
|
+
renderExport: () => null;
|
|
22
26
|
editRender: (p: any) => React.JSX.Element;
|
|
23
27
|
filterConfig: (item: ColumnConfig) => {
|
|
24
28
|
searchDefaultConditions: "like";
|
|
@@ -26,7 +30,6 @@ declare class EItemEncode implements ComponentInterface {
|
|
|
26
30
|
id: string;
|
|
27
31
|
name: string;
|
|
28
32
|
filterComponentType: "Input";
|
|
29
|
-
|
|
30
|
-
};
|
|
33
|
+
}[];
|
|
31
34
|
}
|
|
32
35
|
export default EItemEncode;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
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
5
|
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
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -6,16 +8,18 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
8
|
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
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
10
|
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
|
|
11
|
+
import React from "react";
|
|
10
12
|
import GetFormItem from "../GetFormItem";
|
|
11
13
|
import ItemEncode from "./ItemEncode";
|
|
12
|
-
import { GoodImage } from "../Common";
|
|
14
|
+
import { GoodImage, TBGoodTable } from "../Common";
|
|
15
|
+
import { BsHeaderGood } from "../BS/common/index";
|
|
13
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull
|
|
17
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
18
|
import { SYMBOL } from "../../constant";
|
|
16
19
|
var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
17
20
|
var _this = this,
|
|
18
|
-
_this$componentConfig
|
|
21
|
+
_this$componentConfig,
|
|
22
|
+
_this$componentConfig2;
|
|
19
23
|
_classCallCheck(this, EItemEncode);
|
|
20
24
|
_defineProperty(this, "name", void 0);
|
|
21
25
|
_defineProperty(this, "id", void 0);
|
|
@@ -28,43 +32,49 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
28
32
|
_defineProperty(this, "formField", void 0);
|
|
29
33
|
_defineProperty(this, "canSort", void 0);
|
|
30
34
|
_defineProperty(this, "children", void 0);
|
|
35
|
+
_defineProperty(this, "goods", void 0);
|
|
31
36
|
_defineProperty(this, "dataType", void 0);
|
|
37
|
+
_defineProperty(this, "showHeader", void 0);
|
|
38
|
+
_defineProperty(this, "platform", void 0);
|
|
32
39
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
|
-
|
|
40
|
+
if (isNull(record === null || record === void 0 ? void 0 : record[_this.id])) return null;
|
|
41
|
+
return /*#__PURE__*/React.createElement(ItemView, {
|
|
34
42
|
id: _this.id,
|
|
35
43
|
label: _this.name,
|
|
36
44
|
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
37
45
|
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
46
|
+
showHeader: _this.showHeader,
|
|
38
47
|
type: "itemCode"
|
|
39
48
|
})
|
|
40
|
-
})
|
|
49
|
+
});
|
|
41
50
|
});
|
|
42
51
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, /*#__PURE__*/React.createElement(GoodImage, {
|
|
52
|
-
list: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")],
|
|
53
|
-
type: "itemCode"
|
|
54
|
-
}));
|
|
52
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
53
|
+
id: _this.id,
|
|
54
|
+
label: _this.name,
|
|
55
|
+
value: /*#__PURE__*/React.createElement(TBGoodTable, {
|
|
56
|
+
list: (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || [],
|
|
57
|
+
showHeader: _this.showHeader
|
|
58
|
+
})
|
|
59
|
+
})) : null;
|
|
55
60
|
});
|
|
56
61
|
_defineProperty(this, "renderLog", function (r) {
|
|
57
62
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
58
|
-
return
|
|
63
|
+
return /*#__PURE__*/React.createElement(ItemView, {
|
|
64
|
+
id: _this.id,
|
|
65
|
+
label: _this.name,
|
|
66
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
67
|
+
list: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")],
|
|
68
|
+
showHeader: _this.showHeader,
|
|
69
|
+
type: "itemCode"
|
|
70
|
+
})
|
|
71
|
+
});
|
|
59
72
|
});
|
|
60
73
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
61
74
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
62
75
|
});
|
|
63
|
-
_defineProperty(this, "renderExport", function (
|
|
64
|
-
|
|
65
|
-
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
|
|
66
|
-
return item.outerId;
|
|
67
|
-
}).join(' ');
|
|
76
|
+
_defineProperty(this, "renderExport", function () {
|
|
77
|
+
return null;
|
|
68
78
|
});
|
|
69
79
|
_defineProperty(this, "editRender", function (p) {
|
|
70
80
|
var _this$effects, _this$effects2;
|
|
@@ -74,7 +84,9 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
74
84
|
rules: _this.rules,
|
|
75
85
|
required: false,
|
|
76
86
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
77
|
-
component: /*#__PURE__*/React.createElement(ItemEncode, _extends({
|
|
87
|
+
component: /*#__PURE__*/React.createElement(ItemEncode, _extends({
|
|
88
|
+
isSingleRow: _this.platform === 'pc'
|
|
89
|
+
}, _this.componentConfig, {
|
|
78
90
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
79
91
|
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
|
80
92
|
width: "90%"
|
|
@@ -82,50 +94,62 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
82
94
|
});
|
|
83
95
|
});
|
|
84
96
|
_defineProperty(this, "filterConfig", function (item) {
|
|
85
|
-
return {
|
|
97
|
+
return [{
|
|
86
98
|
searchDefaultConditions: SYMBOL.like,
|
|
87
99
|
type: item.type,
|
|
88
100
|
id: "".concat(item.id, "_itemList"),
|
|
89
101
|
// 过滤组件id
|
|
90
102
|
name: item.name,
|
|
91
103
|
// 过滤组件名称
|
|
92
|
-
filterComponentType:
|
|
93
|
-
|
|
94
|
-
return function (i) {
|
|
95
|
-
var _ref2;
|
|
96
|
-
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
97
|
-
var _String;
|
|
98
|
-
return item !== null && item !== void 0 && item.outerId ? (_String = String(item === null || item === void 0 ? void 0 : item.outerId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
};
|
|
104
|
+
filterComponentType: "Input"
|
|
105
|
+
}];
|
|
103
106
|
});
|
|
104
107
|
this.name = options.name;
|
|
105
108
|
this.id = options.id;
|
|
109
|
+
this.platform = options.platform;
|
|
106
110
|
this.sortField = "".concat(options.id, "_itemList");
|
|
107
111
|
this.formField = "".concat(options.id, "_itemList");
|
|
108
112
|
this.type = options.type;
|
|
109
113
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
110
114
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
111
|
-
this.
|
|
115
|
+
this.showHeader = ((_this$componentConfig = this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || ["title",
|
|
116
|
+
// 商品名称
|
|
117
|
+
"outerId",
|
|
118
|
+
// 商品编码
|
|
119
|
+
"picUrl",
|
|
120
|
+
// 图片
|
|
121
|
+
"numIid",
|
|
122
|
+
// 商品id
|
|
123
|
+
"skuId",
|
|
124
|
+
// skuId
|
|
125
|
+
"outerSkuId",
|
|
126
|
+
// sku编码
|
|
127
|
+
"propertiesName" // sku 信息
|
|
128
|
+
];
|
|
129
|
+
|
|
130
|
+
this.isCombinationComponent = true;
|
|
112
131
|
this.canSort = false;
|
|
113
|
-
this.
|
|
114
|
-
|
|
132
|
+
this.goods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
|
|
133
|
+
id: "".concat(options.id, "_itemList"),
|
|
134
|
+
name: "商品信息"
|
|
135
|
+
}));
|
|
136
|
+
this.children = [this.goods];
|
|
137
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
115
138
|
required: true,
|
|
116
139
|
validator: function validator(_, value) {
|
|
117
140
|
if (!value || !value.length) {
|
|
118
|
-
return Promise.reject(new Error(
|
|
141
|
+
return Promise.reject(new Error("请选择宝贝"));
|
|
119
142
|
}
|
|
120
|
-
|
|
143
|
+
// 如果配置了商品编码不可见,则跳过商品编码校验
|
|
144
|
+
var hasNotId = !_this.showHeader.includes("outerId") && (value || []).some(function (item) {
|
|
121
145
|
return !item.outerId;
|
|
122
146
|
});
|
|
123
147
|
if (hasNotId) {
|
|
124
|
-
return Promise.reject(new Error(
|
|
148
|
+
return Promise.reject(new Error("请输入商品编码"));
|
|
125
149
|
}
|
|
126
150
|
return Promise.resolve();
|
|
127
151
|
}
|
|
128
152
|
}] : [];
|
|
129
|
-
this.dataType =
|
|
153
|
+
this.dataType = "object";
|
|
130
154
|
});
|
|
131
155
|
export default EItemEncode;
|
|
@@ -133,7 +133,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
});
|
|
136
|
-
this.name =
|
|
136
|
+
this.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,7 +12,6 @@ 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
|
-
// 节点状态
|
|
16
15
|
var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
17
16
|
var _this = this,
|
|
18
17
|
_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 = "标签";
|
|
126
126
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "flowTags";
|
|
127
127
|
this.sortField = "flowTags";
|
|
128
128
|
this.formField = "flowTags";
|
|
@@ -67,7 +67,8 @@ 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
|
-
|
|
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);
|
|
71
72
|
}
|
|
72
73
|
}))
|
|
73
74
|
});
|
|
@@ -105,7 +106,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
105
106
|
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
106
107
|
this.rules = [{
|
|
107
108
|
validator: function validator(_, value) {
|
|
108
|
-
var _this$
|
|
109
|
+
var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7, _this$componentConfig8;
|
|
109
110
|
if (!value) {
|
|
110
111
|
return Promise.resolve();
|
|
111
112
|
}
|
|
@@ -113,20 +114,20 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
113
114
|
var mail = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$/;
|
|
114
115
|
var phone = /^1\d{10}$/;
|
|
115
116
|
var testList = [];
|
|
116
|
-
((_this$
|
|
117
|
-
((_this$
|
|
118
|
-
((_this$
|
|
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);
|
|
119
120
|
var isTest = testList.some(function (item) {
|
|
120
121
|
return item.test(value);
|
|
121
122
|
});
|
|
122
123
|
if (testList.length && !isTest) {
|
|
123
124
|
return Promise.reject(new Error("请填写正确的格式"));
|
|
124
125
|
}
|
|
125
|
-
if ((_this$
|
|
126
|
-
var _this$
|
|
127
|
-
var rulesList = (_this$
|
|
128
|
-
var _this$
|
|
129
|
-
return (((_this$
|
|
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);
|
|
130
131
|
});
|
|
131
132
|
if (!rulesList.length) {
|
|
132
133
|
return Promise.resolve();
|
|
@@ -149,7 +150,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
149
150
|
validateTrigger: "onBlur",
|
|
150
151
|
validator: function () {
|
|
151
152
|
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
152
|
-
var _this$
|
|
153
|
+
var _this$componentConfig11;
|
|
153
154
|
var _resultList$, params, _yield$replaceCheck, resultList;
|
|
154
155
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
155
156
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -160,7 +161,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
160
161
|
}
|
|
161
162
|
return _context.abrupt("return", Promise.resolve());
|
|
162
163
|
case 2:
|
|
163
|
-
if (!((_this$
|
|
164
|
+
if (!((_this$componentConfig11 = _this.componentConfig) !== null && _this$componentConfig11 !== void 0 && _this$componentConfig11.replaceWarn)) {
|
|
164
165
|
_context.next = 10;
|
|
165
166
|
break;
|
|
166
167
|
}
|
|
@@ -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 === "
|
|
172
|
+
type: _this.type === "BS_POSTING" ? "bs" : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField
|
|
173
173
|
}))
|
|
174
174
|
});
|
|
175
175
|
});
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus
|
|
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";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsLogistics |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsReissue | BsSystemOrder | CommonMultiStatus | CommonSystemOrder | ItemEnCode | BasicInput | JstLogistics | JstSendGood | Logistics | LogisticsMoreTrajectory | Payment | BasicPosting | TradeId | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | JstItemSelect | JstSupply | BsGoods | BsExchange | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -181,14 +181,6 @@ 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);
|
|
192
184
|
default:
|
|
193
185
|
return new BasicInput(options);
|
|
194
186
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -69,9 +69,7 @@ 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
|
|
73
|
-
export { default as NodeInput } from './components/NodeInput';
|
|
74
|
-
export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
|
|
72
|
+
export { default as MsgStatus } from "./components/MsgStatus";
|
|
75
73
|
export { factory } from "./factory";
|
|
76
74
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
77
75
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/index.js
CHANGED
|
@@ -70,8 +70,6 @@ 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";
|
|
75
73
|
export { factory } from "./factory";
|
|
76
74
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
77
75
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export interface ComponentInterface {
|
|
|
52
52
|
options?: Array<any>;
|
|
53
53
|
templateId?: string;
|
|
54
54
|
workOrderUniqueKey?: string;
|
|
55
|
+
platform?: PlatForm;
|
|
55
56
|
/**
|
|
56
57
|
* @description 组件下标
|
|
57
58
|
* @deprecated 已弃用字段,后续版本不在使用
|
|
@@ -233,7 +234,7 @@ export interface ComponentInterface {
|
|
|
233
234
|
getComponentValue: (r: Record) => any;
|
|
234
235
|
formDataTransform?: (r: any) => any;
|
|
235
236
|
}
|
|
236
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey">;
|
|
237
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform">;
|
|
237
238
|
export declare type ColumnConfig = {
|
|
238
239
|
id: string;
|
|
239
240
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.1-alpha.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.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.24.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.24.1-alpha.0",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.24.1-alpha.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": "
|
|
40
|
+
"gitHead": "fb6199d073f8d5c64a35e124c48796d64284bf24",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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;
|
|
@@ -1,143 +0,0 @@
|
|
|
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;
|