@kmkf-fe-packages/services-components 2.8.0-rc.0 → 2.8.1

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 (123) hide show
  1. package/dist/esm/Hooks/index.d.ts +2 -0
  2. package/dist/esm/Hooks/index.js +2 -0
  3. package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
  4. package/dist/esm/Hooks/useColumnsConfig.js +243 -0
  5. package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
  6. package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
  7. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  8. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  9. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
  10. package/dist/esm/commonComponents/GlobalContext/index.js +60 -20
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  13. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
  14. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
  15. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +11 -9
  16. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  17. package/dist/esm/commonComponents/OperationLog/index.js +4 -2
  18. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
  19. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
  20. package/dist/esm/commonComponents/ShopList/index.js +3 -1
  21. package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
  22. package/dist/esm/components/BS/BsLogistics/index.d.ts +2 -0
  23. package/dist/esm/components/BS/BsLogistics/index.js +50 -8
  24. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  25. package/dist/esm/components/BS/BsSystemOrder/index.js +57 -9
  26. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  27. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  28. package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
  29. package/dist/esm/components/BS/common/BsMemo.js +4 -1
  30. package/dist/esm/components/BS/common/BsType.js +4 -1
  31. package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
  32. package/dist/esm/components/BS/common/expressCode.js +6 -0
  33. package/dist/esm/components/BS/common/expressCompany.js +20 -1
  34. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  35. package/dist/esm/components/Cascader/index.d.ts +8 -6
  36. package/dist/esm/components/Cascader/index.js +26 -22
  37. package/dist/esm/components/Common/constants/bs.js +2 -2
  38. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  39. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  40. package/dist/esm/components/Common/constants/wdt.js +104 -0
  41. package/dist/esm/components/Common/dist/index.js +1019 -0
  42. package/dist/esm/components/Common/index.d.ts +2 -2
  43. package/dist/esm/components/Common/index.js +45 -24
  44. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  45. package/dist/esm/components/CommonDataTime/index.js +2 -2
  46. package/dist/esm/components/CommonHeaderGood/index.js +1199 -54
  47. package/dist/esm/components/CommonInput/index.js +11 -3
  48. package/dist/esm/components/CommonMultiStatus/index.js +73 -36
  49. package/dist/esm/components/CommonSystemOrder/index.js +7 -0
  50. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  51. package/dist/esm/components/ErpTradeId/index.js +7 -4
  52. package/dist/esm/components/File/index.d.ts +6 -6
  53. package/dist/esm/components/File/index.js +9 -10
  54. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  55. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  56. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  57. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  58. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  59. package/dist/esm/components/Input/index.d.ts +4 -4
  60. package/dist/esm/components/Input/index.js +35 -31
  61. package/dist/esm/components/JST/JstSendGood/index.js +17 -1
  62. package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
  63. package/dist/esm/components/KM/KmExchange/index.js +136 -0
  64. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  65. package/dist/esm/components/Logistics/index.d.ts +1 -0
  66. package/dist/esm/components/Logistics/index.js +10 -0
  67. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  68. package/dist/esm/components/LogisticsInterception/index.d.ts +21 -0
  69. package/dist/esm/components/LogisticsInterception/index.js +30 -7
  70. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
  71. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
  72. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  73. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  74. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  75. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
  76. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  77. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  78. package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
  79. package/dist/esm/components/OrderSubForm/index.js +18 -1
  80. package/dist/esm/components/Payment/index.d.ts +13 -12
  81. package/dist/esm/components/Payment/index.js +31 -11
  82. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  83. package/dist/esm/components/Picture/index.d.ts +5 -5
  84. package/dist/esm/components/Picture/index.js +20 -20
  85. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  86. package/dist/esm/components/PicturePro/index.js +42 -25
  87. package/dist/esm/components/PostIng/index.d.ts +5 -0
  88. package/dist/esm/components/PostIng/index.js +42 -8
  89. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  90. package/dist/esm/components/Public/Goods/index.js +42 -2
  91. package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
  92. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  93. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  94. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  95. package/dist/esm/components/ReceiverAddress/index.js +41 -27
  96. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  97. package/dist/esm/components/Remark/index.d.ts +18 -2
  98. package/dist/esm/components/Remark/index.js +37 -2
  99. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  100. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  101. package/dist/esm/components/Select/index.d.ts +1 -0
  102. package/dist/esm/components/Select/index.js +19 -11
  103. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  104. package/dist/esm/components/ShopInput/index.js +12 -9
  105. package/dist/esm/components/StatusSelect/index.js +18 -2
  106. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  107. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  108. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  109. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  110. package/dist/esm/components/SubForm/index.js +78 -6
  111. package/dist/esm/components/TradeId/index.d.ts +6 -5
  112. package/dist/esm/components/TradeId/index.js +31 -15
  113. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  114. package/dist/esm/factory.d.ts +2 -2
  115. package/dist/esm/factory.js +32 -7
  116. package/dist/esm/index.d.ts +4 -0
  117. package/dist/esm/index.js +6 -1
  118. package/dist/esm/service/api.d.ts +3 -0
  119. package/dist/esm/service/api.js +34 -1
  120. package/dist/esm/type.d.ts +39 -0
  121. package/package.json +4 -4
  122. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  123. package/dist/esm/components/Common/constants/gy.js +0 -219
