@kmkf-fe-packages/services-components 1.22.1-beta.9 → 1.22.2
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/BsGoods/index.js +1 -5
- package/dist/esm/components/BS/BsSystemOrder/index.js +2 -4
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +0 -1
- package/dist/esm/components/BS/common/BsHeaderChild.js +1 -7
- package/dist/esm/components/BS/common/BsHeaderGood.js +1 -15
- package/dist/esm/components/Common/index.js +1 -86
- package/dist/esm/components/CommonMultiStatus/index.js +3 -29
- package/dist/esm/components/JST/JstLogistics/index.js +3 -3
- package/dist/esm/components/JST/JstSendGood/index.js +0 -7
- package/dist/esm/components/MsgStatus/index.js +2 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +4 -6
- package/dist/esm/type.d.ts +1 -2
- package/package.json +6 -6
|
@@ -39,7 +39,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
39
39
|
id: _this.id,
|
|
40
40
|
label: _this.name,
|
|
41
41
|
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
42
|
-
type: _this.type,
|
|
43
42
|
list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.bsGoods) || [],
|
|
44
43
|
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
45
44
|
})
|
|
@@ -52,7 +51,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
52
51
|
var _this$componentConfig2;
|
|
53
52
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")])) return null;
|
|
54
53
|
return /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
55
|
-
type: _this.type,
|
|
56
54
|
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")]) || [],
|
|
57
55
|
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
58
56
|
});
|
|
@@ -73,9 +71,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
73
71
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
74
72
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
75
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 : '',
|
|
76
|
-
component: /*#__PURE__*/React.createElement(Goods, _extends({
|
|
77
|
-
type: _this.type
|
|
78
|
-
}, _this.componentConfig, {
|
|
74
|
+
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
79
75
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
80
76
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
81
77
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -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, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP
|
|
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";
|
|
@@ -19,7 +19,7 @@ import { SYMBOL, batchInput } from "../../../constant";
|
|
|
19
19
|
var typeMap = {
|
|
20
20
|
BS_SYSTEM_ORDER: {
|
|
21
21
|
key: 'bsSystemShowOrder',
|
|
22
|
-
name: '
|
|
22
|
+
name: 'bs',
|
|
23
23
|
selectId: 'bsSystemSelectIds',
|
|
24
24
|
columns: [{
|
|
25
25
|
title: "单据类型",
|
|
@@ -50,7 +50,6 @@ var typeMap = {
|
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
|
|
53
|
-
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
|
|
54
53
|
WLN_SYSTEM_ORDER: {
|
|
55
54
|
key: 'wlnSystemShowOrder',
|
|
56
55
|
name: '万里牛',
|
|
@@ -247,7 +246,6 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
247
246
|
this.canSort = false;
|
|
248
247
|
this.children = ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : (_typeMap$options$type2 = _typeMap$options$type.columns) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.map(function (column) {
|
|
249
248
|
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
250
|
-
transformValue: column.render,
|
|
251
249
|
name: column.title,
|
|
252
250
|
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_").concat(column.dataIndex),
|
|
253
251
|
width: column.width || 150
|
|
@@ -13,7 +13,6 @@ declare class BsHeaderChild implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface['dataType'];
|
|
16
|
-
transformValue: (val: any) => any;
|
|
17
16
|
constructor(options: PickOption);
|
|
18
17
|
getParentId: () => string;
|
|
19
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -29,9 +29,6 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
29
29
|
_defineProperty(this, "canSort", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
31
|
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "transformValue", function (val) {
|
|
33
|
-
return val;
|
|
34
|
-
});
|
|
35
32
|
_defineProperty(this, "getParentId", function () {
|
|
36
33
|
var _this$id$split = _this.id.split('_'),
|
|
37
34
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
@@ -57,7 +54,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
57
54
|
return _this.renderPc(undefined, r);
|
|
58
55
|
});
|
|
59
56
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
60
|
-
return
|
|
57
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
61
58
|
});
|
|
62
59
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
63
60
|
var _this$getComponentVal2;
|
|
@@ -82,8 +79,5 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
82
79
|
this.canSort = false;
|
|
83
80
|
this.dataType = 'string';
|
|
84
81
|
this.children = [];
|
|
85
|
-
if (options.transformValue) {
|
|
86
|
-
this.transformValue = options.transformValue;
|
|
87
|
-
}
|
|
88
82
|
});
|
|
89
83
|
export default BsHeaderChild;
|
|
@@ -123,18 +123,6 @@ var HeaderMap = {
|
|
|
123
123
|
name: "SKU 信息",
|
|
124
124
|
key: "propertiesName",
|
|
125
125
|
width: 140
|
|
126
|
-
},
|
|
127
|
-
batch: {
|
|
128
|
-
component: BsHeaderChild,
|
|
129
|
-
name: "批次号",
|
|
130
|
-
key: "batch",
|
|
131
|
-
width: 140
|
|
132
|
-
},
|
|
133
|
-
expireDate: {
|
|
134
|
-
component: BsHeaderChild,
|
|
135
|
-
name: "有效期",
|
|
136
|
-
key: "expireDate",
|
|
137
|
-
width: 140
|
|
138
126
|
}
|
|
139
127
|
|
|
140
128
|
// title: '商品名称',
|
|
@@ -232,9 +220,7 @@ var BsHeaderGods = /*#__PURE__*/_createClass(function BsHeaderGods(options) {
|
|
|
232
220
|
money: "实付金额",
|
|
233
221
|
number: "数量",
|
|
234
222
|
share: "分摊价",
|
|
235
|
-
type: "赠品类型"
|
|
236
|
-
batch: "批次号",
|
|
237
|
-
expireDate: "有效期"
|
|
223
|
+
type: "赠品类型"
|
|
238
224
|
};
|
|
239
225
|
this.children = _toConsumableArray(Object.keys(HeaderMap).reduce(function (prv, key) {
|
|
240
226
|
var _options$componentCon, _options$componentCon2;
|
|
@@ -20,7 +20,6 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
|
20
20
|
import styles from "./index.module.less";
|
|
21
21
|
import defaultImg from "./img/default-img.png";
|
|
22
22
|
import CopyText from "../../commonComponents/CopyText";
|
|
23
|
-
import { KM_SYSTEM_ORDER_CONFIG } from '@kmkf-fe-packages/kmkf-utils';
|
|
24
23
|
var Paragraph = Typography.Paragraph;
|
|
25
24
|
export var getFormItem = function getFormItem(_ref) {
|
|
26
25
|
var name = _ref.name,
|
|
@@ -900,87 +899,6 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
900
899
|
}];
|
|
901
900
|
}
|
|
902
901
|
break;
|
|
903
|
-
case 'BS_GOODS':
|
|
904
|
-
columns = [{
|
|
905
|
-
dataIndex: 'mark',
|
|
906
|
-
title: "\u5546\u54C1\u6807\u8BB0",
|
|
907
|
-
align: 'center',
|
|
908
|
-
ellipsis: true,
|
|
909
|
-
width: 100
|
|
910
|
-
}, {
|
|
911
|
-
dataIndex: 'skuName',
|
|
912
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
913
|
-
align: 'center',
|
|
914
|
-
ellipsis: true,
|
|
915
|
-
width: 200
|
|
916
|
-
}, {
|
|
917
|
-
dataIndex: 'sku',
|
|
918
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
919
|
-
align: 'center',
|
|
920
|
-
ellipsis: true,
|
|
921
|
-
width: 100
|
|
922
|
-
}, {
|
|
923
|
-
dataIndex: 'name',
|
|
924
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
925
|
-
align: 'center',
|
|
926
|
-
ellipsis: true,
|
|
927
|
-
width: 200
|
|
928
|
-
}, {
|
|
929
|
-
dataIndex: 'pic',
|
|
930
|
-
title: "\u56FE\u7247",
|
|
931
|
-
align: 'center',
|
|
932
|
-
ellipsis: true,
|
|
933
|
-
width: 100,
|
|
934
|
-
render: function render(val) {
|
|
935
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
936
|
-
width: 60,
|
|
937
|
-
src: val
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
}, {
|
|
941
|
-
dataIndex: 'code',
|
|
942
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
943
|
-
align: 'center',
|
|
944
|
-
ellipsis: true,
|
|
945
|
-
width: 100
|
|
946
|
-
}, {
|
|
947
|
-
dataIndex: 'money',
|
|
948
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
949
|
-
align: 'center',
|
|
950
|
-
ellipsis: true,
|
|
951
|
-
width: 100
|
|
952
|
-
}, {
|
|
953
|
-
dataIndex: 'number',
|
|
954
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
955
|
-
align: 'center',
|
|
956
|
-
ellipsis: true,
|
|
957
|
-
width: 100
|
|
958
|
-
}, {
|
|
959
|
-
dataIndex: 'share',
|
|
960
|
-
title: "\u5206\u644A\u4EF7",
|
|
961
|
-
align: 'center',
|
|
962
|
-
ellipsis: true,
|
|
963
|
-
width: 70
|
|
964
|
-
}, {
|
|
965
|
-
dataIndex: 'type',
|
|
966
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
967
|
-
align: 'center',
|
|
968
|
-
ellipsis: true,
|
|
969
|
-
width: 100
|
|
970
|
-
}, {
|
|
971
|
-
dataIndex: 'batch',
|
|
972
|
-
title: "\u6279\u6B21\u53F7",
|
|
973
|
-
align: 'center',
|
|
974
|
-
ellipsis: true,
|
|
975
|
-
width: 100
|
|
976
|
-
}, {
|
|
977
|
-
dataIndex: 'expireDate',
|
|
978
|
-
title: "\u6709\u6548\u671F",
|
|
979
|
-
align: 'center',
|
|
980
|
-
ellipsis: true,
|
|
981
|
-
width: 100
|
|
982
|
-
}];
|
|
983
|
-
break;
|
|
984
902
|
default:
|
|
985
903
|
columns = [{
|
|
986
904
|
dataIndex: 'mark',
|
|
@@ -1231,7 +1149,6 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1231
1149
|
// },
|
|
1232
1150
|
],
|
|
1233
1151
|
|
|
1234
|
-
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
1235
1152
|
WLN_SYSTEM_ORDER: [{
|
|
1236
1153
|
dataIndex: 'billType',
|
|
1237
1154
|
title: '单据类型'
|
|
@@ -1322,7 +1239,6 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1322
1239
|
};
|
|
1323
1240
|
var rowKeyMap = {
|
|
1324
1241
|
BS_SYSTEM_ORDER: 'billNo',
|
|
1325
|
-
KM_SYSTEM_ORDER: 'billNo',
|
|
1326
1242
|
WLN_SYSTEM_ORDER: 'billNo',
|
|
1327
1243
|
WDT_SYSTEM_ORDER: 'billNo',
|
|
1328
1244
|
BS_E3_SYSTEM_ORDER: 'orderSn'
|
|
@@ -1373,7 +1289,6 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1373
1289
|
_ref14$options = _ref14.options,
|
|
1374
1290
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
1375
1291
|
var msgTypeCh = {
|
|
1376
|
-
pdd: '拼多多',
|
|
1377
1292
|
ding: '钉钉',
|
|
1378
1293
|
wechat: '微信',
|
|
1379
1294
|
qq: 'QQ',
|
|
@@ -1418,7 +1333,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1418
1333
|
var key = item.msgType || 'ding';
|
|
1419
1334
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
1420
1335
|
key: index
|
|
1421
|
-
}, msgTypeCh[key]
|
|
1336
|
+
}, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
1422
1337
|
return /*#__PURE__*/React.createElement("div", {
|
|
1423
1338
|
key: "wrap_".concat(index),
|
|
1424
1339
|
style: {
|
|
@@ -74,32 +74,6 @@ var typeMap = {
|
|
|
74
74
|
valueKey: 'status',
|
|
75
75
|
idKey: 'systemOrderId',
|
|
76
76
|
failValue: '失败'
|
|
77
|
-
},
|
|
78
|
-
BS_E3_WAREHOUSING_STATUS: {
|
|
79
|
-
options: [{
|
|
80
|
-
value: '2',
|
|
81
|
-
label: '已入库',
|
|
82
|
-
color: '#52c41a'
|
|
83
|
-
}, {
|
|
84
|
-
value: '1',
|
|
85
|
-
label: '部分入库',
|
|
86
|
-
color: '#e7780f'
|
|
87
|
-
}, {
|
|
88
|
-
value: '0',
|
|
89
|
-
label: '未入库',
|
|
90
|
-
color: '#ff4d4f'
|
|
91
|
-
}, {
|
|
92
|
-
value: '3',
|
|
93
|
-
label: '已退回给客户',
|
|
94
|
-
color: '#1B5BF3'
|
|
95
|
-
}],
|
|
96
|
-
key: 'bsE3InStockStatusItemList',
|
|
97
|
-
code: 'bsE3InStockStatusList',
|
|
98
|
-
name: '商品入库状态',
|
|
99
|
-
type: 2,
|
|
100
|
-
valueKey: 'status',
|
|
101
|
-
idKey: 'systemOrderId',
|
|
102
|
-
failValue: '失败'
|
|
103
77
|
}
|
|
104
78
|
};
|
|
105
79
|
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
@@ -198,11 +172,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
198
172
|
_defineProperty(this, "filterConfig", function (item) {
|
|
199
173
|
var _typeMap$_this$type19, _item$templateConfig;
|
|
200
174
|
return {
|
|
201
|
-
searchDefaultConditions:
|
|
175
|
+
searchDefaultConditions: _this.type === 'WAREHOUSING_STATUS' ? SYMBOL.in : SYMBOL.like,
|
|
202
176
|
type: item.type,
|
|
203
177
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code),
|
|
204
178
|
name: "".concat(_this.name),
|
|
205
|
-
filterComponentType:
|
|
179
|
+
filterComponentType: _this.type === 'WAREHOUSING_STATUS' ? 'MultipleSelect' : 'SelectInput',
|
|
206
180
|
props: {
|
|
207
181
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
208
182
|
fieldNames: {
|
|
@@ -216,7 +190,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
216
190
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.code), value);
|
|
217
191
|
};
|
|
218
192
|
},
|
|
219
|
-
formatFilterValue:
|
|
193
|
+
formatFilterValue: _this.type === 'WAREHOUSING_STATUS' ? null : function (value) {
|
|
220
194
|
if (value.type === 'keywords') {
|
|
221
195
|
return value.keywords;
|
|
222
196
|
} else {
|
|
@@ -57,12 +57,12 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
57
57
|
name: "物流公司",
|
|
58
58
|
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
|
|
59
59
|
options: _this.expressDateInstance.getExpressData(),
|
|
60
|
-
dataType: "
|
|
60
|
+
dataType: "string",
|
|
61
61
|
disabled: type === "logisticsCode"
|
|
62
62
|
}, {
|
|
63
63
|
name: "物流单号",
|
|
64
64
|
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
|
|
65
|
-
dataType: "
|
|
65
|
+
dataType: "string",
|
|
66
66
|
disabled: type === "logisticsCompany"
|
|
67
67
|
}];
|
|
68
68
|
});
|
|
@@ -121,7 +121,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
121
121
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
122
122
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
123
123
|
required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
|
|
124
|
-
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip :
|
|
124
|
+
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip : '',
|
|
125
125
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
126
126
|
type: 1,
|
|
127
127
|
options: _this.expressDateInstance.getExpressData(),
|
|
@@ -43,13 +43,6 @@ var typeMap = {
|
|
|
43
43
|
sendName: "wlnSendName",
|
|
44
44
|
platformType: 'default'
|
|
45
45
|
},
|
|
46
|
-
KM_SEND_GOOD: {
|
|
47
|
-
key: "kmSendGood",
|
|
48
|
-
name: "km",
|
|
49
|
-
sendId: "kmSendId",
|
|
50
|
-
sendName: "kmSendName",
|
|
51
|
-
platformType: 'km'
|
|
52
|
-
},
|
|
53
46
|
WDT_SEND_GOOD: {
|
|
54
47
|
key: "wdtSendGood",
|
|
55
48
|
name: "wdt",
|
|
@@ -39,15 +39,10 @@ var typeMap = {
|
|
|
39
39
|
label: '等待执行',
|
|
40
40
|
color: '#e7780f'
|
|
41
41
|
}, {
|
|
42
|
-
oldValue: '
|
|
42
|
+
oldValue: '等待发送',
|
|
43
43
|
value: '不满足条件,无需执行',
|
|
44
44
|
label: '不满足条件,无需执行',
|
|
45
45
|
color: '#8A8A8A'
|
|
46
|
-
}, {
|
|
47
|
-
oldValue: '暂不满足条件,等待执行',
|
|
48
|
-
value: '暂不满足条件,等待执行',
|
|
49
|
-
label: '暂不满足条件,等待执行',
|
|
50
|
-
color: '#4D90F7'
|
|
51
46
|
}],
|
|
52
47
|
key: 'msgStatusValues',
|
|
53
48
|
code: 'msgStatus4Search',
|
|
@@ -60,7 +55,6 @@ var typeMap = {
|
|
|
60
55
|
}
|
|
61
56
|
};
|
|
62
57
|
var msgTypeCh = {
|
|
63
|
-
pdd: '拼多多',
|
|
64
58
|
ding: '钉钉',
|
|
65
59
|
wechat: '微信',
|
|
66
60
|
qq: 'QQ',
|
|
@@ -140,7 +134,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
140
134
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
141
135
|
});
|
|
142
136
|
var key = item.msgType || 'ding';
|
|
143
|
-
return "".concat(msgTypeCh[key]
|
|
137
|
+
return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '');
|
|
144
138
|
}).join(',');
|
|
145
139
|
});
|
|
146
140
|
_defineProperty(this, "editRender", function (p) {
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
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) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | JstLogistics | JstSendGood | MsgStatus | BasicRadio | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | 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 | Payment | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, 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, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -130,7 +130,6 @@ export var factory = function factory(type, options) {
|
|
|
130
130
|
case "JST_SUPPLY":
|
|
131
131
|
return new JstSupply(options);
|
|
132
132
|
case "BS_SYSTEM_ORDER":
|
|
133
|
-
case "KM_SYSTEM_ORDER":
|
|
134
133
|
case "WLN_SYSTEM_ORDER":
|
|
135
134
|
case "WDT_SYSTEM_ORDER":
|
|
136
135
|
case "BS_E3_SYSTEM_ORDER":
|
|
@@ -140,7 +139,6 @@ export var factory = function factory(type, options) {
|
|
|
140
139
|
case "BS_E3_SEND_GOOD":
|
|
141
140
|
case "WLN_SEND_GOOD":
|
|
142
141
|
case "WDT_SEND_GOOD":
|
|
143
|
-
case "KM_SEND_GOOD":
|
|
144
142
|
return new JstSendGood(options);
|
|
145
143
|
case "BS_POSTING":
|
|
146
144
|
return new BsPosting(options);
|
|
@@ -187,7 +185,6 @@ export var factory = function factory(type, options) {
|
|
|
187
185
|
case "RETURN_GOODS_STATUS":
|
|
188
186
|
case "EXCHANGE_STATUS":
|
|
189
187
|
case "WAREHOUSING_STATUS":
|
|
190
|
-
case "BS_E3_WAREHOUSING_STATUS":
|
|
191
188
|
return new CommonMultiStatus(options);
|
|
192
189
|
case "MSG_STATUS":
|
|
193
190
|
return new MsgStatus(options);
|
|
@@ -225,8 +222,9 @@ export var factory = function factory(type, options) {
|
|
|
225
222
|
return new PaymentVoucherCode(options);
|
|
226
223
|
case "LABEL":
|
|
227
224
|
return new Label(options);
|
|
228
|
-
|
|
229
|
-
|
|
225
|
+
case "KM_SEND_GOOD":
|
|
226
|
+
// 快麦ERP发货仓
|
|
227
|
+
return new KmErpSendGood(options);
|
|
230
228
|
case "AFTER_SALES_ORDER_ID":
|
|
231
229
|
// 售后单ID
|
|
232
230
|
return new AfterSalesOrderId(options);
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export declare type FilterConfigType = {
|
|
|
29
29
|
};
|
|
30
30
|
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput";
|
|
31
31
|
export interface ComponentInterface {
|
|
32
|
-
transformValue?: (val: any) => any;
|
|
33
32
|
id: string;
|
|
34
33
|
sortField: string;
|
|
35
34
|
sortChildField?: {
|
|
@@ -270,7 +269,7 @@ export interface ComponentInterface {
|
|
|
270
269
|
getComponentValue: (r: Record) => any;
|
|
271
270
|
formDataTransform?: (r: any) => any;
|
|
272
271
|
}
|
|
273
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey"
|
|
272
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey">;
|
|
274
273
|
export declare type ColumnConfig = {
|
|
275
274
|
id: string;
|
|
276
275
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.2",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
+
"sync": "yarn build && yalc push",
|
|
10
11
|
"build": "yarn run lint && father build",
|
|
11
12
|
"lint": "eslint '**/*.{ts,tsx}'",
|
|
12
|
-
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
13
|
-
"sync": "yarn build && yalc push"
|
|
13
|
+
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
14
14
|
},
|
|
15
15
|
"lint-staged": {
|
|
16
16
|
"*.{js,jsx,less,md,json}": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.22.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.22.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.22.2",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.22.2",
|
|
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": "5540cfeb14218b9454d3b133f2cf4f272a6a6ca7",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|