@kmkf-fe-packages/services-components 2.2.13-beta.44 → 2.2.13-beta.46
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/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +3 -2
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +185 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import LogisticsInterception from "../components/LogisticsInterception";
|
|
2
2
|
import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
|
|
3
|
-
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/ActualPayment").default | import("../components/Address").default | import("../components/AfterSalesOrderId").default | import("../components/Alipay").default | import("../components/BS/BsExchange").default | import("../components/BS/BsGoods").default | import("../components/BS/BsLogistics").default | import("../components/BS/BsPosting").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/BS/BsSystemOrder").default | import("../components/BsE3/BsGoods").default | import("../components/BsE3/BsReissueE3").default | import("../components/BuyerNick").default | import("../components/Calculation").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/CommonDataTime").default | import("../components/CommonInput").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/CompletedUser").default | import("../components/DataTime").default | import("../components/EItemEnCode").default | import("../components/EItemId").default | import("../components/EItemSelect").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/Remark").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default;
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/ActualPayment").default | import("../components/Address").default | import("../components/AfterSalesOrderId").default | import("../components/Alipay").default | import("../components/BS/BsExchange").default | import("../components/BS/BsGoods").default | import("../components/BS/BsLogistics").default | import("../components/BS/BsPosting").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/BS/BsSystemOrder").default | import("../components/BsE3/BsGoods").default | import("../components/BsE3/BsReissueE3").default | import("../components/BuyerNick").default | import("../components/Calculation").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/CommonDataTime").default | import("../components/CommonInput").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/CompletedUser").default | import("../components/DataTime").default | import("../components/EItemEnCode").default | import("../components/EItemId").default | import("../components/EItemSelect").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/Remark").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
|
|
4
4
|
export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
|
|
5
5
|
queryWorkOrderDetail?: ((p: any) => void) | undefined;
|
|
6
6
|
flatTemplateList?: any;
|
|
@@ -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,9 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
40
40
|
}) : null;
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
43
|
-
var
|
|
44
|
-
|
|
43
|
+
var _moment$format;
|
|
44
|
+
var time = record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
|
|
45
|
+
return (_moment$format = moment(time).format("YYYY-MM-DD HH:mm:ss")) !== null && _moment$format !== void 0 ? _moment$format : "--";
|
|
45
46
|
// if (record?.[`${this.id}`] === undefined) {
|
|
46
47
|
// return <span>--</span>;
|
|
47
48
|
// }
|
|
@@ -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,185 @@
|
|
|
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
|
+
WAIT_COMMIT: {
|
|
120
|
+
label: "待提交",
|
|
121
|
+
color: "#faad14",
|
|
122
|
+
bgColor: "#faad14"
|
|
123
|
+
},
|
|
124
|
+
PROCESSING: {
|
|
125
|
+
label: "处理中",
|
|
126
|
+
color: "#1890ff",
|
|
127
|
+
bgColor: "#1890ff"
|
|
128
|
+
},
|
|
129
|
+
STOPPING: {
|
|
130
|
+
label: "暂停中",
|
|
131
|
+
color: "#ff4d4f",
|
|
132
|
+
bgColor: "#ff4d4f"
|
|
133
|
+
},
|
|
134
|
+
COMPLETED: {
|
|
135
|
+
label: "已完成",
|
|
136
|
+
color: "#73d13d",
|
|
137
|
+
bgColor: "#73d13d"
|
|
138
|
+
},
|
|
139
|
+
CLOSED: {
|
|
140
|
+
label: "已关闭",
|
|
141
|
+
color: "rgba(0, 0, 0, 0.65)",
|
|
142
|
+
bgColor: "rgba(0, 0, 0, 0.04);"
|
|
143
|
+
},
|
|
144
|
+
FLOWING: {
|
|
145
|
+
label: "流转中",
|
|
146
|
+
color: "#1890ff",
|
|
147
|
+
bgColor: "#1890ff"
|
|
148
|
+
},
|
|
149
|
+
RETURNING: {
|
|
150
|
+
label: "回退中",
|
|
151
|
+
color: "#1890ff",
|
|
152
|
+
bgColor: "#1890ff"
|
|
153
|
+
},
|
|
154
|
+
BUSINESS_SUCCESS_BUT_FLOW_FAIL: {
|
|
155
|
+
label: "业务执行完毕但流转异常",
|
|
156
|
+
color: "#73d13d",
|
|
157
|
+
bgColor: "#73d13d"
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
this.dataType = "string";
|
|
161
|
+
this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
|
|
162
|
+
return {
|
|
163
|
+
label: _this.workOrderStatus[item].label,
|
|
164
|
+
value: item
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
// renderMenu = (record: Record) => {
|
|
169
|
+
// const menu = (
|
|
170
|
+
// <Menu
|
|
171
|
+
// onClick={({ key }) => {
|
|
172
|
+
// typeof this?.effects?.handleChangeSingleWorkOrderStatus === 'function' && this?.effects?.handleChangeSingleWorkOrderStatus(key, record)
|
|
173
|
+
// }}
|
|
174
|
+
// >
|
|
175
|
+
// <Menu.Item key="HANDLING">处理中</Menu.Item>
|
|
176
|
+
// <Menu.Item key="STOPPING">暂停中</Menu.Item>
|
|
177
|
+
// <Menu.Item key="COMPLETED">已完成</Menu.Item>
|
|
178
|
+
// <Menu.Item key="WAITING">待处理</Menu.Item>
|
|
179
|
+
// </Menu>
|
|
180
|
+
// );
|
|
181
|
+
// return menu;
|
|
182
|
+
// };
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
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) => ActualPayment | BasicAddress | AfterSalesOrderId | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BsE3Goods | BsE3Reissue | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | BasicInput | BasicTypeInput | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | PublicGoods | PublicReissueGoods | PublicExchange | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm;
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AfterSalesOrderId | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BsE3Goods | BsE3Reissue | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | BasicInput | BasicTypeInput | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | PublicGoods | PublicReissueGoods | PublicExchange | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
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.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.46",
|
|
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.13-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.13-beta.45",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.45",
|
|
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": "e28f1ad9b93bec189fa31ba1655acf8dc593ef87",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|