@kmkf-fe-packages/services-components 2.7.7-beta.0 → 2.8.0

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.
@@ -23,7 +23,7 @@ function useGetErpSendData(reduxData, notJudgedErp) {
23
23
  }, [hasErpData, notJudgedErp]);
24
24
  var asyncQueryData = /*#__PURE__*/function () {
25
25
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(hasErpData, notJudgedErp, isReload) {
26
- var hasWdt, hasGy, hasJst, hasJy, hasJky, hasWln, promises;
26
+ var hasWdt, hasGy, hasJst, hasJy, hasJky, promises;
27
27
  return _regeneratorRuntime().wrap(function _callee$(_context) {
28
28
  while (1) switch (_context.prev = _context.next) {
29
29
  case 0:
@@ -31,31 +31,30 @@ function useGetErpSendData(reduxData, notJudgedErp) {
31
31
  setGlobalState("loading");
32
32
  }
33
33
  _context.prev = 1;
34
- hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky, hasWln = hasErpData.hasWln;
34
+ hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky;
35
35
  promises = [];
36
36
  if (hasWdt || notJudgedErp) promises.push(SendDataCenter.getInstance("wdt").fetchData);
37
37
  if (hasGy || notJudgedErp) promises.push(SendDataCenter.getInstance("gy").fetchData);
38
38
  if (hasJst || notJudgedErp) promises.push(SendDataCenter.getInstance("jst").fetchData);
39
39
  if (hasJy || notJudgedErp) promises.push(SendDataCenter.getInstance("jy").fetchData);
40
40
  if (hasJky || notJudgedErp) promises.push(SendDataCenter.getInstance("jky").fetchData);
41
- if (hasWln || notJudgedErp) promises.push(SendDataCenter.getInstance("wln").fetchData);
42
- _context.next = 12;
41
+ _context.next = 11;
43
42
  return Promise.all(promises.map(function (promise) {
44
43
  return promise();
45
44
  }));
46
- case 12:
45
+ case 11:
47
46
  setGlobalState("success");
48
- _context.next = 18;
47
+ _context.next = 17;
49
48
  break;
50
- case 15:
51
- _context.prev = 15;
49
+ case 14:
50
+ _context.prev = 14;
52
51
  _context.t0 = _context["catch"](1);
53
52
  setGlobalState("failed");
54
- case 18:
53
+ case 17:
55
54
  case "end":
56
55
  return _context.stop();
57
56
  }
58
- }, _callee, null, [[1, 15]]);
57
+ }, _callee, null, [[1, 14]]);
59
58
  }));
