@kmkf-fe-packages/services-components 2.8.0 → 2.8.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/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +10 -9
- package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
- 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/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
- package/dist/esm/components/Common/dist/index.js +1019 -0
- package/dist/esm/components/CommonHeaderGood/index.js +166 -4
- package/dist/esm/components/CommonMultiStatus/index.js +27 -4
- package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
- package/dist/esm/components/JST/JstSendGood/index.js +50 -18
- package/dist/esm/components/Public/Goods/index.js +4 -0
- package/dist/esm/components/Public/ReissueGoods/index.js +18 -0
- package/dist/esm/components/StatusSelect/index.js +4 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +9 -4
- package/dist/esm/type.d.ts +4 -3
- package/package.json +4 -4
|
@@ -1407,8 +1407,8 @@ var GoodHeaderMap = {
|
|
|
1407
1407
|
name: "商品名称",
|
|
1408
1408
|
width: 250
|
|
1409
1409
|
},
|
|
1410
|
-
|
|
1411
|
-
name: "
|
|
1410
|
+
wlnSkuName: {
|
|
1411
|
+
name: "sku名称",
|
|
1412
1412
|
width: 250
|
|
1413
1413
|
},
|
|
1414
1414
|
skuCode: {
|
|
@@ -1436,7 +1436,7 @@ var GoodHeaderMap = {
|
|
|
1436
1436
|
width: 100,
|
|
1437
1437
|
component: BsHeaderPic
|
|
1438
1438
|
},
|
|
1439
|
-
|
|
1439
|
+
olnItemCode: {
|
|
1440
1440
|
name: "线上商品编码",
|
|
1441
1441
|
width: 150
|
|
1442
1442
|
},
|
|
@@ -1457,12 +1457,146 @@ var GoodHeaderMap = {
|
|
|
1457
1457
|
width: 100
|
|
1458
1458
|
},
|
|
1459
1459
|
share: "应收款",
|
|
1460
|
+
discountedUnitPrice: {
|
|
1461
|
+
name: "折后单价",
|
|
1462
|
+
width: 250
|
|
1463
|
+
},
|
|
1464
|
+
price: {
|
|
1465
|
+
name: "单价",
|
|
1466
|
+
width: 250
|
|
1467
|
+
},
|
|
1468
|
+
receivable: {
|
|
1469
|
+
name: "销售金额",
|
|
1470
|
+
width: 250
|
|
1471
|
+
},
|
|
1460
1472
|
type: {
|
|
1461
1473
|
name: "赠品类型",
|
|
1462
|
-
width: 100
|
|
1474
|
+
width: 100,
|
|
1475
|
+
transformValue: function transformValue(val) {
|
|
1476
|
+
if (isNull(val)) return "--";
|
|
1477
|
+
return val ? "赠品" : "非赠品";
|
|
1478
|
+
},
|
|
1479
|
+
renderExport: function renderExport(val) {
|
|
1480
|
+
if (isNull(val)) return "--";
|
|
1481
|
+
return val ? "赠品" : "非赠品";
|
|
1482
|
+
}
|
|
1463
1483
|
},
|
|
1464
1484
|
isPackage: {
|
|
1485
|
+
width: 200,
|
|
1486
|
+
name: "是否组合商品",
|
|
1487
|
+
transformValue: function transformValue(val) {
|
|
1488
|
+
if (isNull(val)) return "--";
|
|
1489
|
+
return val ? "是" : "否";
|
|
1490
|
+
},
|
|
1491
|
+
renderExport: function renderExport(val) {
|
|
1492
|
+
if (isNull(val)) return "--";
|
|
1493
|
+
return val ? "是" : "否";
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
hasRefund: {
|
|
1465
1497
|
width: 100,
|
|
1498
|
+
name: "是否退款",
|
|
1499
|
+
transformValue: function transformValue(val) {
|
|
1500
|
+
if (isNull(val)) return "--";
|
|
1501
|
+
return val ? "是" : "否";
|
|
1502
|
+
},
|
|
1503
|
+
renderExport: function renderExport(val) {
|
|
1504
|
+
if (isNull(val)) return "--";
|
|
1505
|
+
return val ? "是" : "否";
|
|
1506
|
+
}
|
|
1507
|
+
},
|
|
1508
|
+
unit: {
|
|
1509
|
+
name: "单位",
|
|
1510
|
+
width: 100
|
|
1511
|
+
},
|
|
1512
|
+
pkgGoodsName: {
|
|
1513
|
+
name: "原组合商品名称",
|
|
1514
|
+
width: 200
|
|
1515
|
+
},
|
|
1516
|
+
pkgGoodsCode: {
|
|
1517
|
+
name: "原组合商品编码",
|
|
1518
|
+
width: 200
|
|
1519
|
+
},
|
|
1520
|
+
pkgGoodsId: {
|
|
1521
|
+
name: "原组合商品id",
|
|
1522
|
+
width: 200
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
moneyKey: "money"
|
|
1526
|
+
},
|
|
1527
|
+
WLN_REISSUE_GOODS: {
|
|
1528
|
+
headerMap: {
|
|
1529
|
+
wlnItemName: {
|
|
1530
|
+
name: "商品名称",
|
|
1531
|
+
width: 250
|
|
1532
|
+
},
|
|
1533
|
+
wlnSkuName: {
|
|
1534
|
+
name: "sku名称",
|
|
1535
|
+
width: 250
|
|
1536
|
+
},
|
|
1537
|
+
skuCode: {
|
|
1538
|
+
name: "sku编码",
|
|
1539
|
+
width: 250
|
|
1540
|
+
},
|
|
1541
|
+
skuName: {
|
|
1542
|
+
name: "线上sku名称",
|
|
1543
|
+
width: 250
|
|
1544
|
+
},
|
|
1545
|
+
olnSkuCode: {
|
|
1546
|
+
name: "线上sku编码",
|
|
1547
|
+
width: 150
|
|
1548
|
+
},
|
|
1549
|
+
sku: {
|
|
1550
|
+
name: "线上sku id",
|
|
1551
|
+
width: 150
|
|
1552
|
+
},
|
|
1553
|
+
name: {
|
|
1554
|
+
name: "线上商品名称",
|
|
1555
|
+
width: 250
|
|
1556
|
+
},
|
|
1557
|
+
pic: {
|
|
1558
|
+
name: "线上图片",
|
|
1559
|
+
width: 100,
|
|
1560
|
+
component: BsHeaderPic
|
|
1561
|
+
},
|
|
1562
|
+
olnItemCode: {
|
|
1563
|
+
name: "线上商品编码",
|
|
1564
|
+
width: 150
|
|
1565
|
+
},
|
|
1566
|
+
code: {
|
|
1567
|
+
name: "线上商品id",
|
|
1568
|
+
width: 150
|
|
1569
|
+
},
|
|
1570
|
+
barCode: {
|
|
1571
|
+
name: "商品条码",
|
|
1572
|
+
width: 150
|
|
1573
|
+
},
|
|
1574
|
+
price: {
|
|
1575
|
+
name: "单价",
|
|
1576
|
+
width: 250
|
|
1577
|
+
},
|
|
1578
|
+
number: {
|
|
1579
|
+
name: "数量",
|
|
1580
|
+
width: 100
|
|
1581
|
+
},
|
|
1582
|
+
money: {
|
|
1583
|
+
name: "实付金额",
|
|
1584
|
+
width: 100
|
|
1585
|
+
},
|
|
1586
|
+
type: {
|
|
1587
|
+
name: "赠品类型",
|
|
1588
|
+
width: 100,
|
|
1589
|
+
transformValue: function transformValue(val) {
|
|
1590
|
+
if (isNull(val)) return "--";
|
|
1591
|
+
return val ? "赠品" : "非赠品";
|
|
1592
|
+
},
|
|
1593
|
+
renderExport: function renderExport(val) {
|
|
1594
|
+
if (isNull(val)) return "--";
|
|
1595
|
+
return val ? "赠品" : "非赠品";
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
isPackage: {
|
|
1599
|
+
width: 200,
|
|
1466
1600
|
name: "是否组合商品",
|
|
1467
1601
|
transformValue: function transformValue(val) {
|
|
1468
1602
|
if (isNull(val)) return "--";
|
|
@@ -1472,6 +1606,34 @@ var GoodHeaderMap = {
|
|
|
1472
1606
|
if (isNull(val)) return "--";
|
|
1473
1607
|
return val ? "是" : "否";
|
|
1474
1608
|
}
|
|
1609
|
+
},
|
|
1610
|
+
hasRefund: {
|
|
1611
|
+
width: 100,
|
|
1612
|
+
name: "是否退款",
|
|
1613
|
+
transformValue: function transformValue(val) {
|
|
1614
|
+
if (isNull(val)) return "--";
|
|
1615
|
+
return val ? "是" : "否";
|
|
1616
|
+
},
|
|
1617
|
+
renderExport: function renderExport(val) {
|
|
1618
|
+
if (isNull(val)) return "--";
|
|
1619
|
+
return val ? "是" : "否";
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
unit: {
|
|
1623
|
+
name: "单位",
|
|
1624
|
+
width: 100
|
|
1625
|
+
},
|
|
1626
|
+
pkgGoodsName: {
|
|
1627
|
+
name: "原组合商品名称",
|
|
1628
|
+
width: 200
|
|
1629
|
+
},
|
|
1630
|
+
pkgGoodsCode: {
|
|
1631
|
+
name: "原组合商品编码",
|
|
1632
|
+
width: 200
|
|
1633
|
+
},
|
|
1634
|
+
pkgGoodsId: {
|
|
1635
|
+
name: "原组合商品id",
|
|
1636
|
+
width: 200
|
|
1475
1637
|
}
|
|
1476
1638
|
},
|
|
1477
1639
|
moneyKey: "money"
|
|
@@ -134,6 +134,29 @@ var typeMap = {
|
|
|
134
134
|
failValue: "失败",
|
|
135
135
|
dataType: "array_object"
|
|
136
136
|
},
|
|
137
|
+
WLN_WAREHOUSING_STATUS: {
|
|
138
|
+
options: [{
|
|
139
|
+
value: "1",
|
|
140
|
+
label: "未入库",
|
|
141
|
+
color: "#ff4d4f"
|
|
142
|
+
}, {
|
|
143
|
+
value: "2",
|
|
144
|
+
label: "部分入库",
|
|
145
|
+
color: "#e7780f"
|
|
146
|
+
}, {
|
|
147
|
+
value: "3",
|
|
148
|
+
label: "已入库",
|
|
149
|
+
color: "#52c41a"
|
|
150
|
+
}],
|
|
151
|
+
key: "wlnInStockStatusItemList",
|
|
152
|
+
code: "wlnInStockStatusList",
|
|
153
|
+
name: "商品入库状态",
|
|
154
|
+
type: 2,
|
|
155
|
+
valueKey: "status",
|
|
156
|
+
idKey: "systemOrderId",
|
|
157
|
+
failValue: "失败",
|
|
158
|
+
dataType: "array_object"
|
|
159
|
+
},
|
|
137
160
|
JKY_WAREHOUSING_STATUS: {
|
|
138
161
|
options: [{
|
|
139
162
|
value: "0",
|
|
@@ -272,11 +295,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
272
295
|
_defineProperty(this, "filterConfig", function (item) {
|
|
273
296
|
var _typeMap$_this$type21, _item$templateConfig;
|
|
274
297
|
return {
|
|
275
|
-
searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
298
|
+
searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
276
299
|
type: item.type,
|
|
277
300
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
|
|
278
301
|
name: "".concat(_this.name),
|
|
279
|
-
filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
|
|
302
|
+
filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
|
|
280
303
|
props: {
|
|
281
304
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
282
305
|
fieldNames: {
|
|
@@ -291,7 +314,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
291
314
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
|
|
292
315
|
};
|
|
293
316
|
},
|
|
294
|
-
formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
|
|
317
|
+
formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
|
|
295
318
|
if (value.type === "in") {
|
|
296
319
|
return value.keywords;
|
|
297
320
|
} else {
|
|
@@ -327,6 +350,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
327
350
|
}
|
|
328
351
|
}] : [];
|
|
329
352
|
this.align = "left";
|
|
330
|
-
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
|
|
353
|
+
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "WLN_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
|
|
331
354
|
});
|
|
332
355
|
export default CommonMultiStatus;
|
|
@@ -29,6 +29,16 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
29
29
|
renderExport: (value: any, record: any) => any;
|
|
30
30
|
editRender: (p: any) => React.JSX.Element;
|
|
31
31
|
filterConfig: (item: ColumnConfig) => ({
|
|
32
|
+
searchDefaultConditions: "like";
|
|
33
|
+
type: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
filterComponentType: "TagsSelect";
|
|
37
|
+
props: {
|
|
38
|
+
options: any[];
|
|
39
|
+
};
|
|
40
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
41
|
+
} | {
|
|
32
42
|
searchDefaultConditions: "in";
|
|
33
43
|
type: string;
|
|
34
44
|
id: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
var _excluded = ["label", "value"];
|
|
1
2
|
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); }
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
7
|
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
8
|
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
9
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -44,7 +49,7 @@ var typeMap = {
|
|
|
44
49
|
name: "wln",
|
|
45
50
|
sendId: "wlnSendId",
|
|
46
51
|
sendName: "wlnSendName",
|
|
47
|
-
platformType: "
|
|
52
|
+
platformType: "wln",
|
|
48
53
|
dataType: "arrayObject"
|
|
49
54
|
},
|
|
50
55
|
KM_SEND_GOOD: {
|
|
@@ -191,38 +196,65 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
191
196
|
});
|
|
192
197
|
});
|
|
193
198
|
_defineProperty(this, "filterConfig", function (item) {
|
|
194
|
-
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$
|
|
195
|
-
return [["
|
|
196
|
-
searchDefaultConditions: SYMBOL.
|
|
199
|
+
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type12;
|
|
200
|
+
return [["WLN_SEND_GOOD"].includes(_this.type) ? {
|
|
201
|
+
searchDefaultConditions: SYMBOL.like,
|
|
197
202
|
type: item.type,
|
|
198
203
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
199
204
|
name: "".concat(_this.name, "-\u540D\u79F0"),
|
|
200
|
-
filterComponentType: "
|
|
205
|
+
filterComponentType: "TagsSelect",
|
|
201
206
|
props: {
|
|
202
|
-
options: SendDataCenter.getInstance(item.type).getSendData()
|
|
207
|
+
options: SendDataCenter.getInstance(item.type).getSendData().map(function (_ref) {
|
|
208
|
+
var label = _ref.label,
|
|
209
|
+
value = _ref.value,
|
|
210
|
+
other = _objectWithoutProperties(_ref, _excluded);
|
|
211
|
+
return _objectSpread(_objectSpread({}, other), {}, {
|
|
212
|
+
label: label,
|
|
213
|
+
value: label
|
|
214
|
+
});
|
|
215
|
+
})
|
|
203
216
|
},
|
|
204
217
|
filterFn: function filterFn(value) {
|
|
205
218
|
return function (i) {
|
|
206
|
-
var
|
|
207
|
-
return (
|
|
219
|
+
var _ref2;
|
|
220
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
208
221
|
var _String;
|
|
209
222
|
var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
210
223
|
return sendName;
|
|
211
224
|
});
|
|
212
225
|
};
|
|
213
226
|
}
|
|
227
|
+
} : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
|
|
228
|
+
searchDefaultConditions: SYMBOL.in,
|
|
229
|
+
type: item.type,
|
|
230
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
|
|
231
|
+
name: "".concat(_this.name, "-\u540D\u79F0"),
|
|
232
|
+
filterComponentType: "MultipleSelect",
|
|
233
|
+
props: {
|
|
234
|
+
options: SendDataCenter.getInstance(item.type).getSendData()
|
|
235
|
+
},
|
|
236
|
+
filterFn: function filterFn(value) {
|
|
237
|
+
return function (i) {
|
|
238
|
+
var _ref3;
|
|
239
|
+
return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
|
|
240
|
+
var _String2;
|
|
241
|
+
var sendName = item ? (_String2 = String(item)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
242
|
+
return sendName;
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
}
|
|
214
246
|
} : {
|
|
215
247
|
searchDefaultConditions: SYMBOL.like,
|
|
216
248
|
type: item.type,
|
|
217
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
249
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.sendName),
|
|
218
250
|
name: "".concat(_this.name, "-\u540D\u79F0"),
|
|
219
251
|
filterComponentType: "Input",
|
|
220
252
|
filterFn: function filterFn(value) {
|
|
221
253
|
return function (i) {
|
|
222
|
-
var
|
|
223
|
-
return (
|
|
224
|
-
var
|
|
225
|
-
var name = item !== null && item !== void 0 && item.sendName ? (
|
|
254
|
+
var _ref4, _typeMap$_this$type11;
|
|
255
|
+
return (_ref4 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.key) || []) === null || _ref4 === void 0 ? void 0 : _ref4.some(function (item) {
|
|
256
|
+
var _String3;
|
|
257
|
+
var name = item !== null && item !== void 0 && item.sendName ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
|
|
226
258
|
return name;
|
|
227
259
|
});
|
|
228
260
|
};
|
|
@@ -230,15 +262,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
230
262
|
}, {
|
|
231
263
|
searchDefaultConditions: SYMBOL.like,
|
|
232
264
|
type: item.type,
|
|
233
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
265
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.sendId),
|
|
234
266
|
name: "".concat(_this.name, "-\u7F16\u7801"),
|
|
235
267
|
filterComponentType: "Input",
|
|
236
268
|
filterFn: function filterFn(value) {
|
|
237
269
|
return function (i) {
|
|
238
|
-
var
|
|
239
|
-
return (
|
|
240
|
-
var
|
|
241
|
-
var id = item !== null && item !== void 0 && item.sendId ? (
|
|
270
|
+
var _ref5, _typeMap$_this$type13;
|
|
271
|
+
return (_ref5 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.key) || []) === null || _ref5 === void 0 ? void 0 : _ref5.some(function (item) {
|
|
272
|
+
var _String4;
|
|
273
|
+
var id = item !== null && item !== void 0 && item.sendId ? (_String4 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String4 === void 0 ? void 0 : _String4.includes(value) : false;
|
|
242
274
|
return id;
|
|
243
275
|
});
|
|
244
276
|
};
|
|
@@ -128,6 +128,24 @@ var typeMap = {
|
|
|
128
128
|
}
|
|
129
129
|
return Promise.resolve();
|
|
130
130
|
}
|
|
131
|
+
},
|
|
132
|
+
WLN_REISSUE_GOODS: {
|
|
133
|
+
key: "wlnReissueGoods",
|
|
134
|
+
typeName: "wlnReissueType",
|
|
135
|
+
remark: "wlnReissueType_memo",
|
|
136
|
+
systemOrderNo: "wlnSystemOrderNo",
|
|
137
|
+
systemOrderBillType: "wlnSystemOrderBillType",
|
|
138
|
+
errMsg: "请选择万里牛补发商品",
|
|
139
|
+
name: "万里牛",
|
|
140
|
+
compType: "补发",
|
|
141
|
+
validator: function validator(_rule, value, type) {
|
|
142
|
+
if (!_rule.required) return Promise.resolve();
|
|
143
|
+
var validatorFlag = erpFormValidator(_rule, value, type);
|
|
144
|
+
if (validatorFlag) {
|
|
145
|
+
return validatorFlag;
|
|
146
|
+
}
|
|
147
|
+
return Promise.resolve();
|
|
148
|
+
}
|
|
131
149
|
}
|
|
132
150
|
};
|
|
133
151
|
var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
|
|
@@ -48,6 +48,10 @@ var selectTypeMap = {
|
|
|
48
48
|
key: "erpAfterSaleStatusValue",
|
|
49
49
|
info: "erpAfterSaleStatusReason"
|
|
50
50
|
}),
|
|
51
|
+
ERP_AFTER_SALES_ORDER_REVIEW_STATUS: getSelectTypeAttribute({
|
|
52
|
+
key: "erpAfterSalesOrderReviewStatusValue",
|
|
53
|
+
info: "erpAfterSalesOrderReviewStatusReason"
|
|
54
|
+
}),
|
|
51
55
|
INVOICING_STATUS: getSelectTypeAttribute({
|
|
52
56
|
key: "invoicingStatusValue",
|
|
53
57
|
info: "invoicingReason",
|
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,
|
|
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) => BsLogistics | BsSystemOrder | CommonMultiStatus | JstSendGood | PublicGoods | PublicReissueGoods | StatusSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | 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 | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | 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/factory.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
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,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration,
|
|
4
|
+
// WlnGoods,
|
|
5
|
+
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";
|
|
4
6
|
export var factory = function factory(type, options) {
|
|
5
7
|
var _options$componentCon;
|
|
6
8
|
switch (type) {
|
|
@@ -173,9 +175,11 @@ export var factory = function factory(type, options) {
|
|
|
173
175
|
case "JKY_GOODS":
|
|
174
176
|
case "KM_GOODS":
|
|
175
177
|
case "JST_GOODS":
|
|
178
|
+
case "WLN_GOODS":
|
|
176
179
|
case "WDT_AFTERSALE_GOODS":
|
|
177
180
|
case "JST_AFTERSALE_GOODS":
|
|
178
181
|
return new PublicGoods(options);
|
|
182
|
+
case "WLN_REISSUE_GOODS":
|
|
179
183
|
case "JST_REISSUE_GOODS":
|
|
180
184
|
case "KM_REISSUE_GOODS":
|
|
181
185
|
case "KM_RETURN_GOODS":
|
|
@@ -238,6 +242,7 @@ export var factory = function factory(type, options) {
|
|
|
238
242
|
case "AGREE_REFUND_STATUS":
|
|
239
243
|
case "REJECT_REFUND_STATUS":
|
|
240
244
|
case "ERP_AFTER_SALE_STATUS":
|
|
245
|
+
case "ERP_AFTER_SALES_ORDER_REVIEW_STATUS":
|
|
241
246
|
case "AGREE_RETURN_GOODS_STATUS":
|
|
242
247
|
case "REJECT_RETURN_GOODS_STATUS":
|
|
243
248
|
case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
|
|
@@ -248,6 +253,7 @@ export var factory = function factory(type, options) {
|
|
|
248
253
|
case "WAREHOUSING_STATUS":
|
|
249
254
|
case "BS_E3_WAREHOUSING_STATUS":
|
|
250
255
|
case "WDT_WAREHOUSING_STATUS":
|
|
256
|
+
case "WLN_WAREHOUSING_STATUS":
|
|
251
257
|
case "JKY_WAREHOUSING_STATUS":
|
|
252
258
|
return new CommonMultiStatus(options);
|
|
253
259
|
case "MSG_STATUS":
|
|
@@ -268,9 +274,8 @@ export var factory = function factory(type, options) {
|
|
|
268
274
|
case "NODE_STAY_DURATION_INPUT":
|
|
269
275
|
// 工单停留时长
|
|
270
276
|
return new NodeStayDuration(options);
|
|
271
|
-
case "WLN_GOODS":
|
|
272
|
-
|
|
273
|
-
return new WlnGoods(options);
|
|
277
|
+
// case "WLN_GOODS": // 万里牛商品
|
|
278
|
+
// return new WlnGoods(options);
|
|
274
279
|
case "NODE_INPUT":
|
|
275
280
|
return new NodeInput(options);
|
|
276
281
|
case "FLOW_WORK_STATUS_SELECT":
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -33,9 +33,9 @@ export declare type FilterConfigType = {
|
|
|
33
33
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
34
34
|
formatFilterValue?: (p: any) => any;
|
|
35
35
|
};
|
|
36
|
-
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput" | "AsyncSelect";
|
|
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.8.
|
|
3
|
+
"version": "2.8.2",
|
|
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.8.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.8.2",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.8.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": "b7bc80812144c4b60e2a8f7912f5df13d5a610bc",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|