@kmkf-fe-packages/services-components 2.2.22 → 2.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/BS/BsSystemOrder/index.js +17 -8
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +11 -4
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +6 -7
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -0
- package/package.json +4 -4
|
@@ -16,6 +16,7 @@ import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components
|
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
18
18
|
import { SYMBOL, batchInput } from "../../../constant";
|
|
19
|
+
import { getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
20
|
var typeMap = {
|
|
20
21
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG,
|
|
21
22
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
|
|
@@ -28,9 +29,10 @@ var typeMap = {
|
|
|
28
29
|
};
|
|
29
30
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
30
31
|
var _this = this,
|
|
32
|
+
_getSystemShowHead,
|
|
31
33
|
_typeMap$options$type,
|
|
32
|
-
|
|
33
|
-
_this$
|
|
34
|
+
_options$componentCon,
|
|
35
|
+
_this$componentConfig5;
|
|
34
36
|
_classCallCheck(this, BsSystemOrder);
|
|
35
37
|
_defineProperty(this, "name", void 0);
|
|
36
38
|
_defineProperty(this, "id", void 0);
|
|
@@ -45,12 +47,14 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
45
47
|
_defineProperty(this, "dataType", void 0);
|
|
46
48
|
_defineProperty(this, "children", void 0);
|
|
47
49
|
_defineProperty(this, "renderClient", function (record) {
|
|
50
|
+
var _this$componentConfig;
|
|
48
51
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
49
52
|
id: _this.id,
|
|
50
53
|
label: _this.name,
|
|
51
54
|
value: /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
52
55
|
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
|
|
53
|
-
type: _this.type
|
|
56
|
+
type: _this.type,
|
|
57
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
54
58
|
})
|
|
55
59
|
})) : null;
|
|
56
60
|
});
|
|
@@ -58,13 +62,15 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
58
62
|
return null;
|
|
59
63
|
});
|
|
60
64
|
_defineProperty(this, "renderLog", function (r) {
|
|
65
|
+
var _this$componentConfig2;
|
|
61
66
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)])) return null;
|
|
62
67
|
return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
63
68
|
value: {
|
|
64
69
|
showOrderInfo: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)],
|
|
65
70
|
selectIds: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].selectId)]
|
|
66
71
|
},
|
|
67
|
-
type: _this.type
|
|
72
|
+
type: _this.type,
|
|
73
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
68
74
|
});
|
|
69
75
|
});
|
|
70
76
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
@@ -74,7 +80,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
74
80
|
return null;
|
|
75
81
|
});
|
|
76
82
|
_defineProperty(this, "editRender", function (p) {
|
|
77
|
-
var _this$
|
|
83
|
+
var _this$componentConfig3, _this$componentConfig4;
|
|
78
84
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
79
85
|
title: _this.name,
|
|
80
86
|
name: _this.id,
|
|
@@ -82,7 +88,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
82
88
|
required: false,
|
|
83
89
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
84
90
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
85
|
-
tooltip: (_this$
|
|
91
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
86
92
|
component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
|
|
87
93
|
onChange: p === null || p === void 0 ? void 0 : p.onChange,
|
|
88
94
|
type: _this.type
|
|
@@ -111,7 +117,10 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
111
117
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
112
118
|
this.isCombinationComponent = true;
|
|
113
119
|
this.canSort = false;
|
|
114
|
-
this.children = ((
|
|
120
|
+
this.children = ((_getSystemShowHead = getSystemShowHead({
|
|
121
|
+
columns: ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.columns) || [],
|
|
122
|
+
showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
|
|
123
|
+
})) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
|
|
115
124
|
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
116
125
|
transformValue: column.render,
|
|
117
126
|
renderExport: column.renderExport,
|
|
@@ -121,7 +130,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
121
130
|
}));
|
|
122
131
|
})) || [];
|
|
123
132
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
124
|
-
this.rules = this !== null && this !== void 0 && (_this$
|
|
133
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
125
134
|
required: true,
|
|
126
135
|
validator: function validator(_, value) {
|
|
127
136
|
var _value$selectIds;
|
|
@@ -79,7 +79,7 @@ var HeaderMap = {
|
|
|
79
79
|
},
|
|
80
80
|
share: {
|
|
81
81
|
component: BsHeaderChild,
|
|
82
|
-
name: "
|
|
82
|
+
name: "均摊单价",
|
|
83
83
|
key: "share",
|
|
84
84
|
width: 120
|
|
85
85
|
},
|
|
@@ -231,7 +231,7 @@ var BsHeaderGods = /*#__PURE__*/function () {
|
|
|
231
231
|
skuName: "sku名称",
|
|
232
232
|
money: "实付金额",
|
|
233
233
|
number: "数量",
|
|
234
|
-
share: "
|
|
234
|
+
share: "均摊单价",
|
|
235
235
|
type: "赠品类型",
|
|
236
236
|
batch: "批次号",
|
|
237
237
|
expireDate: "有效期"
|
|
@@ -61,10 +61,10 @@ var getColumns = function getColumns(_ref) {
|
|
|
61
61
|
width: 100
|
|
62
62
|
}, {
|
|
63
63
|
dataIndex: "share",
|
|
64
|
-
title: "\
|
|
64
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
65
65
|
align: "center",
|
|
66
66
|
ellipsis: true,
|
|
67
|
-
width:
|
|
67
|
+
width: 120
|
|
68
68
|
}, {
|
|
69
69
|
dataIndex: "type",
|
|
70
70
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -60,10 +60,10 @@ var getColumns = function getColumns(_ref) {
|
|
|
60
60
|
width: 100
|
|
61
61
|
}, {
|
|
62
62
|
dataIndex: "share",
|
|
63
|
-
title: "\
|
|
63
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
64
64
|
align: "center",
|
|
65
65
|
ellipsis: true,
|
|
66
|
-
width:
|
|
66
|
+
width: 120
|
|
67
67
|
}, {
|
|
68
68
|
dataIndex: "type",
|
|
69
69
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -40,7 +40,7 @@ export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
|
|
|
40
40
|
}) => React.JSX.Element;
|
|
41
41
|
export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
42
42
|
export declare const KmVideoRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
43
|
-
export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
|
|
43
|
+
export declare const BsSystemOrderTable: ({ value, type, showHeader }: any) => React.JSX.Element;
|
|
44
44
|
export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
|
|
45
45
|
export declare const AlipayBill: (props: any) => React.JSX.Element;
|
|
46
46
|
export declare const RenderPicturePro: (props: any) => React.JSX.Element;
|
|
@@ -15,7 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
|
|
16
16
|
import { DownloadOutlined } from "@ant-design/icons";
|
|
17
17
|
import React, { useState, useMemo } from "react";
|
|
18
|
-
import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
import { ExpressData, SendDataCenter, getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
19
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
20
20
|
import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
21
21
|
import styles from "./index.module.less";
|
|
@@ -769,7 +769,9 @@ export var KmVideoRender = function KmVideoRender(_ref13) {
|
|
|
769
769
|
};
|
|
770
770
|
export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
771
771
|
var value = _ref14.value,
|
|
772
|
-
type = _ref14.type
|
|
772
|
+
type = _ref14.type,
|
|
773
|
+
_ref14$showHeader = _ref14.showHeader,
|
|
774
|
+
showHeader = _ref14$showHeader === void 0 ? [] : _ref14$showHeader;
|
|
773
775
|
var columnMap = {
|
|
774
776
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
775
777
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -805,15 +807,20 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
805
807
|
};
|
|
806
808
|
}
|
|
807
809
|
};
|
|
810
|
+
var columns = getSystemShowHead({
|
|
811
|
+
columns: columnMap[type] || [],
|
|
812
|
+
showHeader: showHeader
|
|
813
|
+
});
|
|
808
814
|
return /*#__PURE__*/React.createElement(Table, {
|
|
809
815
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
810
|
-
columns:
|
|
816
|
+
columns: columns || [],
|
|
811
817
|
rowSelection: rowSelection,
|
|
812
818
|
rowKey: rowKeyMap[type] || "billNo",
|
|
813
819
|
size: "small",
|
|
814
820
|
pagination: false,
|
|
815
821
|
scroll: {
|
|
816
|
-
x: "100%"
|
|
822
|
+
x: "100%",
|
|
823
|
+
y: 500
|
|
817
824
|
},
|
|
818
825
|
locale: {
|
|
819
826
|
emptyText: "暂无数据"
|
|
@@ -19,8 +19,8 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
19
19
|
constructor(options: PickOption);
|
|
20
20
|
getValues: (value: string) => string;
|
|
21
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
-
renderPc: (value: any, record: Record) =>
|
|
23
|
-
renderLog: (r: Record) =>
|
|
22
|
+
renderPc: (value: any, record: Record) => string;
|
|
23
|
+
renderLog: (r: Record) => string | null;
|
|
24
24
|
getComponentValue: (r: Record) => any;
|
|
25
25
|
renderExport: (value: any, record: Record) => string;
|
|
26
26
|
editRender: () => null;
|
|
@@ -40,8 +40,8 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
40
40
|
}) : null;
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
43
|
-
var
|
|
44
|
-
return
|
|
43
|
+
var time = record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
|
|
44
|
+
return time ? moment(time).format("YYYY-MM-DD HH:mm:ss") : "--";
|
|
45
45
|
// if (record?.[`${this.id}`] === undefined) {
|
|
46
46
|
// return <span>--</span>;
|
|
47
47
|
// }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class FlowOverallStatusSelect 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 FlowOverallStatusSelect;
|
|
@@ -0,0 +1,180 @@
|
|
|
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 FlowOverallStatusSelect = /*#__PURE__*/_createClass(function FlowOverallStatusSelect(options) {
|
|
17
|
+
var _this = this,
|
|
18
|
+
_Object$keys2;
|
|
19
|
+
_classCallCheck(this, FlowOverallStatusSelect);
|
|
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 ?
|
|
37
|
+
/*#__PURE__*/
|
|
38
|
+
// <Dropdown overlay={this.renderMenu(record)}>
|
|
39
|
+
React.createElement("span", {
|
|
40
|
+
style: {
|
|
41
|
+
color: status.color
|
|
42
|
+
}
|
|
43
|
+
}, status === null || status === void 0 ? void 0 : status.label) :
|
|
44
|
+
/*#__PURE__*/
|
|
45
|
+
// </Dropdown>
|
|
46
|
+
React.createElement("span", null, "--");
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
49
|
+
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
50
|
+
if (!status) return null;
|
|
51
|
+
return _this.renderPc(undefined, r);
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
54
|
+
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
55
|
+
return status;
|
|
56
|
+
});
|
|
57
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
58
|
+
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
59
|
+
return status ? status === null || status === void 0 ? void 0 : status.label : "--";
|
|
60
|
+
});
|
|
61
|
+
_defineProperty(this, "renderClient", function () {
|
|
62
|
+
return null;
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(this, "editRender", function (p) {
|
|
65
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
66
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
|
+
title: _this.name,
|
|
68
|
+
name: _this.id,
|
|
69
|
+
rules: _this.rules,
|
|
70
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
71
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
72
|
+
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,
|
|
73
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
74
|
+
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
75
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
76
|
+
showSearch: true
|
|
77
|
+
}))
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
81
|
+
var _Object$keys, _Object$keys$filter;
|
|
82
|
+
return {
|
|
83
|
+
searchDefaultConditions: SYMBOL.in,
|
|
84
|
+
type: item.type,
|
|
85
|
+
id: item.id,
|
|
86
|
+
// 过滤组件id
|
|
87
|
+
name: item.name,
|
|
88
|
+
// 过滤组件名称
|
|
89
|
+
filterComponentType: "MultipleSelect",
|
|
90
|
+
props: {
|
|
91
|
+
options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : (_Object$keys$filter = _Object$keys.filter(function (key) {
|
|
92
|
+
return key !== "HANDLING";
|
|
93
|
+
})) === null || _Object$keys$filter === void 0 ? void 0 : _Object$keys$filter.map(function (item) {
|
|
94
|
+
return {
|
|
95
|
+
label: _this.workOrderStatus[item].label,
|
|
96
|
+
value: item
|
|
97
|
+
};
|
|
98
|
+
})
|
|
99
|
+
},
|
|
100
|
+
filterFn: function filterFn(value) {
|
|
101
|
+
return function (i) {
|
|
102
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
this.name = options.name;
|
|
108
|
+
this.id = options.id;
|
|
109
|
+
this.sortField = options.id;
|
|
110
|
+
this.formField = options.id;
|
|
111
|
+
this.type = options.type;
|
|
112
|
+
this.componentConfig = options.componentConfig;
|
|
113
|
+
this.effects = options.effects;
|
|
114
|
+
this.rules = [];
|
|
115
|
+
this.isCombinationComponent = false;
|
|
116
|
+
this.canSort = true;
|
|
117
|
+
this.children = [];
|
|
118
|
+
this.workOrderStatus = {
|
|
119
|
+
PROCESSING: {
|
|
120
|
+
label: "处理中",
|
|
121
|
+
color: "#1890ff",
|
|
122
|
+
bgColor: "#1890ff"
|
|
123
|
+
},
|
|
124
|
+
STOPPING: {
|
|
125
|
+
label: "暂停中",
|
|
126
|
+
color: "#ff4d4f",
|
|
127
|
+
bgColor: "#ff4d4f"
|
|
128
|
+
},
|
|
129
|
+
COMPLETED: {
|
|
130
|
+
label: "已完成",
|
|
131
|
+
color: "#73d13d",
|
|
132
|
+
bgColor: "#73d13d"
|
|
133
|
+
},
|
|
134
|
+
CLOSED: {
|
|
135
|
+
label: "已关闭",
|
|
136
|
+
color: "rgba(0, 0, 0, 0.65)",
|
|
137
|
+
bgColor: "rgba(0, 0, 0, 0.04);"
|
|
138
|
+
},
|
|
139
|
+
FLOWING: {
|
|
140
|
+
label: "流转中",
|
|
141
|
+
color: "#1890ff",
|
|
142
|
+
bgColor: "#1890ff"
|
|
143
|
+
},
|
|
144
|
+
RETURNING: {
|
|
145
|
+
label: "回退中",
|
|
146
|
+
color: "#1890ff",
|
|
147
|
+
bgColor: "#1890ff"
|
|
148
|
+
},
|
|
149
|
+
BUSINESS_SUCCESS_BUT_FLOW_FAIL: {
|
|
150
|
+
label: "业务执行完毕但流转异常",
|
|
151
|
+
color: "#73d13d",
|
|
152
|
+
bgColor: "#73d13d"
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
this.dataType = "string";
|
|
156
|
+
this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
|
|
157
|
+
return {
|
|
158
|
+
label: _this.workOrderStatus[item].label,
|
|
159
|
+
value: item
|
|
160
|
+
};
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
// renderMenu = (record: Record) => {
|
|
164
|
+
// const menu = (
|
|
165
|
+
// <Menu
|
|
166
|
+
// onClick={({ key }) => {
|
|
167
|
+
// typeof this?.effects?.handleChangeSingleWorkOrderStatus === 'function' && this?.effects?.handleChangeSingleWorkOrderStatus(key, record)
|
|
168
|
+
// }}
|
|
169
|
+
// >
|
|
170
|
+
// <Menu.Item key="HANDLING">处理中</Menu.Item>
|
|
171
|
+
// <Menu.Item key="STOPPING">暂停中</Menu.Item>
|
|
172
|
+
// <Menu.Item key="COMPLETED">已完成</Menu.Item>
|
|
173
|
+
// <Menu.Item key="WAITING">待处理</Menu.Item>
|
|
174
|
+
// </Menu>
|
|
175
|
+
// );
|
|
176
|
+
// return menu;
|
|
177
|
+
// };
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
export default FlowOverallStatusSelect;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } 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) => BsSystemOrder | CommonDataTime | FlowOverallStatusSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -122,10 +122,11 @@ export var factory = function factory(type, options) {
|
|
|
122
122
|
case "FLOW_TAG":
|
|
123
123
|
return new FlowTag(options);
|
|
124
124
|
case "COMPLETED_DATETIME":
|
|
125
|
-
return new CommonDataTime(options);
|
|
126
125
|
case "CREATED_DATETIME":
|
|
127
|
-
return new CommonDataTime(options);
|
|
128
126
|
case "UPDATE_DATETIME":
|
|
127
|
+
case "FLOW_CREATED_DATETIME":
|
|
128
|
+
case "FLOW_UPDATE_DATETIME":
|
|
129
|
+
case "FLOW_CREATE_TIME_DATETIME":
|
|
129
130
|
return new CommonDataTime(options);
|
|
130
131
|
case "TEMPLATE_ID_INPUT":
|
|
131
132
|
return new TemplateSelect(options);
|
|
@@ -255,10 +256,6 @@ export var factory = function factory(type, options) {
|
|
|
255
256
|
return new NodeInput(options);
|
|
256
257
|
case "FLOW_WORK_STATUS_SELECT":
|
|
257
258
|
return new FlowWorkOrderStatus(options);
|
|
258
|
-
case "FLOW_CREATED_DATETIME":
|
|
259
|
-
return new CommonDataTime(options);
|
|
260
|
-
case "FLOW_UPDATE_DATETIME":
|
|
261
|
-
return new CommonDataTime(options);
|
|
262
259
|
case "WDT_GOODS":
|
|
263
260
|
// 万里牛商品
|
|
264
261
|
return new WdtGoods(options);
|
|
@@ -299,6 +296,8 @@ export var factory = function factory(type, options) {
|
|
|
299
296
|
return new SkxGoods(options);
|
|
300
297
|
case "ORDER_SUBFORM":
|
|
301
298
|
return new OrderSubForm(options);
|
|
299
|
+
case "FLOW_OVERALL_STATUS_SELECT":
|
|
300
|
+
return new FlowOverallStatusSelect(options);
|
|
302
301
|
default:
|
|
303
302
|
return new BasicInput(options);
|
|
304
303
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
103
|
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
|
+
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
104
105
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
105
106
|
export { factory } from "./factory";
|
|
106
107
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
package/dist/esm/index.js
CHANGED
|
@@ -101,6 +101,8 @@ export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
103
|
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
|
+
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
105
|
+
|
|
104
106
|
// TODO: ERP 打款工单使用
|
|
105
107
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
106
108
|
export { factory } from "./factory";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.23",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.2.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.23",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.23",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "23b438486b7caf631b4dca26bbd133d3b87928de",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|