60
59
  return function asyncQueryData(_x2, _x3, _x4) {
61
60
  return _ref.apply(this, arguments);
@@ -28,8 +28,7 @@ var componentType = {
28
28
  KM_REISSUE_GOODS: "kmReissueType",
29
29
  KM_RETURN_GOODS: "kmReturnType",
30
30
  JY_REISSUE_GOODS: "jyReissueType",
31
- JKY_REISSUE_GOODS: "jkyReissueType",
32
- WLN_REISSUE_GOODS: "wlnReissueType"
31
+ JKY_REISSUE_GOODS: "jkyReissueType"
33
32
  };
34
33
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
35
34
  var _this = this;
@@ -29,8 +29,7 @@ var componentType = {
29
29
  KM_REISSUE_GOODS: "kmReissueType",
30
30
  KM_RETURN_GOODS: "kmReturnType",
31
31
  JY_REISSUE_GOODS: "jyReissueType",
32
- JKY_REISSUE_GOODS: "jkyReissueType",
33
- WLN_REISSUE_GOODS: "wlnReissueType"
32
+ JKY_REISSUE_GOODS: "jkyReissueType"
34
33
  };
35
34
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
36
35
  var _this = this;
@@ -24,8 +24,7 @@ var componentType = {
24
24
  KM_REISSUE_GOODS: "kmSystemOrderNo",
25
25
  KM_RETURN_GOODS: "kmSystemOrderNo",
26
26
  JY_REISSUE_GOODS: "jySystemOrderNo",
27
- JKY_REISSUE_GOODS: "jkySystemOrderNo",
28
- WLN_REISSUE_GOODS: "wlnSystemOrderNo"
27
+ JKY_REISSUE_GOODS: "jkySystemOrderNo"
29
28
  };
30
29
  var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
31
30
  var _this = this;
@@ -1411,10 +1411,6 @@ var GoodHeaderMap = {
1411
1411
  name: "商品编码",
1412
1412
  width: 250
1413
1413
  },
1414
- wlnSkuName: {
1415
- name: "sku名称",
1416
- width: 250
1417
- },
1418
1414
  skuCode: {
1419
1415
  name: "sku编码",
1420
1416
  width: 250
@@ -1461,132 +1457,6 @@ var GoodHeaderMap = {
1461
1457
  width: 100
1462
1458
  },
1463
1459
  share: "应收款",
1464
- discountedUnitPrice: {
1465
- name: "折后单价",
1466
- width: 250
1467
- },
1468
- originPrice: {
1469
- name: "原价",
1470
- width: 250
1471
- },
1472
- price: {
1473
- name: "单价",
1474
- width: 250
1475
- },
1476
- receivable: {
1477
- name: "销售金额",
1478
- width: 250
1479
- },
1480
- type: {
1481
- name: "赠品类型",
1482
- width: 100
1483
- },
1484
- isPackage: {
1485
- width: 100,
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: {
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
- goodsCode: {
1534
- name: "商品编码",
1535
- width: 250
1536
- },
1537
- wlnSkuName: {
1538
- name: "sku名称",
1539
- width: 250
1540
- },
1541
- skuCode: {
1542
- name: "sku编码",
1543
- width: 250
1544
- },
1545
- skuName: {
1546
- name: "线上sku名称",
1547
- width: 250
1548
- },
1549
- olnSkuCode: {
1550
- name: "线上sku编码",
1551
- width: 150
1552
- },
1553
- sku: {
1554
- name: "线上sku id",
1555
- width: 150
1556
- },
1557
- name: {
1558
- name: "线上商品名称",
1559
- width: 250
1560
- },
1561
- pic: {
1562
- name: "线上图片",
1563
- width: 100,
1564
- component: BsHeaderPic
1565
- },
1566
- olnItemCOde: {
1567
- name: "线上商品编码",
1568
- width: 150
1569
- },
1570
- code: {
1571
- name: "线上商品id",
1572
- width: 150
1573
- },
1574
- barCode: {
1575
- name: "商品条码",
1576
- width: 150
1577
- },
1578
- price: {
1579
- name: "单价",
1580
- width: 250
1581
- },
1582
- number: {
1583
- name: "数量",
1584
- width: 100
1585
- },
1586
- outPrice: {
1587
- name: "实付金额",
1588
- width: 100
1589
- },
1590
1460
  type: {
1591
1461
  name: "赠品类型",
1592
1462
  width: 100
@@ -1602,34 +1472,6 @@ var GoodHeaderMap = {
1602
1472
  if (isNull(val)) return "--";
1603
1473
  return val ? "是" : "否";
1604
1474
  }
1605
- },
1606
- hasRefund: {
1607
- width: 100,
1608
- name: "是否退款",
1609
- transformValue: function transformValue(val) {
1610
- if (isNull(val)) return "--";
1611
- return val ? "是" : "否";
1612
- },
1613
- renderExport: function renderExport(val) {
1614
- if (isNull(val)) return "--";
1615
- return val ? "是" : "否";
1616
- }
1617
- },
1618
- unit: {
1619
- name: "单位",
1620
- width: 100
1621
- },
1622
- pkgGoodsName: {
1623
- name: "原组合商品名称",
1624
- width: 200
1625
- },
1626
- pkgGoodsCode: {
1627
- name: "原组合商品编码",
1628
- width: 200
1629
- },
1630
- pkgGoodsId: {
1631
- name: "原组合商品id",
1632
- width: 200
1633
1475
  }
1634
1476
  },
1635
1477
  moneyKey: "money"
@@ -134,29 +134,6 @@ 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
- },
160
137
  JKY_WAREHOUSING_STATUS: {
161
138
  options: [{
162
139
  value: "0",
@@ -295,11 +272,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
295
272
  _defineProperty(this, "filterConfig", function (item) {
296
273
  var _typeMap$_this$type21, _item$templateConfig;
297
274
  return {
298
- searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
275
+ searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
299
276
  type: item.type,
300
277
  id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
301
278
  name: "".concat(_this.name),
302
- filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
279
+ filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
303
280
  props: {
304
281
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
305
282
  fieldNames: {
@@ -314,7 +291,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
314
291
  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);
315
292
  };
316
293
  },
317
- formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
294
+ formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
318
295
  if (value.type === "in") {
319
296
  return value.keywords;
320
297
  } else {
@@ -350,6 +327,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
350
327
  }
351
328
  }] : [];
352
329
  this.align = "left";
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";
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";
354
331
  });
355
332
  export default CommonMultiStatus;
@@ -29,16 +29,6 @@ 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
- } | {
42
32
  searchDefaultConditions: "in";
43
33
  type: string;
44
34
  id: string;
@@ -1,9 +1,4 @@
1
- var _excluded = ["label", "value"];
2
1
  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; }
7
2
  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); }
