@kmkf-fe-packages/services-components 1.19.8-beta.13 → 1.19.8-beta.16
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 +29 -8
- package/dist/esm/components/Common/index.js +33 -9
- package/dist/esm/components/CommonHeaderGood/index.js +5 -2
- package/dist/esm/components/Select/index.js +11 -8
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/type.d.ts +4 -0
- package/package.json +4 -4
|
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
@@ -84,37 +84,58 @@ var typeMap = {
|
|
|
84
84
|
title: "订单状态",
|
|
85
85
|
dataIndex: "orderStatus",
|
|
86
86
|
width: 100,
|
|
87
|
-
ellipsis: true
|
|
87
|
+
ellipsis: true,
|
|
88
|
+
render: function render(val) {
|
|
89
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
|
|
90
|
+
}
|
|
88
91
|
}, {
|
|
89
92
|
title: "是否被拆分",
|
|
90
93
|
dataIndex: "isSplit",
|
|
91
94
|
width: 100,
|
|
92
|
-
ellipsis: true
|
|
95
|
+
ellipsis: true,
|
|
96
|
+
render: function render(val) {
|
|
97
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
98
|
+
}
|
|
93
99
|
}, {
|
|
94
100
|
title: "是否拆分子单",
|
|
95
101
|
dataIndex: "isSplitNew",
|
|
96
102
|
width: 100,
|
|
97
|
-
ellipsis: true
|
|
103
|
+
ellipsis: true,
|
|
104
|
+
render: function render(val) {
|
|
105
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
106
|
+
}
|
|
98
107
|
}, {
|
|
99
108
|
title: "是否被合并",
|
|
100
109
|
dataIndex: "isCombine",
|
|
101
110
|
width: 100,
|
|
102
|
-
ellipsis: true
|
|
111
|
+
ellipsis: true,
|
|
112
|
+
render: function render(val) {
|
|
113
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
114
|
+
}
|
|
103
115
|
}, {
|
|
104
116
|
title: "是否合并新单",
|
|
105
117
|
dataIndex: "isCombineNew",
|
|
106
118
|
width: 100,
|
|
107
|
-
ellipsis: true
|
|
119
|
+
ellipsis: true,
|
|
120
|
+
render: function render(val) {
|
|
121
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
122
|
+
}
|
|
108
123
|
}, {
|
|
109
124
|
title: "是否复制单",
|
|
110
125
|
dataIndex: "isCopy",
|
|
111
126
|
width: 100,
|
|
112
|
-
ellipsis: true
|
|
127
|
+
ellipsis: true,
|
|
128
|
+
render: function render(val) {
|
|
129
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
130
|
+
}
|
|
113
131
|
}, {
|
|
114
132
|
title: "是否换货单",
|
|
115
133
|
dataIndex: "isExchangeOrder",
|
|
116
134
|
width: 100,
|
|
117
|
-
ellipsis: true
|
|
135
|
+
ellipsis: true,
|
|
136
|
+
render: function render(val) {
|
|
137
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
138
|
+
}
|
|
118
139
|
}, {
|
|
119
140
|
title: "订单备注",
|
|
120
141
|
dataIndex: "orderMsg",
|
|
@@ -14,7 +14,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
14
14
|
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 React, { useState, useMemo } from "react";
|
|
17
|
-
import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
+
import { ExpressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
19
19
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
20
20
|
import styles from "./index.module.less";
|
|
@@ -892,7 +892,10 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
892
892
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
893
893
|
align: 'center',
|
|
894
894
|
ellipsis: true,
|
|
895
|
-
width: 100
|
|
895
|
+
width: 100,
|
|
896
|
+
render: function render(val) {
|
|
897
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
898
|
+
}
|
|
896
899
|
}];
|
|
897
900
|
}
|
|
898
901
|
break;
|
|
@@ -1163,37 +1166,58 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1163
1166
|
title: "订单状态",
|
|
1164
1167
|
dataIndex: "orderStatus",
|
|
1165
1168
|
width: 100,
|
|
1166
|
-
ellipsis: true
|
|
1169
|
+
ellipsis: true,
|
|
1170
|
+
render: function render(val) {
|
|
1171
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
|
|
1172
|
+
}
|
|
1167
1173
|
}, {
|
|
1168
1174
|
title: "是否被拆分",
|
|
1169
1175
|
dataIndex: "isSplit",
|
|
1170
1176
|
width: 100,
|
|
1171
|
-
ellipsis: true
|
|
1177
|
+
ellipsis: true,
|
|
1178
|
+
render: function render(val) {
|
|
1179
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1180
|
+
}
|
|
1172
1181
|
}, {
|
|
1173
1182
|
title: "是否拆分子单",
|
|
1174
1183
|
dataIndex: "isSplitNew",
|
|
1175
1184
|
width: 100,
|
|
1176
|
-
ellipsis: true
|
|
1185
|
+
ellipsis: true,
|
|
1186
|
+
render: function render(val) {
|
|
1187
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1188
|
+
}
|
|
1177
1189
|
}, {
|
|
1178
1190
|
title: "是否被合并",
|
|
1179
1191
|
dataIndex: "isCombine",
|
|
1180
1192
|
width: 100,
|
|
1181
|
-
ellipsis: true
|
|
1193
|
+
ellipsis: true,
|
|
1194
|
+
render: function render(val) {
|
|
1195
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1196
|
+
}
|
|
1182
1197
|
}, {
|
|
1183
1198
|
title: "是否合并新单",
|
|
1184
1199
|
dataIndex: "isCombineNew",
|
|
1185
1200
|
width: 100,
|
|
1186
|
-
ellipsis: true
|
|
1201
|
+
ellipsis: true,
|
|
1202
|
+
render: function render(val) {
|
|
1203
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1204
|
+
}
|
|
1187
1205
|
}, {
|
|
1188
1206
|
title: "是否复制单",
|
|
1189
1207
|
dataIndex: "isCopy",
|
|
1190
1208
|
width: 100,
|
|
1191
|
-
ellipsis: true
|
|
1209
|
+
ellipsis: true,
|
|
1210
|
+
render: function render(val) {
|
|
1211
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1212
|
+
}
|
|
1192
1213
|
}, {
|
|
1193
1214
|
title: "是否换货单",
|
|
1194
1215
|
dataIndex: "isExchangeOrder",
|
|
1195
1216
|
width: 100,
|
|
1196
|
-
ellipsis: true
|
|
1217
|
+
ellipsis: true,
|
|
1218
|
+
render: function render(val) {
|
|
1219
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1220
|
+
}
|
|
1197
1221
|
}, {
|
|
1198
1222
|
title: "订单备注",
|
|
1199
1223
|
dataIndex: "orderMsg",
|
|
@@ -19,7 +19,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
19
19
|
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); }
|
|
20
20
|
import React from "react";
|
|
21
21
|
import ItemView from "../../commonComponents/ItemView";
|
|
22
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
22
|
+
import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
|
|
23
23
|
import { BsHeaderPic, BsHeaderChild } from "../BS/common";
|
|
24
24
|
import ReissueGift from "../BsE3/ReissueGift";
|
|
25
25
|
var GoodHeaderMap = {
|
|
@@ -420,7 +420,10 @@ var GoodHeaderMap = {
|
|
|
420
420
|
component: BsHeaderChild,
|
|
421
421
|
name: "是否赠品",
|
|
422
422
|
key: "isGift",
|
|
423
|
-
width: 80
|
|
423
|
+
width: 80,
|
|
424
|
+
render: function render(val) {
|
|
425
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
426
|
+
}
|
|
424
427
|
}
|
|
425
428
|
},
|
|
426
429
|
itemKey: {
|
|
@@ -26,7 +26,7 @@ var typeMap = {
|
|
|
26
26
|
};
|
|
27
27
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
28
28
|
var _this = this,
|
|
29
|
-
_this$
|
|
29
|
+
_this$componentConfig8,
|
|
30
30
|
_this$options;
|
|
31
31
|
_classCallCheck(this, BasicSelect);
|
|
32
32
|
_defineProperty(this, "name", void 0);
|
|
@@ -63,8 +63,9 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
_defineProperty(this, "renderClient", function (record) {
|
|
66
|
-
var _this$optionsMap;
|
|
67
|
-
|
|
66
|
+
var _this$componentConfig5, _this$optionsMap;
|
|
67
|
+
// 特殊自定义组件为平台状态时匹配出label
|
|
68
|
+
var label = ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.webUniqueKey) === 'PLATFORM_STATUS' ? (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]] : record === null || record === void 0 ? void 0 : record[_this.id];
|
|
68
69
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
69
70
|
id: _this.id,
|
|
70
71
|
label: _this.name,
|
|
@@ -72,10 +73,11 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
72
73
|
}) : null;
|
|
73
74
|
});
|
|
74
75
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
75
|
-
var _this$optionsMap2;
|
|
76
|
+
var _this$componentConfig6, _this$optionsMap2;
|
|
76
77
|
var type = _this.type;
|
|
77
78
|
var key = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
78
|
-
|
|
79
|
+
// 特殊自定义组件为平台状态时匹配出label
|
|
80
|
+
var label = ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.webUniqueKey) === 'PLATFORM_STATUS' ? ((_this$optionsMap2 = _this.optionsMap) === null || _this$optionsMap2 === void 0 ? void 0 : _this$optionsMap2[key]) || '' : value;
|
|
79
81
|
return /*#__PURE__*/React.createElement("span", null, label !== null && label !== void 0 ? label : "--");
|
|
80
82
|
});
|
|
81
83
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -88,10 +90,11 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
88
90
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
89
91
|
});
|
|
90
92
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
91
|
-
var _this$optionsMap3;
|
|
93
|
+
var _this$componentConfig7, _this$optionsMap3;
|
|
92
94
|
var type = _this.type;
|
|
93
95
|
var key = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
94
|
-
|
|
96
|
+
// 特殊自定义组件为平台状态时匹配出label
|
|
97
|
+
var label = ((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.webUniqueKey) === 'PLATFORM_STATUS' ? ((_this$optionsMap3 = _this.optionsMap) === null || _this$optionsMap3 === void 0 ? void 0 : _this$optionsMap3[key]) || '' : value;
|
|
95
98
|
return label !== null && label !== void 0 ? label : "--";
|
|
96
99
|
});
|
|
97
100
|
_defineProperty(this, "filterConfig", function (item) {
|
|
@@ -126,7 +129,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
126
129
|
this.canSort = true;
|
|
127
130
|
this.children = [];
|
|
128
131
|
this.dataType = "string";
|
|
129
|
-
this.options = ((_this$
|
|
132
|
+
this.options = ((_this$componentConfig8 = this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.options) || [];
|
|
130
133
|
this.optionsMap = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.reduce(function (prev, next) {
|
|
131
134
|
prev[next.value] = next.label;
|
|
132
135
|
return prev;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, 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, KmErpSendGood, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | JstSendGood | KmErpSendGood | MsgStatus | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | BsSystemOrder | BsE3Reissue | JstSendGood | KmErpSendGood | MsgStatus | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsExchange | BsReissue | BsReturn | 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 | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
|
package/dist/esm/type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.19.8-beta.
|
|
3
|
+
"version": "1.19.8-beta.16",
|
|
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": "1.19.8-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.19.8-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.19.8-beta.15",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.19.8-beta.15",
|
|
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": "b82789efbba7d2e2134cc24d0d8bfbb6f0a8f681",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|