@kmkf-fe-packages/services-components 2.10.9-beta.3 → 2.10.9-beta.31

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.
Files changed (76) hide show
  1. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  2. package/dist/esm/Hooks/useColumnsConfig.js +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  4. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +3 -2
  5. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +13 -12
  6. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
  7. package/dist/esm/components/BS/BsExchange/index.d.ts +7 -0
  8. package/dist/esm/components/BS/BsExchange/index.js +6 -0
  9. package/dist/esm/components/BS/BsGoods/index.d.ts +7 -0
  10. package/dist/esm/components/BS/BsGoods/index.js +6 -0
  11. package/dist/esm/components/BS/BsLogistics/index.js +9 -0
  12. package/dist/esm/components/BS/BsReissue/index.d.ts +7 -0
  13. package/dist/esm/components/BS/BsReissue/index.js +6 -0
  14. package/dist/esm/components/BS/BsReturn/index.d.ts +7 -0
  15. package/dist/esm/components/BS/BsReturn/index.js +6 -0
  16. package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
  17. package/dist/esm/components/BS/common/expressCode.js +3 -0
  18. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  19. package/dist/esm/components/BsE3/BsGoods/index.d.ts +7 -0
  20. package/dist/esm/components/BsE3/BsGoods/index.js +6 -0
  21. package/dist/esm/components/BsE3/BsReissueE3/index.d.ts +7 -0
  22. package/dist/esm/components/BsE3/BsReissueE3/index.js +6 -0
  23. package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +6 -0
  24. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +18 -2
  25. package/dist/esm/components/Common/index.js +6 -3
  26. package/dist/esm/components/CommonHeaderGood/index.js +54 -35
  27. package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -1
  28. package/dist/esm/components/CommonMultiStatus/index.js +61 -6
  29. package/dist/esm/components/GY/GyGoods/index.d.ts +7 -0
  30. package/dist/esm/components/GY/GyGoods/index.js +6 -0
  31. package/dist/esm/components/GY/GyReissue/index.d.ts +7 -0
  32. package/dist/esm/components/GY/GyReissue/index.js +6 -0
  33. package/dist/esm/components/GY/GyReturn/index.d.ts +7 -0
  34. package/dist/esm/components/GY/GyReturn/index.js +6 -0
  35. package/dist/esm/components/JST/JstSendGood/index.d.ts +2 -1
  36. package/dist/esm/components/JST/JstSendGood/index.js +16 -2
  37. package/dist/esm/components/JST/JstSupply/index.d.ts +1 -1
  38. package/dist/esm/components/JST/JstSupply/index.js +3 -0
  39. package/dist/esm/components/KM/KmExchange/index.d.ts +7 -0
  40. package/dist/esm/components/KM/KmExchange/index.js +6 -0
  41. package/dist/esm/components/KmErpSendGood/index.d.ts +1 -1
  42. package/dist/esm/components/KmErpSendGood/index.js +3 -0
  43. package/dist/esm/components/LogisticsInterception/index.d.ts +3 -0
  44. package/dist/esm/components/LogisticsInterception/index.js +14 -7
  45. package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.d.ts +39 -0
  46. package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.js +103 -0
  47. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +2 -0
  48. package/dist/esm/components/LogisticsMoreInterception/index.js +19 -5
  49. package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.d.ts +39 -0
  50. package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.js +108 -0
  51. package/dist/esm/components/Public/Exchange/index.d.ts +7 -0
  52. package/dist/esm/components/Public/Exchange/index.js +6 -0
  53. package/dist/esm/components/Public/Goods/index.js +6 -12
  54. package/dist/esm/components/Public/ReissueGoods/index.d.ts +7 -0
  55. package/dist/esm/components/Public/ReissueGoods/index.js +6 -0
  56. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +1 -1
  57. package/dist/esm/components/Public/ReturnWarehouse/index.js +3 -0
  58. package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -1
  59. package/dist/esm/components/Reissue/Logistics/index.js +3 -0
  60. package/dist/esm/components/Remark/index.d.ts +4 -1
  61. package/dist/esm/components/Remark/index.js +36 -8
  62. package/dist/esm/components/SKX/SkxGoods/index.d.ts +7 -0
  63. package/dist/esm/components/SKX/SkxGoods/index.js +6 -0
  64. package/dist/esm/components/WDT/WdtExchange/index.d.ts +7 -0
  65. package/dist/esm/components/WDT/WdtExchange/index.js +6 -0
  66. package/dist/esm/components/WDT/WdtGoods/index.d.ts +7 -0
  67. package/dist/esm/components/WDT/WdtGoods/index.js +6 -0
  68. package/dist/esm/components/WDT/WdtRessuie/index.d.ts +7 -0
  69. package/dist/esm/components/WDT/WdtRessuie/index.js +6 -0
  70. package/dist/esm/components/WDT/WdtReturn/index.d.ts +7 -0
  71. package/dist/esm/components/WDT/WdtReturn/index.js +6 -0
  72. package/dist/esm/factory.d.ts +1 -1
  73. package/dist/esm/factory.js +10 -1
  74. package/dist/esm/service/api.d.ts +1 -0
  75. package/dist/esm/service/api.js +6 -0
  76. package/package.json +4 -4