8
3
  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); } }
9
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -49,7 +44,7 @@ var typeMap = {
49
44
  name: "wln",
50
45
  sendId: "wlnSendId",
51
46
  sendName: "wlnSendName",
52
- platformType: "wln",
47
+ platformType: "default",
53
48
  dataType: "arrayObject"
54
49
  },
55
50
  KM_SEND_GOOD: {
@@ -196,38 +191,11 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
196
191
  });
197
192
  });
198
193
  _defineProperty(this, "filterConfig", function (item) {
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,
202
- type: item.type,
203
- id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
204
- name: "".concat(_this.name, "-\u540D\u79F0"),
205
- filterComponentType: "TagsSelect",
206
- props: {
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
- })
216
- },
217
- filterFn: function filterFn(value) {
218
- return function (i) {
219
- var _ref2;
220
- return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
221
- var _String;
222
- var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
223
- return sendName;
224
- });
225
- };
226
- }
227
- } : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
194
+ var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
195
+ return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
228
196
  searchDefaultConditions: SYMBOL.in,
229
197
  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),
198
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
231
199
  name: "".concat(_this.name, "-\u540D\u79F0"),
232
200
  filterComponentType: "MultipleSelect",
233
201
  props: {
@@ -235,10 +203,10 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
235
203
  },
236
204
  filterFn: function filterFn(value) {
237
205
  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;
206
+ var _ref;
207
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
208
+ var _String;
209
+ var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
242
210
  return sendName;
243
211
  });
244
212
  };
@@ -246,15 +214,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
246
214
  } : {
247
215
  searchDefaultConditions: SYMBOL.like,
248
216
  type: item.type,
249
- id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.sendName),
217
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
250
218
  name: "".concat(_this.name, "-\u540D\u79F0"),
251
219
  filterComponentType: "Input",
252
220
  filterFn: function filterFn(value) {
253
221
  return function (i) {
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;
222
+ var _ref2, _typeMap$_this$type10;
223
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
224
+ var _String2;
225
+ var name = item !== null && item !== void 0 && item.sendName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
258
226
  return name;
259
227
  });
260
228
  };
@@ -262,15 +230,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
262
230
  }, {
263
231
  searchDefaultConditions: SYMBOL.like,
264
232
  type: item.type,
265
- id: "".concat(item.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.sendId),
233
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.sendId),
266
234
  name: "".concat(_this.name, "-\u7F16\u7801"),
267
235
  filterComponentType: "Input",
268
236
  filterFn: function filterFn(value) {
269
237
  return function (i) {
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;
238
+ var _ref3, _typeMap$_this$type12;
239
+ return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.key) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
240
+ var _String3;
241
+ var id = item !== null && item !== void 0 && item.sendId ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
274
242
  return id;
275
243
  });
276
244
  };
@@ -42,10 +42,6 @@ var CONFIG_MAP = {
42
42
  JST_AFTERSALE_GOODS: {
43
43
  name: "jst售后",
44
44
  key: "jstAftersaleGoods"
45
- },
46
- WLN_GOODS: {
47
- name: "万里牛",
48
- key: "wlnGoods"
49
45
  }
50
46
  };
51
47
  var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
@@ -128,24 +128,6 @@ 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
- }
149
131
  }
150
132
  };
151
133
  var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
