@kmkf-fe-packages/services-components 2.2.5-beta.6 → 2.2.5-beta.8
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.
|
@@ -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/
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/File").default | import("../components/FlowTag").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/DataTime").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/PostIng").default | import("../components/SubForm").default | import("../components/CommonDataTime").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/BuyerNick").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/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").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/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").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/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/CommonSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").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/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").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/GY/GyGoods").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;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class SubForm implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
15
|
templateId?: string;
|
|
16
16
|
workOrderUniqueKey?: string;
|
|
17
17
|
constructor(options: PickOption);
|
|
@@ -14,16 +14,16 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
14
14
|
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; }
|
|
15
15
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
16
|
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); }
|
|
17
|
-
import React from
|
|
18
|
-
import { Table } from
|
|
19
|
-
import { SubForm as SubFormComponent, renderMap } from
|
|
17
|
+
import React from "react";
|
|
18
|
+
import { Table } from "antd";
|
|
19
|
+
import { SubForm as SubFormComponent, renderMap } from "@kmkf-fe-packages/basic-components";
|
|
20
20
|
import { BsHeaderChild } from "../BS/common";
|
|
21
21
|
import HeaderChildFile from "./children/HeaderChildFile";
|
|
22
22
|
import HeaderChildPic from "./children/HeaderChildPic";
|
|
23
23
|
import GetFormItem from "../GetFormItem";
|
|
24
24
|
import ItemView from "../../commonComponents/ItemView";
|
|
25
|
-
import { isNull } from
|
|
26
|
-
import { difference } from
|
|
25
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
26
|
+
import { difference } from "lodash";
|
|
27
27
|
import { SYMBOL } from "../../constant";
|
|
28
28
|
var ChildrenMap = {
|
|
29
29
|
INPUT: {
|
|
@@ -39,12 +39,12 @@ var ChildrenMap = {
|
|
|
39
39
|
component: BsHeaderChild,
|
|
40
40
|
transformValue: function transformValue(value) {
|
|
41
41
|
var _value$value;
|
|
42
|
-
|
|
43
|
-
return "".concat(value === null || value === void 0 ? void 0 : value.value, "\n ").concat(value !== null && value !== void 0 && value.value && typeof value.value ===
|
|
42
|
+
if (!(value !== null && value !== void 0 && value.value)) return null;
|
|
43
|
+
return "".concat(value === null || value === void 0 ? void 0 : value.value, "\n ").concat(value !== null && value !== void 0 && value.value && typeof value.value === "string" && (value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.indexOf("其他")) > -1 && value !== null && value !== void 0 && value.other ? "(".concat(value === null || value === void 0 ? void 0 : value.other, ")") : "");
|
|
44
44
|
},
|
|
45
45
|
renderExport: function renderExport(value) {
|
|
46
46
|
var _value$value2;
|
|
47
|
-
return "".concat(value === null || value === void 0 ? void 0 : value.value, "\n ").concat((value === null || value === void 0 ? void 0 : value.value) && typeof value.value ===
|
|
47
|
+
return "".concat(value === null || value === void 0 ? void 0 : value.value, "\n ").concat((value === null || value === void 0 ? void 0 : value.value) && typeof value.value === "string" && (value === null || value === void 0 ? void 0 : (_value$value2 = value.value) === null || _value$value2 === void 0 ? void 0 : _value$value2.indexOf("其他")) > -1 && (value === null || value === void 0 ? void 0 : value.other) && "(".concat(value === null || value === void 0 ? void 0 : value.other, ")"));
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
CHECKBOX: {
|
|
@@ -53,34 +53,34 @@ var ChildrenMap = {
|
|
|
53
53
|
var _value$value3, _value$value4, _value$value5;
|
|
54
54
|
if ((value === null || value === void 0 ? void 0 : (_value$value3 = value.value) === null || _value$value3 === void 0 ? void 0 : _value$value3.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
|
|
55
55
|
var findIndex = value === null || value === void 0 ? void 0 : (_value$value4 = value.value) === null || _value$value4 === void 0 ? void 0 : _value$value4.findIndex(function (item) {
|
|
56
|
-
return item ===
|
|
56
|
+
return item === "其他";
|
|
57
57
|
});
|
|
58
58
|
if (findIndex > -1 && value !== null && value !== void 0 && value.other) {
|
|
59
59
|
// @ts-ignore
|
|
60
60
|
value.value[findIndex] = "\u5176\u4ED6(".concat(value === null || value === void 0 ? void 0 : value.other, ")");
|
|
61
61
|
}
|
|
62
|
-
return value === null || value === void 0 ? void 0 : (_value$value5 = value.value) === null || _value$value5 === void 0 ? void 0 : _value$value5.join(
|
|
62
|
+
return value === null || value === void 0 ? void 0 : (_value$value5 = value.value) === null || _value$value5 === void 0 ? void 0 : _value$value5.join("/");
|
|
63
63
|
},
|
|
64
64
|
renderExport: function renderExport(value) {
|
|
65
65
|
var _value$value6, _value$value7, _value$value8;
|
|
66
66
|
if ((value === null || value === void 0 ? void 0 : (_value$value6 = value.value) === null || _value$value6 === void 0 ? void 0 : _value$value6.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
|
|
67
67
|
var findIndex = value === null || value === void 0 ? void 0 : (_value$value7 = value.value) === null || _value$value7 === void 0 ? void 0 : _value$value7.findIndex(function (item) {
|
|
68
|
-
return item ===
|
|
68
|
+
return item === "其他";
|
|
69
69
|
});
|
|
70
70
|
if (findIndex > -1 && value !== null && value !== void 0 && value.other) {
|
|
71
71
|
// @ts-ignore
|
|
72
72
|
value.value[findIndex] = "\u5176\u4ED6(".concat(value === null || value === void 0 ? void 0 : value.other, ")");
|
|
73
73
|
}
|
|
74
|
-
return value === null || value === void 0 ? void 0 : (_value$value8 = value.value) === null || _value$value8 === void 0 ? void 0 : _value$value8.join(
|
|
74
|
+
return value === null || value === void 0 ? void 0 : (_value$value8 = value.value) === null || _value$value8 === void 0 ? void 0 : _value$value8.join("/");
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
BASIC_MULT_SELECT: {
|
|
78
78
|
component: BsHeaderChild,
|
|
79
79
|
transformValue: function transformValue(value) {
|
|
80
|
-
return value === null || value === void 0 ? void 0 : value.join(
|
|
80
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
81
81
|
},
|
|
82
82
|
renderExport: function renderExport(value) {
|
|
83
|
-
return value === null || value === void 0 ? void 0 : value.join(
|
|
83
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
PICTURE: {
|
|
@@ -117,7 +117,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
117
117
|
isEdit: false,
|
|
118
118
|
isRequired: false,
|
|
119
119
|
isNumber: false,
|
|
120
|
-
precision:
|
|
120
|
+
precision: "nolimit",
|
|
121
121
|
width: 150
|
|
122
122
|
};
|
|
123
123
|
if (t.isShow) {
|
|
@@ -129,9 +129,9 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
129
129
|
_defineProperty(this, "renderTabel", function (list) {
|
|
130
130
|
var _ref, _ref$filter;
|
|
131
131
|
var columns = [{
|
|
132
|
-
dataIndex:
|
|
133
|
-
title:
|
|
134
|
-
align:
|
|
132
|
+
dataIndex: "",
|
|
133
|
+
title: "序号",
|
|
134
|
+
align: "center",
|
|
135
135
|
ellipsis: true,
|
|
136
136
|
width: 50,
|
|
137
137
|
render: function render(val, record, index) {
|
|
@@ -143,14 +143,14 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
143
143
|
return {
|
|
144
144
|
dataIndex: item.key,
|
|
145
145
|
title: item.name,
|
|
146
|
-
align:
|
|
146
|
+
align: "center",
|
|
147
147
|
ellipsis: true,
|
|
148
148
|
width: item.width,
|
|
149
149
|
render: function render(val) {
|
|
150
150
|
return renderMap[item.workOrderComponentType] ? /*#__PURE__*/React.createElement("div", {
|
|
151
151
|
style: {
|
|
152
|
-
width:
|
|
153
|
-
overflow:
|
|
152
|
+
width: "100%",
|
|
153
|
+
overflow: "auto"
|
|
154
154
|
}
|
|
155
155
|
}, renderMap[item.workOrderComponentType](val)) : /*#__PURE__*/React.createElement("span", null, val);
|
|
156
156
|
}
|
|
@@ -159,14 +159,14 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
159
159
|
return /*#__PURE__*/React.createElement(Table, {
|
|
160
160
|
columns: columns,
|
|
161
161
|
dataSource: list,
|
|
162
|
-
rowKey:
|
|
162
|
+
rowKey: "uuid",
|
|
163
163
|
size: "small",
|
|
164
164
|
pagination: false,
|
|
165
165
|
scroll: {
|
|
166
|
-
x:
|
|
166
|
+
x: "100%"
|
|
167
167
|
},
|
|
168
168
|
locale: {
|
|
169
|
-
emptyText:
|
|
169
|
+
emptyText: "暂无数据"
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
});
|
|
@@ -199,7 +199,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
199
199
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
200
200
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
201
201
|
required: (_this$componentConfig5 = (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required) !== null && _this$componentConfig5 !== void 0 ? _this$componentConfig5 : false,
|
|
202
|
-
tooltip: (_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.showTooltip ? (_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.tooltip :
|
|
202
|
+
tooltip: (_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.showTooltip ? (_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.tooltip : "",
|
|
203
203
|
component: /*#__PURE__*/React.createElement(SubFormComponent, _extends({}, _this.componentConfig, {
|
|
204
204
|
platform: p === null || p === void 0 ? void 0 : p.platform
|
|
205
205
|
}))
|
|
@@ -213,7 +213,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
213
213
|
// 过滤组件id
|
|
214
214
|
name: item.name,
|
|
215
215
|
// 过滤组件名称
|
|
216
|
-
filterComponentType:
|
|
216
|
+
filterComponentType: "Input"
|
|
217
217
|
}];
|
|
218
218
|
});
|
|
219
219
|
this.name = options.name;
|
|
@@ -253,7 +253,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
return prv;
|
|
256
|
-
},
|
|
256
|
+
}, "");
|
|
257
257
|
if (msg) {
|
|
258
258
|
return Promise.reject(new Error(msg));
|
|
259
259
|
}
|
|
@@ -280,6 +280,6 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
280
280
|
// });
|
|
281
281
|
});
|
|
282
282
|
|
|
283
|
-
this.dataType =
|
|
283
|
+
this.dataType = "object";
|
|
284
284
|
});
|
|
285
285
|
export default SubForm;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, 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";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BasicFile | FlowTag | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicPosting | SubForm | CommonDataTime | 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 | FlowStatusSelect | FlowMarkSelect | 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 | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | GyGoods;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.5-beta.
|
|
3
|
+
"version": "2.2.5-beta.8",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.2.5-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.5-beta.8",
|
|
25
25
|
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.5",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5e10d4c5cad127abc214f2616a82d623cd9b7909",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|