@@ -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, 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,28 +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;
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
- _context.next = 9;
39
+ if (hasJy || notJudgedErp) promises.push(SendDataCenter.getInstance("jy").fetchData);
40
+ if (hasJky || notJudgedErp) promises.push(SendDataCenter.getInstance("jky").fetchData);
41
+ _context.next = 11;
40
42
  return Promise.all(promises.map(function (promise) {
41
43
  return promise();
42
44
  }));
43
- case 9:
45
+ case 11:
44
46
  setGlobalState("success");
45
- _context.next = 15;
47
+ _context.next = 17;
46
48
  break;
47
- case 12:
48
- _context.prev = 12;
49
+ case 14:
50
+ _context.prev = 14;
49
51
  _context.t0 = _context["catch"](1);
50
52
  setGlobalState("failed");
51
- case 15:
53
+ case 17:
52
54
  case "end":
53
55
  return _context.stop();
54
56
  }
55
- }, _callee, null, [[1, 12]]);
57
+ }, _callee, null, [[1, 14]]);
56
58
  }));
57
59
  return function asyncQueryData(_x2, _x3, _x4) {
58
60
  return _ref.apply(this, arguments);
@@ -4,6 +4,7 @@ declare type OperationLogProps = {
4
4
  operation: string;
5
5
  componentDtoList: any[];
6
6
  plat: any;
7
+ shopList: any[];
7
8
  };
8
- declare const OperationLog: ({ content, operation, componentDtoList, plat, }: OperationLogProps) => React.JSX.Element | null;
9
+ declare const OperationLog: ({ content, operation, componentDtoList, plat, shopList, }: OperationLogProps) => React.JSX.Element | null;
9
10
  export default OperationLog;
@@ -11,7 +11,8 @@ var OperationLog = function OperationLog(_ref) {
11
11
  var content = _ref.content,
12
12
  operation = _ref.operation,
13
13
  componentDtoList = _ref.componentDtoList,
14
- plat = _ref.plat;
14
+ plat = _ref.plat,
15
+ shopList = _ref.shopList;
15
16
  if (!content) return null;
16
17
  try {
17
18
  //todo过滤一些固定字段 展示不确定
@@ -80,7 +81,8 @@ var OperationLog = function OperationLog(_ref) {
80
81
  componentConfig: item.componentConfig,
81
82
  type: item.workOrderComponentType,
82
83
  effects: {
83
- env: plat.platform
84
+ env: plat.platform,
85
+ shopList: shopList
84
86
  }
85
87
  });
86
88
  if (operation !== null && operation !== void 0 && operation.startsWith("UPDATE")) {
@@ -1,9 +1,11 @@
1
- import React from 'react';
2
- declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, }: {
1
+ import React from "react";
2
+ declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, interceptCompanyName, shopUk, }: {
3
3
  title?: string | undefined;
4
4
  modelWidth?: string | number | undefined;
5
- interceptCompany: string;
5
+ interceptCompany?: string | undefined;
6
6
  interceptCode: string;
7
7
  interceptSenderMobile?: string | number | undefined;
8
+ interceptCompanyName?: string | undefined;
9
+ shopUk?: string | undefined;
8
10
  }) => React.JSX.Element;
9
11
  export default QueryLogisticsTrack;
@@ -8,19 +8,21 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import React, { useState } from 'react';
12
- import { Modal, Timeline, message } from 'antd';
13
- import { request } from '@kmkf-fe-packages/kmkf-utils';
11
+ import React, { useState } from "react";
12
+ import { Modal, Timeline, message } from "antd";
13
+ import { request } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import CopyText from "../CopyText";
15
15
  var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
16
16
  var _ref$title = _ref.title,
17
- title = _ref$title === void 0 ? '查轨迹' : _ref$title,
17
+ title = _ref$title === void 0 ? "查轨迹" : _ref$title,
18
18
  _ref$modelWidth = _ref.modelWidth,
19
19
  modelWidth = _ref$modelWidth === void 0 ? 500 : _ref$modelWidth,
20
20
  interceptCompany = _ref.interceptCompany,
21
21
  interceptCode = _ref.interceptCode,
22
- interceptSenderMobile = _ref.interceptSenderMobile;
23
- var _useState = useState(''),
22
+ interceptSenderMobile = _ref.interceptSenderMobile,
23
+ interceptCompanyName = _ref.interceptCompanyName,
24
+ shopUk = _ref.shopUk;
25
+ var _useState = useState(""),
24
26
  _useState2 = _slicedToArray(_useState, 2),
25
27
  inputVal = _useState2[0],
26
28
  setInputVal = _useState2[1];
@@ -36,9 +38,9 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
36
38
  var list = _ref2.list;
37
39
  return /*#__PURE__*/React.createElement("div", {
38
40
  style: {
39
- maxHeight: '500px',
40
- padding: '8px 0',
41
- overflowY: 'auto'
41
+ maxHeight: "500px",
42
+ padding: "8px 0",
43
+ overflowY: "auto"
42
44
  }
43
45
  }, /*#__PURE__*/React.createElement(Timeline, null, list.map(function (item, index) {
44
46
  return /*#__PURE__*/React.createElement(Timeline.Item, {
@@ -51,11 +53,11 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
51
53
  return _regeneratorRuntime().wrap(function _callee$(_context) {
52
54
  while (1) switch (_context.prev = _context.next) {
53
55
  case 0:
54
- if (!(!interceptCode || !interceptCompany)) {
56
+ if (!(!interceptCode || !interceptCompany && !interceptCompanyName)) {
55
57
  _context.next = 2;
56
58
  break;
57
59
  }
58
- return _context.abrupt("return", message.error('缺少物流公司或物流单号'));
60
+ return _context.abrupt("return", message.error("缺少物流公司或物流单号"));
59
61
  case 2:
60
62
  logisticsTraceSearch();
61
63
  //如果是顺丰且没有手机号 要输入手机号
@@ -90,12 +92,14 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
90
92
  var logisticsTraceSearch = function logisticsTraceSearch(mobile) {
91
93
  try {
92
94
  request({
93
- url: '/qy/logistics/logisticsTraceSearch',
94
- method: 'post',
95
+ url: "/qy/logistics/logisticsTraceSearch",
96
+ method: "post",
95
97
  data: {
96
98
  mailNo: interceptCode,
97
99
  cpCode: interceptCompany,
98
- mobile: interceptSenderMobile || mobile
100
+ mobile: interceptSenderMobile || mobile,
101
+ cpName: interceptCompanyName,
102
+ shopUk: shopUk
99
103
  },
100
104
  handleError: function handleError(msg) {
101
105
  msg && message.error(msg);
@@ -118,16 +122,16 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
118
122
  };
119
123
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
120
124
  style: {
121
- margin: '0 8px',
122
- color: '#1890ff',
123
- cursor: 'pointer'
125
+ margin: "0 8px",
126
+ color: "#1890ff",
127
+ cursor: "pointer"
124
128
  }
125
129
  }, /*#__PURE__*/React.createElement("span", {
126
130
  onClick: handleQueryLogistics
127
- }, title === '查轨迹' ? title : /*#__PURE__*/React.createElement(CopyText, {
131
+ }, title === "查轨迹" ? title : /*#__PURE__*/React.createElement(CopyText, {
128
132
  text: title,
129
133
  style: {
130
- color: '#1890ff'
134
+ color: "#1890ff"
131
135
  }
132
136
  }))), /*#__PURE__*/React.createElement(Modal, {
133
137
  width: modelWidth,
@@ -30,8 +30,10 @@ var ShopList = function ShopList(_ref) {
30
30
  var plat = (_platDatInstance$getP = platDatInstance.getPlatData()) === null || _platDatInstance$getP === void 0 ? void 0 : _platDatInstance$getP.find(function (plat) {
31
31
  return plat.platformType === item.shopSource;
32
32
  });
33
+ var shopName = plat !== null && plat !== void 0 && plat.platformName ? "\u3010".concat(plat === null || plat === void 0 ? void 0 : plat.platformName, "\u3011").concat(item.shopName) : item.shopName;
33
34
  return /*#__PURE__*/React.createElement(Select.Option, {
34
35
  disabled: item.disabled || disabledList.includes(item === null || item === void 0 ? void 0 : item[valueMapping]),
36
+ title: "".concat((plat === null || plat === void 0 ? void 0 : plat.platformName) || "").concat(item.shopName),
35
37
  value: item === null || item === void 0 ? void 0 : item[valueMapping],
36
38
  key: item === null || item === void 0 ? void 0 : item[valueMapping],
37
39
  label: "".concat((plat === null || plat === void 0 ? void 0 : plat.platformName) || "").concat(item.shopName)
@@ -40,7 +42,7 @@ var ShopList = function ShopList(_ref) {
40
42
  marginRight: 5
41
43
  },
42
44
  type: item.shopSource
43
- }), /*#__PURE__*/React.createElement("span", null, (plat === null || plat === void 0 ? void 0 : plat.platformName) && "\u3010".concat(plat === null || plat === void 0 ? void 0 : plat.platformName, "\u3011"), item.shopName));
45
+ }), /*#__PURE__*/React.createElement("span", null, shopName));
44
46
  }));
45
47
  };
46
48
  export default ShopList;
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ var __assign = this && this.__assign || function () {
4
+ __assign = Object.assign || function (t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ exports.__esModule = true;
14
+ var react_1 = require("react");
15
+ var GetFormItem_1 = require("../../GetFormItem");
16
+ var Common_1 = require("../../Common");
17
+ var index_1 = require("../common/index");
18
+ var ItemView_1 = require("../../../commonComponents/ItemView");
19
+ var kmkf_utils_1 = require("@kmkf-fe-packages/kmkf-utils");
20
+ var basic_components_1 = require("@kmkf-fe-packages/basic-components");
21
+ var constant_1 = require("../../../constant");
22
+ var BsGoods = /** @class */function () {
23
+ function BsGoods(options) {
24
+ var _this = this;
25
+ var _a;
26
+ this.renderClient = function (record) {
27
+ var _a, _b;
28
+ console.log("in renderclient");
29
+ return !kmkf_utils_1.isNull(record === null || record === void 0 ? void 0 : record["" + _this.id]) ? react_1["default"].createElement(react_1["default"].Fragment, null, react_1["default"].createElement(ItemView_1["default"], {
30
+ id: _this.id,
31
+ label: _this.name,
32
+ value: react_1["default"].createElement(Common_1.BsGoodsTable, {
33
+ list: ((_a = record === null || record === void 0 ? void 0 : record["" + _this.id]) === null || _a === void 0 ? void 0 : _a.bsGoods) || [],
34
+ showHeader: ((_b = _this.componentConfig) === null || _b === void 0 ? void 0 : _b.showHeader) || []
35
+ })
36
+ })) : null;
37
+ };
38
+ this.renderPc = function () {
39
+ return null;
40
+ };
41
+ this.renderLog = function (r) {
42
+ var _a;
43
+ console.log("in renderclient");
44
+ if (kmkf_utils_1.isNull(r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"])) return null;
45
+ return react_1["default"].createElement(Common_1.BsGoodsTable, {
46
+ list: (r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"]) || [],
47
+ showHeader: ((_a = _this.componentConfig) === null || _a === void 0 ? void 0 : _a.showHeader) || []
48
+ });
49
+ };
50
+ this.getComponentValue = function (r) {
51
+ return r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"];
52
+ };
53
+ this.renderExport = function () {
54
+ return null;
55
+ };
56
+ this.editRender = function (p) {
57
+ var _a, _b, _c, _d, _e, _f;
58
+ console.log("in renderclient");
59
+ return react_1["default"].createElement(GetFormItem_1["default"], {
60
+ title: _this.name,
61
+ name: _this.id,
62
+ rules: _this.rules,
63
+ required: false,
64
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
65
+ display: p === null || p === void 0 ? void 0 : p.display,
66
+ tooltip: ((_a = _this.componentConfig) === null || _a === void 0 ? void 0 : _a.showTooltip) ? (_b = _this.componentConfig) === null || _b === void 0 ? void 0 : _b.tooltip : "",
67
+ component: react_1["default"].createElement(basic_components_1.BsGoods, __assign({}, _this.componentConfig, {
68
+ maxLength: ((_c = _this.componentConfig) === null || _c === void 0 ? void 0 : _c.maxLength) || 20,
69
+ shopId: (_d = _this.effects) === null || _d === void 0 ? void 0 : _d.shopId,
70
+ shopList: ((_e = _this.effects) === null || _e === void 0 ? void 0 : _e.shopList) || [],
71
+ companyKey: (_f = _this.effects) === null || _f === void 0 ? void 0 : _f.companyKey,
72
+ width: "90%"
73
+ }))
74
+ });
75
+ };
76
+ this.filterConfig = function (item) {
77
+ return [{
78
+ searchDefaultConditions: constant_1.SYMBOL.like,
79
+ type: item.type,
80
+ id: item.id + "_bsGoods",
81
+ name: item.name,
82
+ filterComponentType: "Input"
83
+ }];
84
+ };
85
+ this.name = options.name;
86
+ this.id = options.id;
87
+ this.sortField = options.id + "_bsGoods";
88
+ this.formField = options.id + "_bsGoods";
89
+ this.type = options.type;
90
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
91
+ this.isCombinationComponent = true;
92
+ this.canSort = false;
93
+ this.bsGoods = new index_1.BsHeaderGood(__assign(__assign({}, options), {
94
+ id: options.id + "_bsGoods",
95
+ name: "商品信息"
96
+ }));
97
+ this.children = [this.bsGoods];
98
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
99
+ this.rules = ((_a = this === null || this === void 0 ? void 0 : this.componentConfig) === null || _a === void 0 ? void 0 : _a.required) ? [{
100
+ required: true,
101
+ validator: function validator(_, value) {
102
+ var _a;
103
+ if (!value || !((_a = value === null || value === void 0 ? void 0 : value.bsGoods) === null || _a === void 0 ? void 0 : _a.length)) {
104
+ return Promise.reject(new Error("请选择bs商品"));
105
+ }
106
+ return Promise.resolve();
107
+ }
108
+ }] : [];
109
+ this.dataType = "object";
110
+ }
111
+ return BsGoods;
112
+ }();
113
+ exports["default"] = BsGoods;
@@ -25,6 +25,8 @@ declare class BsLogistics implements ComponentInterface {
25
25
  dataType: ComponentInterface["dataType"];
26
26
  expressCompany: ExpressCompany;
27
27
  expressCode: ExpressCode;
28
+ isChange: boolean;
29
+ effects: ComponentInterface["effects"];
28
30
  constructor(options: PickOption);
29
31
  renderClient: (record: any) => React.JSX.Element | null;
30
32
  getSortChildFields: (type: string, options: PickOption) => any;
@@ -25,7 +25,7 @@ var typeMap = {
25
25
  company: "bsLogisticsCompany",
26
26
  code: "bsLogisticsCode",
27
27
  platformType: "default",
28
- companyDataType: "arrayObject",
28
+ companyDataType: "string",
29
29
  companyCodeType: "arrayObject"
30
30
  },
31
31
  BS_E3_LOGISTICS: {
@@ -34,7 +34,7 @@ var typeMap = {
34
34
  company: "bsE3LogisticsCompany",
35
35
  code: "bsE3LogisticsCode",
36
36
  platformType: "bsE3",
37
- companyDataType: "arrayObject",
37
+ companyDataType: "string",
38
38
  companyCodeType: "arrayObject"
39
39
  },
40
40
  WLN_LOGISTICS: {
@@ -43,7 +43,7 @@ var typeMap = {
43
43
  company: "wlnLogisticsCompany",
44
44
  code: "wlnLogisticsCode",
45
45
  platformType: "wln",
46
- companyDataType: "arrayObject",
46
+ companyDataType: "string",
47
47
  companyCodeType: "arrayObject"
48
48
  },
49
49
  WDT_LOGISTICS: {
@@ -52,7 +52,7 @@ var typeMap = {
52
52
  company: "wdtLogisticsCompany",
53
53
  code: "wdtLogisticsCode",
54
54
  platformType: "wdt",
55
- companyDataType: "arrayObject",
55
+ companyDataType: "string",
56
56
  companyCodeType: "arrayObject"
57
57
  },
58
58
  JST_LOGISTICS: {
@@ -61,7 +61,7 @@ var typeMap = {
61
61
  company: "logisticsCompany",
62
62
  code: "logisticsCode",
63
63
  platformType: "jst",
64
- companyDataType: "arrayObject",
64
+ companyDataType: "string",
65
65
  companyCodeType: "arrayObject"
66
66
  },
67
67
  KM_LOGISTICS: {
@@ -70,7 +70,7 @@ var typeMap = {
70
70
  company: "kmLogisticsCompany",
71
71
  code: "kmLogisticsCode",
72
72
  platformType: "km",
73
- companyDataType: "whetherItIncludes",
73
+ companyDataType: "string",
74
74
  companyCodeType: "arrayObject"
75
75
  },
76
76
  GY_LOGISTICS: {
@@ -79,7 +79,7 @@ var typeMap = {
79
79
  company: "gyLogisticsCompany",
80
80
  code: "gyLogisticsCode",
81
81
  platformType: "gy",
82
- companyDataType: "arrayObject",
82
+ companyDataType: "string",
83
83
  companyCodeType: "arrayObject"
84
84
  },
85
85
  SKX_LOGISTICS: {
@@ -101,6 +101,24 @@ var typeMap = {
101
101
  companyDataType: "like",
102
102
  companyCodeType: "like",
103
103
  logisticsCompanyFormType: "input"
104
+ },
105
+ JY_LOGISTICS: {
106
+ key: "jyLogisticsList",
107
+ name: "巨益",
108
+ company: "jyLogisticsCompany",
109
+ code: "jyLogisticsCode",
110
+ platformType: "jy",
111
+ companyDataType: "string",
112
+ companyCodeType: "arrayObject"
113
+ },
114
+ JKY_LOGISTICS: {
115
+ key: "jkyLogisticsList",
116
+ name: "吉客云",
117
+ company: "jkyLogisticsCompany",
118
+ code: "jkyLogisticsCode",
119
+ platformType: "jky",
120
+ companyDataType: "string",
121
+ companyCodeType: "arrayObject"
104
122
  }
105
123
  };
106
124
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
@@ -133,6 +151,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
133
151
  _defineProperty(this, "dataType", void 0);
134
152
  _defineProperty(this, "expressCompany", void 0);
135
153
  _defineProperty(this, "expressCode", void 0);
154
+ _defineProperty(this, "isChange", void 0);
155
+ _defineProperty(this, "effects", void 0);
136
156
  _defineProperty(this, "renderClient", function (record) {
137
157
  var _typeMap$_this$type;
138
158
  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) {
@@ -195,6 +215,25 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
195
215
  });
196
216
  _defineProperty(this, "editRender", function (p) {
197
217
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$expressDateInst2, _typeMap$_this$type6;
218
+ var onLogisticsCodeBlur = function onLogisticsCodeBlur(val) {
219
+ var _p$onBlur2;
220
+ if (_this.isChange) {
221
+ var _this$effects, _this$effects$form, _p$onBlur;
222
+ (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : (_this$effects$form = _this$effects.form) === null || _this$effects$form === void 0 ? void 0 : _this$effects$form.setFieldsValue({
223
+ skx_return_billNo_blur_from: _this.id
224
+ });
225
+ _this.type === "SKX_RETURN_LOGISTICS" && (p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, val, "skxReturnTHLogisticsCode"));
226
+ _this.isChange = false;
227
+ }
228
+ _this.type === "SKX_LOGISTICS" && (p === null || p === void 0 ? void 0 : (_p$onBlur2 = p.onBlur) === null || _p$onBlur2 === void 0 ? void 0 : _p$onBlur2.call(p, val, "skxLogisticsCode"));
229
+ };
230
+ var onLogisticsCodeChange = function onLogisticsCodeChange() {
231
+ _this.isChange = true;
232
+ for (var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++) {
233
+ e[_key] = arguments[_key];
234
+ }
235
+ p === null || p === void 0 ? void 0 : p.onChange.apply(p, e);
236
+ };
198
237
  return /*#__PURE__*/React.createElement(GetFormItem, {
199
238
  title: _this.name,
200
239
  name: _this.id,
@@ -207,7 +246,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
207
246
  type: 1,
208
247
  platformType: _this.platformType,
209
248
  options: ((_this$expressDateInst2 = _this.expressDateInstance) === null || _this$expressDateInst2 === void 0 ? void 0 : _this$expressDateInst2.getExpressData()) || [],
210
- onChange: p === null || p === void 0 ? void 0 : p.onChange,
249
+ onChange: onLogisticsCodeChange,
250
+ onBlur: onLogisticsCodeBlur,
211
251
  logisticsCompanyFormType: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.logisticsCompanyFormType
212
252
  }))
213
253
  });
@@ -229,6 +269,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
229
269
  this.componentConfig = _options.componentConfig;
230
270
  this.isCombinationComponent = true;
231
271
  this.canSort = false;
272
+ this.isChange = false;
273
+ this.effects = _options.effects;
232
274
  this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, _options), {}, {
233
275
  name: "物流公司",
234
276
  parentName: this.name,
@@ -13,7 +13,15 @@ declare class BsSystemOrder implements ComponentInterface {
13
13
  canSort: boolean;
14
14
  dataType: ComponentInterface["dataType"];
15
15
  children: ComponentInterface[];
16
+ sortChildField: {
17
+ name: string;
18
+ key: string;
19
+ dataType: string;
20
+ [key: string]: any;
21
+ }[];
22
+ compoundConfig: ComponentInterface["compoundConfig"];
16
23
  constructor(options: PickOption);
24
+ getSortChildFields: () => any;
17
25
  renderClient: (record: any) => React.JSX.Element | null;
18
26
  renderPc: () => null;
19
27
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -2,6 +2,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2
2
  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; }
3
3
  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; }
4
4
  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); }
5
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
9
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
11
  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); } }
6
12
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -11,11 +17,12 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
17
  import React from "react";
12
18
  import GetFormItem from "../../GetFormItem";
13
19
  import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull, 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 } from "@kmkf-fe-packages/kmkf-utils";
20
+ import { isNull, 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 } from "@kmkf-fe-packages/kmkf-utils";
15
21
  import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
16
22
  import { BsSystemOrderTable } from "../../Common";
17
23
  import { BsHeaderChild } from "../common/index";
18
24
  import { SYMBOL, batchInput } from "../../../constant";
25
+ import { getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
19
26
  var typeMap = {
20
27
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG,
21
28
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
@@ -23,13 +30,20 @@ var typeMap = {
23
30
  WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG,
24
31
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG,
25
32
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG,
26
- JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG
33
+ JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG,
34
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
35
+ JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG,
36
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG,
37
+ PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG
27
38
  };
28
39
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
29
40
  var _this = this,
41
+ _getSystemShowHead,
30
42
  _typeMap$options$type,
43
+ _options$componentCon,
44
+ _this$componentConfig6,
31
45
  _typeMap$options$type2,
32
- _this$componentConfig3;
46
+ _typeMap$options$type3;
33
47
  _classCallCheck(this, BsSystemOrder);
34
48
  _defineProperty(this, "name", void 0);
35
49
  _defineProperty(this, "id", void 0);
@@ -43,13 +57,40 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
43
57
  _defineProperty(this, "canSort", void 0);
44
58
  _defineProperty(this, "dataType", void 0);
45
59
  _defineProperty(this, "children", void 0);
60
+ _defineProperty(this, "sortChildField", void 0);
61
+ _defineProperty(this, "compoundConfig", void 0);
62
+ _defineProperty(this, "getSortChildFields", function () {
63
+ var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _this$componentConfig;
64
+ return [{
65
+ name: "绑定订单号",
66
+ key: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.orderNo,
67
+ dataType: "string"
68
+ }, {
69
+ name: "选中系统订单号",
70
+ key: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.selectId,
71
+ dataType: "array"
72
+ }].concat(_toConsumableArray(getSystemShowHead({
73
+ columns: ((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.columns) || [],
74
+ showHeader: (_this === null || _this === void 0 ? void 0 : (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
75
+ }).filter(function (item) {
76
+ return !["picUrl"].includes(item.dataIndex);
77
+ }).map(function (item) {
78
+ return {
79
+ name: item.title,
80
+ key: "".concat(_this.id, "_").concat(item.dataIndex),
81
+ dataType: "arrayObject"
82
+ };
83
+ })));
84
+ });
46
85
  _defineProperty(this, "renderClient", function (record) {
86
+ var _this$componentConfig2;
47
87
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
48
88
  id: _this.id,
49
89
  label: _this.name,
50
90
  value: /*#__PURE__*/React.createElement(BsSystemOrderTable, {
51
91
  value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
52
- type: _this.type
92
+ type: _this.type,
93
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
53
94
  })
54
95
  })) : null;
55
96
  });
@@ -57,13 +98,15 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
57
98
  return null;
58
99
  });
59
100
  _defineProperty(this, "renderLog", function (r) {
101
+ var _this$componentConfig3;
60
102
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)])) return null;
61
103
  return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
62
104
  value: {
63
105
  showOrderInfo: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)],
64
106
  selectIds: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].selectId)]
65
107
  },
66
- type: _this.type
108
+ type: _this.type,
109
+ showHeader: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showHeader) || []
67
110
  });
68
111
  });
69
112
  _defineProperty(this, "getComponentValue", function (r) {
@@ -73,7 +116,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
73
116
  return null;
74
117
  });
75
118
  _defineProperty(this, "editRender", function (p) {
76
- var _this$componentConfig, _this$componentConfig2;
119
+ var _this$componentConfig4, _this$componentConfig5;
77
120
  return /*#__PURE__*/React.createElement(GetFormItem, {
78
121
  title: _this.name,
79
122
  name: _this.id,
@@ -81,7 +124,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
81
124
  required: false,
82
125
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
83
126
  display: p === null || p === void 0 ? void 0 : p.display,
84
- tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : "",
127
+ tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : "",
85
128
  component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
86
129
  onChange: p === null || p === void 0 ? void 0 : p.onChange,
87
130
  type: _this.type
@@ -110,7 +153,10 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
110
153
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
111
154
  this.isCombinationComponent = true;
112
155
  this.canSort = false;
113
- this.children = ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : (_typeMap$options$type2 = _typeMap$options$type.columns) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.map(function (column) {
156
+ this.children = ((_getSystemShowHead = getSystemShowHead({
157
+ columns: ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.columns) || [],
158
+ showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
159
+ })) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
114
160
  return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
115
161
  transformValue: column.render,
116
162
  renderExport: column.renderExport,
@@ -120,7 +166,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
120
166
  }));
121
167
  })) || [];
122
168
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
123
- this.rules = this !== null && this !== void 0 && (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
169
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
124
170
  required: true,
125
171
  validator: function validator(_, value) {
126
172
  var _value$selectIds;
@@ -131,5 +177,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
131
177
  }
132
178
  }] : [];
133
179
  this.dataType = "object";
180
+ this.sortChildField = this.getSortChildFields();
181
+ this.compoundConfig = (_typeMap$options$type2 = typeMap[options.type]) !== null && _typeMap$options$type2 !== void 0 && _typeMap$options$type2.compoundConfig ? (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.compoundConfig(options.id) : [];
134
182
  });
135
183
  export default BsSystemOrder;