@@ -21,7 +21,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
21
21
  import styles from "./index.module.less";
22
22
  import defaultImg from "./img/default-img.png";
23
23
  import CopyText from "../../commonComponents/CopyText";
24
- import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
24
+ import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, TTX_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
25
25
  import { getColumnsMap } from "./constants/columnsBaseInfoMap";
26
26
  import { VideoCameraTwoTone } from "@ant-design/icons";
27
27
  import { ApaasImage } from "@kmkf-fe-packages/basic-components";
@@ -309,6 +309,7 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
309
309
  var logisticsCompany = item.logisticsCompany,
310
310
  logisticsCompanyName = item.logisticsCompanyName;
311
311
  var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany;
312
+ console.log("00001--", [platformType, logisticsCompany, ExpressData.getInstance(platformType), ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany]);
312
313
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
313
314
  content: content(item, index),
314
315
  overlayStyle: {
@@ -788,7 +789,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
788
789
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
789
790
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
790
791
  PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns,
791
- DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
792
+ DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns,
793
+ TTX_SYSTEM_ORDER: TTX_SYSTEM_ORDER_CONFIG.columns
792
794
  };
793
795
  var rowKeyMap = {
794
796
  BS_SYSTEM_ORDER: "billNo",
@@ -802,7 +804,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
802
804
  JKY_SYSTEM_ORDER: "tradeNo",
803
805
  WDT_RETURN_BILL_NO: "refundNo",
804
806
  PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId",
805
- DXD_SYSTEM_ORDER: "orderNo"
807
+ DXD_SYSTEM_ORDER: "orderNo",
808
+ TTX_SYSTEM_ORDER: "code"
806
809
  };
807
810
  var rowSelection = {
808
811
  type: isRadio ? "radio" : "checkbox",
@@ -19,7 +19,11 @@ import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
19
19
  import { BsHeaderPic, BsHeaderChild } from "../BS/common";
20
20
  import ReissueGift from "../BsE3/ReissueGift";
21
21
  import { erpColumnsMap } from "@kmkf-fe-packages/basic-components";
22
- import { getJstColumns, getKmColumns, getDxdColumns } from "@kmkf-fe-packages/basic-components";
22
+ import { getJstColumns, getKmColumns, getDxdColumns, getTtxColumns } from "@kmkf-fe-packages/basic-components";
23
+ var isNullNotFalse = function isNullNotFalse(val) {
24
+ if (val === false) return false;
25
+ return isNull(val);
26
+ };
23
27
  var orderGoodsHeaderComponentMap = {
24
28
  pic: BsHeaderPic
25
29
  };
@@ -1188,19 +1192,19 @@ var GoodHeaderMap = {
1188
1192
  saleBasePrice: {
1189
1193
  name: "原价",
1190
1194
  transformValue: function transformValue(price) {
1191
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1195
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1192
1196
  },
1193
1197
  renderExport: function renderExport(price) {
1194
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1198
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1195
1199
  }
1196
1200
  },
1197
1201
  salePrice: {
1198
1202
  name: "单价",
1199
1203
  transformValue: function transformValue(price) {
1200
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1204
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1201
1205
  },
1202
1206
  renderExport: function renderExport(price) {
1203
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1207
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1204
1208
  }
1205
1209
  },
1206
1210
  qty: "数量",
@@ -1209,12 +1213,12 @@ var GoodHeaderMap = {
1209
1213
  transformValue: function transformValue(val, record, parentName) {
1210
1214
  if (!record) return "--";
1211
1215
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1212
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1216
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1213
1217
  },
1214
1218
  renderExport: function renderExport(val, record, parentName) {
1215
1219
  if (!record) return "--";
1216
1220
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1217
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1221
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1218
1222
  }
1219
1223
  },
1220
1224
  batchId: "批次号",
@@ -1260,19 +1264,19 @@ var GoodHeaderMap = {
1260
1264
  saleBasePrice: {
1261
1265
  name: "原价",
1262
1266
  transformValue: function transformValue(price) {
1263
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1267
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1264
1268
  },
1265
1269
  renderExport: function renderExport(price) {
1266
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1270
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1267
1271
  }
1268
1272
  },
1269
1273
  salePrice: {
1270
1274
  name: "单价",
1271
1275
  transformValue: function transformValue(price) {
1272
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1276
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1273
1277
  },
1274
1278
  renderExport: function renderExport(price) {
1275
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1279
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1276
1280
  }
1277
1281
  },
1278
1282
  qty: "数量",
@@ -1302,19 +1306,19 @@ var GoodHeaderMap = {
1302
1306
  saleBasePrice: {
1303
1307
  name: "原价",
1304
1308
  transformValue: function transformValue(price) {
1305
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1309
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1306
1310
  },
1307
1311
  renderExport: function renderExport(price) {
1308
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1312
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1309
1313
  }
1310
1314
  },
1311
1315
  salePrice: {
1312
1316
  name: "单价",
1313
1317
  transformValue: function transformValue(price) {
1314
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1318
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1315
1319
  },
1316
1320
  renderExport: function renderExport(price) {
1317
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1321
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1318
1322
  }
1319
1323
  },
1320
1324
  qty: "数量",
@@ -1323,12 +1327,12 @@ var GoodHeaderMap = {
1323
1327
  transformValue: function transformValue(val, record, parentName) {
1324
1328
  if (!record) return "--";
1325
1329
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1326
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1330
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1327
1331
  },
1328
1332
  renderExport: function renderExport(val, record, parentName) {
1329
1333
  if (!record) return "--";
1330
1334
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1331
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1335
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1332
1336
  }
1333
1337
  },
1334
1338
  batchId: "批次号",
@@ -1359,19 +1363,19 @@ var GoodHeaderMap = {
1359
1363
  saleBasePrice: {
1360
1364
  name: "原价",
1361
1365
  transformValue: function transformValue(price) {
1362
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1366
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1363
1367
  },
1364
1368
  renderExport: function renderExport(price) {
1365
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1369
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1366
1370
  }
1367
1371
  },
1368
1372
  salePrice: {
1369
1373
  name: "单价",
1370
1374
  transformValue: function transformValue(price) {
1371
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1375
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1372
1376
  },
1373
1377
  renderExport: function renderExport(price) {
1374
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1378
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1375
1379
  }
1376
1380
  },
1377
1381
  qty: "数量",
@@ -1380,12 +1384,12 @@ var GoodHeaderMap = {
1380
1384
  transformValue: function transformValue(val, record, parentName) {
1381
1385
  if (!record) return "--";
1382
1386
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1383
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1387
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1384
1388
  },
1385
1389
  renderExport: function renderExport(val, record, parentName) {
1386
1390
  if (!record) return "--";
1387
1391
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1388
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1392
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1389
1393
  }
1390
1394
  },
1391
1395
  isGift: {
@@ -1473,11 +1477,11 @@ var GoodHeaderMap = {
1473
1477
  name: "赠品类型",
1474
1478
  width: 100,
1475
1479
  transformValue: function transformValue(val) {
1476
- if (isNull(val)) return "--";
1480
+ if (isNullNotFalse(val)) return "--";
1477
1481
  return val ? "赠品" : "非赠品";
1478
1482
  },
1479
1483
  renderExport: function renderExport(val) {
1480
- if (isNull(val)) return "--";
1484
+ if (isNullNotFalse(val)) return "--";
1481
1485
  return val ? "赠品" : "非赠品";
1482
1486
  }
1483
1487
  },
@@ -1485,11 +1489,11 @@ var GoodHeaderMap = {
1485
1489
  width: 200,
1486
1490
  name: "是否组合商品",
1487
1491
  transformValue: function transformValue(val) {
1488
- if (isNull(val)) return "--";
1492
+ if (isNullNotFalse(val)) return "--";
1489
1493
  return val ? "是" : "否";
1490
1494
  },
1491
1495
  renderExport: function renderExport(val) {
1492
- if (isNull(val)) return "--";
1496
+ if (isNullNotFalse(val)) return "--";
1493
1497
  return val ? "是" : "否";
1494
1498
  }
1495
1499
  },
@@ -1497,11 +1501,11 @@ var GoodHeaderMap = {
1497
1501
  width: 100,
1498
1502
  name: "是否退款",
1499
1503
  transformValue: function transformValue(val) {
1500
- if (isNull(val)) return "--";
1504
+ if (isNullNotFalse(val)) return "--";
1501
1505
  return val ? "是" : "否";
1502
1506
  },
1503
1507
  renderExport: function renderExport(val) {
1504
- if (isNull(val)) return "--";
1508
+ if (isNullNotFalse(val)) return "--";
1505
1509
  return val ? "是" : "否";
1506
1510
  }
1507
1511
  },
@@ -1587,11 +1591,11 @@ var GoodHeaderMap = {
1587
1591
  name: "赠品类型",
1588
1592
  width: 100,
1589
1593
  transformValue: function transformValue(val) {
1590
- if (isNull(val)) return "--";
1594
+ if (isNullNotFalse(val)) return "--";
1591
1595
  return val ? "赠品" : "非赠品";
1592
1596
  },
1593
1597
  renderExport: function renderExport(val) {
1594
- if (isNull(val)) return "--";
1598
+ if (isNullNotFalse(val)) return "--";
1595
1599
  return val ? "赠品" : "非赠品";
1596
1600
  }
1597
1601
  },
@@ -1599,11 +1603,11 @@ var GoodHeaderMap = {
1599
1603
  width: 200,
1600
1604
  name: "是否组合商品",
1601
1605
  transformValue: function transformValue(val) {
1602
- if (isNull(val)) return "--";
1606
+ if (isNullNotFalse(val)) return "--";
1603
1607
  return val ? "是" : "否";
1604
1608
  },
1605
1609
  renderExport: function renderExport(val) {
1606
- if (isNull(val)) return "--";
1610
+ if (isNullNotFalse(val)) return "--";
1607
1611
  return val ? "是" : "否";
1608
1612
  }
1609
1613
  },
@@ -1611,11 +1615,11 @@ var GoodHeaderMap = {
1611
1615
  width: 100,
1612
1616
  name: "是否退款",
1613
1617
  transformValue: function transformValue(val) {
1614
- if (isNull(val)) return "--";
1618
+ if (isNullNotFalse(val)) return "--";
1615
1619
  return val ? "是" : "否";
1616
1620
  },
1617
1621
  renderExport: function renderExport(val) {
1618
- if (isNull(val)) return "--";
1622
+ if (isNullNotFalse(val)) return "--";
1619
1623
  return val ? "是" : "否";
1620
1624
  }
1621
1625
  },
@@ -2594,6 +2598,21 @@ var GoodHeaderMap = {
2594
2598
  return acc;
2595
2599
  }, {})
2596
2600
  },
2601
+ TTX_GOODS: {
2602
+ headerMap: getTtxColumns()["TTX_GOODS"].reduce(function (acc, item) {
2603
+ acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
2604
+ component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
2605
+ name: item.title,
2606
+ key: item.dataIndex,
2607
+ width: item.width || 150
2608
+ });
2609
+ return acc;
2610
+ }, {}),
2611
+ itemKey: getTtxColumns()["TTX_GOODS"].reduce(function (acc, item) {
2612
+ acc[item.dataIndex] = item.title;
2613
+ return acc;
2614
+ }, {})
2615
+ },
2597
2616
  JKY_REISSUE_GOODS: {
2598
2617
  headerMap: {
2599
2618
  goodsNo: {
@@ -14,7 +14,10 @@ declare class CommonMultiStatus implements ComponentInterface {
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface["dataType"];
16
16
  isSingleValue: boolean;
17
- constructor(options: PickOption);
17
+ ext?: {
18
+ [key: string]: any;
19
+ };
20
+ constructor(options: PickOption, ext?: {});
18
21
  renderClient: (record: any) => React.JSX.Element | null;
19
22
  renderPc: (value: any, record: Record) => React.JSX.Element;
20
23
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -134,6 +134,29 @@ var typeMap = {
134
134
  failValue: "失败",
135
135
  dataType: "array_object"
136
136
  },
137
+ DXD_WAREHOUSING_STATUS: {
138
+ options: [{
139
+ value: "1",
140
+ label: "已入库",
141
+ color: "#52c41a"
142
+ }, {
143
+ value: "2",
144
+ label: "未入库",
145
+ color: "#ff4d4f"
146
+ }, {
147
+ value: "3",
148
+ label: "查无此单",
149
+ color: "#e7780f"
150
+ }],
151
+ key: "dxdInStockStatusItemList",
152
+ code: "dxdInStockStatusList",
153
+ name: "商品入库状态",
154
+ type: 2,
155
+ valueKey: "status",
156
+ idKey: "systemOrderId",
157
+ failValue: "失败",
158
+ dataType: "array_object"
159
+ },
137
160
  WLN_WAREHOUSING_STATUS: {
138
161
  options: [{
139
162
  value: "1",
@@ -219,6 +242,33 @@ var typeMap = {
219
242
  failValue: "失败",
220
243
  dataType: "array_object"
221
244
  },
245
+ TTX_WAREHOUSING_STATUS: {
246
+ options: [{
247
+ value: "1",
248
+ label: "未入库",
249
+ color: "#ff4d4f"
250
+ }, {
251
+ value: "2",
252
+ label: "部分入库",
253
+ color: "#e7780f"
254
+ }, {
255
+ value: "3",
256
+ label: "已入库",
257
+ color: "#52c41a"
258
+ }, {
259
+ label: "已入库-多收",
260
+ value: "4",
261
+ color: "#e7780f"
262
+ }],
263
+ key: "ttxInStockStatusItemList",
264
+ code: "ttxInStockStatusList",
265
+ name: "通天晓商品入库状态",
266
+ type: 2,
267
+ valueKey: "status",
268
+ idKey: "sourceTradeNo",
269
+ failValue: "失败",
270
+ dataType: "array_object"
271
+ },
222
272
  KM_WAREHOUSING_STATUS: {
223
273
  options: [{
224
274
  value: "0",
@@ -250,7 +300,9 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
250
300
  _typeMap$options$type3,
251
301
  _typeMap$options$type4,
252
302
  _this$componentConfig5,
253
- _this$componentConfig6;
303
+ _this$componentConfig6,
304
+ _this$ext4;
305
+ var ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
254
306
  _classCallCheck(this, CommonMultiStatus);
255
307
  _defineProperty(this, "name", void 0);
256
308
  _defineProperty(this, "id", void 0);
@@ -265,6 +317,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
265
317
  _defineProperty(this, "children", void 0);
266
318
  _defineProperty(this, "dataType", void 0);
267
319
  _defineProperty(this, "isSingleValue", void 0);
320
+ _defineProperty(this, "ext", void 0);
268
321
  _defineProperty(this, "renderClient", function (record) {
269
322
  var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
270
323
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
@@ -343,13 +396,13 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
343
396
  });
344
397
  });
345
398
  _defineProperty(this, "filterConfig", function (item) {
346
- var _typeMap$_this$type21, _item$templateConfig;
399
+ var _this$ext, _typeMap$_this$type21, _this$ext2, _item$templateConfig, _this$ext3;
347
400
  return {
348
- searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS", "KM_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
401
+ searchDefaultConditions: (_this$ext = _this.ext) !== null && _this$ext !== void 0 && _this$ext.isWarehousingStatus ? SYMBOL.in : SYMBOL.like,
349
402
  type: item.type,
350
403
  id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
351
404
  name: "".concat(_this.name),
352
- filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS", "KM_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
405
+ filterComponentType: (_this$ext2 = _this.ext) !== null && _this$ext2 !== void 0 && _this$ext2.isWarehousingStatus ? "MultipleSelect" : "SelectInput",
353
406
  props: {
354
407
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
355
408
  fieldNames: {
@@ -364,7 +417,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
364
417
  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);
365
418
  };
366
419
  },
367
- formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS", "KM_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
420
+ formatFilterValue: (_this$ext3 = _this.ext) !== null && _this$ext3 !== void 0 && _this$ext3.isWarehousingStatus ? null : function (value) {
368
421
  if (value.type === "in") {
369
422
  return value.keywords;
370
423
  } else {
@@ -384,6 +437,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
384
437
  this.isCombinationComponent = false;
385
438
  this.canSort = false;
386
439
  this.children = [];
440
+ this.ext = ext;
387
441
  this.dataType = (_typeMap$options$type3 = (_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.dataType) !== null && _typeMap$options$type3 !== void 0 ? _typeMap$options$type3 : "object";
388
442
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
389
443
  required: true,
@@ -400,6 +454,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
400
454
  }
401
455
  }] : [];
402
456
  this.align = "left";
403
- 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 === "JST_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
457
+ //优化写法,this.type !== "WAREHOUSING_STATUS"不修改原有逻辑
458
+ this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || ((_this$ext4 = this.ext) === null || _this$ext4 === void 0 ? void 0 : _this$ext4.isWarehousingStatus) && this.type !== "WAREHOUSING_STATUS";
404
459
  });
405
460
  export default CommonMultiStatus;
@@ -14,8 +14,15 @@ declare class GyGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  gyGoods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -17,6 +17,7 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
19
  import { useGoodsSourceFormat } from "../../../Hooks";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
21
22
  var _this = this,
22
23
  _this$componentConfig6;
@@ -33,7 +34,11 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
33
34
  _defineProperty(this, "canSort", void 0);
34
35
  _defineProperty(this, "children", void 0);
35
36
  _defineProperty(this, "dataType", void 0);
37
+ _defineProperty(this, "sortChildField", void 0);
36
38
  _defineProperty(this, "gyGoods", void 0);
39
+ _defineProperty(this, "getSortChildFields", function () {
40
+ return getGoodsSortChildFields(_this.type, _this.id);
41
+ });
37
42
  _defineProperty(this, "renderClient", function (record) {
38
43
  var _record, _this$componentConfig;
39
44
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -123,5 +128,6 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
123
128
  }
124
129
  }] : [];
125
130
  this.dataType = "object";
131
+ this.sortChildField = this.getSortChildFields();
126
132
  });
127
133
  export default GyGoods;
@@ -15,11 +15,18 @@ declare class GyReissue implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  bsType: BsType;
19
20
  bsMemo: BsMemo;
20
21
  systemOrderNo: SystemOrderNo;
21
22
  reissueGoods: BsHeaderGood | CommonHeaderGoods;
22
23
  constructor(options: PickOption);
24
+ getSortChildFields: () => {
25
+ name: any;
26
+ key: string;
27
+ dataType: string;
28
+ conditionOptionsSetting: any;
29
+ }[];
23
30
  renderClient: (record: any) => React.JSX.Element | null;
24
31
  renderPc: () => null;
25
32
  renderLog: (r: Record) => React.JSX.Element;
@@ -18,6 +18,7 @@ import { BsGoodsTable } from "../../Common/index";
18
18
  import { BsType, BsMemo, SystemOrderNo } from "../../BS/common/index";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
20
  import { useGoodsSourceFormat } from "../../../Hooks";
21
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
21
22
  var typeMap = {
22
23
  GY_REISSUE_GOODS: {
23
24
  key: "gyReissueGoods",
@@ -56,10 +57,14 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
56
57
  _defineProperty(this, "canSort", void 0);
57
58
  _defineProperty(this, "children", void 0);
58
59
  _defineProperty(this, "dataType", void 0);
60
+ _defineProperty(this, "sortChildField", void 0);
59
61
  _defineProperty(this, "bsType", void 0);
60
62
  _defineProperty(this, "bsMemo", void 0);
61
63
  _defineProperty(this, "systemOrderNo", void 0);
62
64
  _defineProperty(this, "reissueGoods", void 0);
65
+ _defineProperty(this, "getSortChildFields", function () {
66
+ return getGoodsSortChildFields(_this.type, _this.id);
67
+ });
63
68
  _defineProperty(this, "renderClient", function (record) {
64
69
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
65
70
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -206,5 +211,6 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
206
211
  }
207
212
  }];
208
213
  this.dataType = "object";
214
+ this.sortChildField = this.getSortChildFields();
209
215
  });
210
216
  export default GyReissue;
@@ -15,10 +15,17 @@ declare class GyReturn implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  gyType: BsType;
19
20
  systemOrderNo: SystemOrderNo;
20
21
  returnGoods: BsHeaderGood | CommonHeaderGoods;
21
22
  constructor(options: PickOption);
23
+ getSortChildFields: () => {
24
+ name: any;
25
+ key: string;
26
+ dataType: string;
27
+ conditionOptionsSetting: any;
28
+ }[];
22
29
  renderClient: (record: any) => React.JSX.Element | null;
23
30
  renderPc: () => null;
24
31
  renderLog: (r: Record) => React.JSX.Element;
@@ -18,6 +18,7 @@ import CommonHeaderGoods from "../../CommonHeaderGood";
18
18
  import { GyReturn as Return, erpFormValidator } from "@kmkf-fe-packages/basic-components";
19
19
  import { BsType, SystemOrderNo } from "../../BS/common/index";
20
20
  import { useGoodsSourceFormat } from "../../../Hooks";
21
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
21
22
  var typeMap = {
22
23
  GY_RETURN_GOODS: {
23
24
  key: "gyReturnGoods",
@@ -54,9 +55,13 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
54
55
  _defineProperty(this, "canSort", void 0);
55
56
  _defineProperty(this, "children", void 0);
56
57
  _defineProperty(this, "dataType", void 0);
58
+ _defineProperty(this, "sortChildField", void 0);
57
59
  _defineProperty(this, "gyType", void 0);
58
60
  _defineProperty(this, "systemOrderNo", void 0);
59
61
  _defineProperty(this, "returnGoods", void 0);
62
+ _defineProperty(this, "getSortChildFields", function () {
63
+ return getGoodsSortChildFields(_this.type, _this.id);
64
+ });
60
65
  _defineProperty(this, "renderClient", function (record) {
61
66
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
62
67
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.gyType.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -198,5 +203,6 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
198
203
  }
199
204
  }];
200
205
  this.dataType = "object";
206
+ this.sortChildField = this.getSortChildFields();
201
207
  });
202
208
  export default GyReturn;
@@ -20,13 +20,14 @@ declare class JstSendGood implements ComponentInterface {
20
20
  children: ComponentInterface[];
21
21
  dataType: ComponentInterface["dataType"];
22
22
  format: ComponentInterface["format"];
23
+ effects: ComponentInterface["effects"];
23
24
  constructor(options: PickOption);
24
25
  getSortChildFields: (type: string, options: PickOption, fieldType?: string) => any;
25
26
  renderClient: (record: Record) => React.JSX.Element | null;
26
27
  renderPc: (value: any, record: Record) => React.JSX.Element;
27
28
  renderLog: (r: Record) => React.JSX.Element | null;
28
29
  getComponentValue: (r: Record) => any;
29
- renderExport: (value: any, record: any) => any;
30
+ renderExport: (value: any, record: any) => string;
30
31
  editRender: (p: any) => React.JSX.Element;
31
32
  filterConfig: (item: ColumnConfig) => ({
32
33
  searchDefaultConditions: "in";