@kmkf-fe-packages/services-components 2.7.7-beta.0 → 2.7.7-beta.3
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/BS/BsLogistics/index.js +0 -1
- package/dist/esm/components/BS/BsSystemOrder/index.js +5 -0
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
- package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/type.d.ts +3 -2
- 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/BS/BsSystemOrder").default | import("../components/Cascader").default | import("../components/CommonSystemOrder").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default |
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/Cascader").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default | LogisticsMoreInterception | import("../components/Payment").default | import("../components/PicturePro").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/ReturnWarehouse").default | import("../components/ReceiverAddress").default | import("../components/StatusSelect").default | import("../components/SubForm").default | import("../components/TradeId").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").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/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/CommonDataTime").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/TradeDateTime").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/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").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/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | 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/Calculation").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/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;
|
|
@@ -187,7 +187,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
187
187
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
188
188
|
var _typeMap$_this$type2, _typeMap$_this$type3;
|
|
189
189
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
|
|
190
|
-
console.log("\uD83D\uDE80 ~ index.tsx:234 ~ list:", list);
|
|
191
190
|
//兼容多个商品
|
|
192
191
|
return /*#__PURE__*/React.createElement("span", {
|
|
193
192
|
onClick: function onClick(e) {
|
|
@@ -158,6 +158,11 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
158
158
|
showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
|
|
159
159
|
})) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
|
|
160
160
|
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
161
|
+
parent: {
|
|
162
|
+
id: _this.id,
|
|
163
|
+
formField: _this.formField,
|
|
164
|
+
sortField: _this.sortField
|
|
165
|
+
},
|
|
161
166
|
transformValue: column.render,
|
|
162
167
|
renderExport: column.renderExport,
|
|
163
168
|
name: column.title,
|
|
@@ -14,16 +14,17 @@ declare class BsHeaderChild implements ComponentInterface {
|
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
16
|
parentName?: string;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
parent?: any;
|
|
18
|
+
transformValue: (val: any, record?: any, parentName?: string, parent?: any, index?: number) => any;
|
|
19
|
+
export: (val: any, record?: any, parentName?: string, parent?: any, index?: number) => any;
|
|
19
20
|
constructor(options: PickOption);
|
|
20
21
|
getParentId: () => string;
|
|
21
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
23
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
24
|
-
getComponentValue: (r: Record) => any;
|
|
25
|
-
getComponentExport: (r: Record) => any;
|
|
26
|
-
renderExport: (value: string, record: Record) => any;
|
|
22
|
+
renderClient: (record: any, index: number) => React.JSX.Element | null;
|
|
23
|
+
renderPc: (value: unknown, record: Record, index?: number) => React.JSX.Element;
|
|
24
|
+
renderLog: (r: Record, index?: number) => React.JSX.Element | null;
|
|
25
|
+
getComponentValue: (r: Record, index?: number) => any;
|
|
26
|
+
getComponentExport: (r: Record, index?: number) => any;
|
|
27
|
+
renderExport: (value: string, record: Record, index?: number) => any;
|
|
27
28
|
editRender: () => null;
|
|
28
29
|
filterConfig: () => never[];
|
|
29
30
|
}
|
|
@@ -30,6 +30,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
31
|
_defineProperty(this, "dataType", void 0);
|
|
32
32
|
_defineProperty(this, "parentName", void 0);
|
|
33
|
+
_defineProperty(this, "parent", void 0);
|
|
33
34
|
_defineProperty(this, "transformValue", function (val) {
|
|
34
35
|
return val;
|
|
35
36
|
});
|
|
@@ -44,31 +45,31 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
44
45
|
code = _this$id$split2[2];
|
|
45
46
|
return "".concat(key, "_").concat(name);
|
|
46
47
|
});
|
|
47
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
48
|
+
_defineProperty(this, "renderClient", function (record, index) {
|
|
48
49
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
49
50
|
id: _this.id,
|
|
50
51
|
label: _this.name,
|
|
51
|
-
value: _this.getComponentValue(record)
|
|
52
|
+
value: _this.getComponentValue(record, index)
|
|
52
53
|
}) : null;
|
|
53
54
|
});
|
|
54
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
55
|
+
_defineProperty(this, "renderPc", function (value, record, index) {
|
|
55
56
|
var _this$getComponentVal;
|
|
56
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
57
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record, index)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
57
58
|
});
|
|
58
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
59
|
+
_defineProperty(this, "renderLog", function (r, index) {
|
|
59
60
|
var id = _this.getParentId();
|
|
60
61
|
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
61
|
-
return _this.renderPc(undefined, r);
|
|
62
|
+
return _this.renderPc(undefined, r, index);
|
|
62
63
|
});
|
|
63
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
64
|
-
return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
64
|
+
_defineProperty(this, "getComponentValue", function (r, index) {
|
|
65
|
+
return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName, _this.parent, index);
|
|
65
66
|
});
|
|
66
|
-
_defineProperty(this, "getComponentExport", function (r) {
|
|
67
|
-
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
67
|
+
_defineProperty(this, "getComponentExport", function (r, index) {
|
|
68
|
+
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName, _this.parent, index);
|
|
68
69
|
});
|
|
69
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
70
|
+
_defineProperty(this, "renderExport", function (value, record, index) {
|
|
70
71
|
var _this$getComponentExp;
|
|
71
|
-
var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
|
|
72
|
+
var val = (_this$getComponentExp = _this.getComponentExport(record, index)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
|
|
72
73
|
return typeof val === "number" ? val + "" : val;
|
|
73
74
|
});
|
|
74
75
|
_defineProperty(this, "editRender", function () {
|
|
@@ -85,6 +86,9 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
85
86
|
if (options.parentName) {
|
|
86
87
|
this.parentName = options.parentName;
|
|
87
88
|
}
|
|
89
|
+
if (options.parent) {
|
|
90
|
+
this.parent = options.parent;
|
|
91
|
+
}
|
|
88
92
|
this.componentConfig = options.componentConfig;
|
|
89
93
|
this.align = "left";
|
|
90
94
|
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
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, 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, ReturnWarehouse, KmExchange } 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 | CommonSystemOrder | LogisticsInterception | StatusSelect | TradeId | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | 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 | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare type FilterConfigType = {
|
|
|
35
35
|
};
|
|
36
36
|
export declare type FilterComponentType = "MultipleSelect" | "TagsSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput" | "AsyncSelect";
|
|
37
37
|
export interface ComponentInterface {
|
|
38
|
-
transformValue?: (val: any, record?: any, parentName?: string) => any;
|
|
38
|
+
transformValue?: (val: any, record?: any, parentName?: string, parent?: any) => any;
|
|
39
39
|
id: string;
|
|
40
40
|
sortField: string;
|
|
41
41
|
sortChildField?: {
|
|
@@ -64,6 +64,7 @@ export interface ComponentInterface {
|
|
|
64
64
|
workOrderUniqueKey?: string;
|
|
65
65
|
platform?: PlatForm;
|
|
66
66
|
parentName?: string;
|
|
67
|
+
parent?: any;
|
|
67
68
|
exampleValue?: any;
|
|
68
69
|
compoundConfig?: Array<{
|
|
69
70
|
id: string;
|
|
@@ -323,7 +324,7 @@ export interface ComponentInterface {
|
|
|
323
324
|
getComponentValue: (r: Record) => any;
|
|
324
325
|
formDataTransform?: (r: any) => any;
|
|
325
326
|
}
|
|
326
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
|
|
327
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "parent" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
|
|
327
328
|
export declare type ColumnConfig = {
|
|
328
329
|
id: string;
|
|
329
330
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.7.7-beta.
|
|
3
|
+
"version": "2.7.7-beta.3",
|
|
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.7.7-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.7.7-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.7.7-beta.3",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.7.7-beta.3",
|
|
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": "1bcc57eaa970d01d8d2195f3087ec20f3ab93060",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|