@@ -48,10 +48,6 @@ 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
- }),
55
51
  INVOICING_STATUS: getSelectTypeAttribute({
56
52
  key: "invoicingStatusValue",
57
53
  info: "invoicingReason",
@@ -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, 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";
1
+ import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | JstSendGood | LogisticsInterception | 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 | BsSystemOrder | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | 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;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | CommonMultiStatus | CommonSystemOrder | JstSendGood | LogisticsInterception | PublicGoods | PublicReissueGoods | 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 | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | 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;
@@ -1,8 +1,6 @@
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,
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";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
6
4
  export var factory = function factory(type, options) {
7
5
  var _options$componentCon;
8
6
  switch (type) {
@@ -175,11 +173,9 @@ export var factory = function factory(type, options) {
175
173
  case "JKY_GOODS":
176
174
  case "KM_GOODS":
177
175
  case "JST_GOODS":
178
- case "WLN_GOODS":
179
176
  case "WDT_AFTERSALE_GOODS":
180
177
  case "JST_AFTERSALE_GOODS":
181
178
  return new PublicGoods(options);
182
- case "WLN_REISSUE_GOODS":
183
179
  case "JST_REISSUE_GOODS":
184
180
  case "KM_REISSUE_GOODS":
185
181
  case "KM_RETURN_GOODS":
@@ -242,7 +238,6 @@ export var factory = function factory(type, options) {
242
238
  case "AGREE_REFUND_STATUS":
243
239
  case "REJECT_REFUND_STATUS":
244
240
  case "ERP_AFTER_SALE_STATUS":
245
- case "ERP_AFTER_SALES_ORDER_REVIEW_STATUS":
246
241
  case "AGREE_RETURN_GOODS_STATUS":
247
242
  case "REJECT_RETURN_GOODS_STATUS":
248
243
  case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
@@ -253,7 +248,6 @@ export var factory = function factory(type, options) {
253
248
  case "WAREHOUSING_STATUS":
254
249
  case "BS_E3_WAREHOUSING_STATUS":
255
250
  case "WDT_WAREHOUSING_STATUS":
256
- case "WLN_WAREHOUSING_STATUS":
257
251
  case "JKY_WAREHOUSING_STATUS":
258
252
  return new CommonMultiStatus(options);
259
253
  case "MSG_STATUS":
@@ -274,8 +268,9 @@ export var factory = function factory(type, options) {
274
268
  case "NODE_STAY_DURATION_INPUT":
275
269
  // 工单停留时长
276
270
  return new NodeStayDuration(options);
277
- // case "WLN_GOODS": // 万里牛商品
278
- // return new WlnGoods(options);
271
+ case "WLN_GOODS":
272
+ // 万里牛商品
273
+ return new WlnGoods(options);
279
274
  case "NODE_INPUT":
280
275
  return new NodeInput(options);
281
276
  case "FLOW_WORK_STATUS_SELECT":
@@ -142,7 +142,6 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
142
142
  SF: "顺丰",
143
143
  ZTO: "中通",
144
144
  JT: "极兔",
145
- STO: "申通",
146
145
  DEFAULT: ""
147
146
  };
148
147
  var expressList = data.map(function (item) {
@@ -211,7 +210,6 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
211
210
  value: _toConsumableArray(typeObj[key]).join(",")
212
211
  };
213
212
  });
214
- console.log("typeObj---", typeObj, instance.typeOptions, companyTypeMap);
215
213
  instance.typeConditionOptions = Object.keys(instance.typeNameMap).map(function (key) {
216
214
  var type = key.split("|")[0];
217
215
  return {
@@ -239,7 +237,6 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
239
237
  }
240
238
  });
241
239
  instance.statusConditionOptions = tempList;
242
- console.log("instance-----2", instance);
243
240
  }).catch(function (e) {
244
241
  console.log(e);
245
242
  });
@@ -33,7 +33,7 @@ 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" | "TagsSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput" | "AsyncSelect";
36
+ export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput" | "AsyncSelect";
37
37
  export interface ComponentInterface {
38
38
  transformValue?: (val: any, record?: any, parentName?: string) => any;
39
39
  id: 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.0",
3
+ "version": "2.8.0",
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.0",
25
- "@kmkf-fe-packages/kmkf-utils": "2.7.7-beta.0",
24
+ "@kmkf-fe-packages/basic-components": "2.8.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.7.6",
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": "a671b946cfc210a0f9446c8ea9edb1b43f0a9831",
44
+ "gitHead": "8baeac20ff999517176559d2e31c22c01c15b35f",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }