@kmkf-fe-packages/services-components 2.9.0-rc.0 → 2.9.1-beta.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.
Files changed (130) 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 +437 -0
  7. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  8. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -3
  9. package/dist/esm/commonComponents/GlobalContext/index.js +61 -23
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
  13. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  14. package/dist/esm/commonComponents/OperationLog/index.js +4 -4
  15. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
  16. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
  17. package/dist/esm/commonComponents/ShopList/index.js +3 -1
  18. package/dist/esm/components/BS/BsGoods/index.js +0 -1
  19. package/dist/esm/components/BS/BsLogistics/index.d.ts +2 -0
  20. package/dist/esm/components/BS/BsLogistics/index.js +50 -9
  21. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  22. package/dist/esm/components/BS/BsSystemOrder/index.js +62 -9
  23. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
  24. package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
  25. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  26. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  27. package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
  28. package/dist/esm/components/BS/common/BsMemo.js +5 -1
  29. package/dist/esm/components/BS/common/BsType.js +5 -1
  30. package/dist/esm/components/BS/common/SystemOrderNo.js +5 -1
  31. package/dist/esm/components/BS/common/expressCode.js +6 -0
  32. package/dist/esm/components/BS/common/expressCompany.js +20 -1
  33. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  34. package/dist/esm/components/Cascader/index.d.ts +8 -6
  35. package/dist/esm/components/Cascader/index.js +26 -22
  36. package/dist/esm/components/Common/constants/bs.js +2 -2
  37. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  38. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  39. package/dist/esm/components/Common/constants/wdt.js +104 -0
  40. package/dist/esm/components/Common/index.d.ts +2 -2
  41. package/dist/esm/components/Common/index.js +45 -24
  42. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  43. package/dist/esm/components/CommonDataTime/index.js +2 -2
  44. package/dist/esm/components/CommonHeaderGood/index.js +1417 -110
  45. package/dist/esm/components/CommonInput/index.js +11 -3
  46. package/dist/esm/components/CommonMultiStatus/index.js +96 -36
  47. package/dist/esm/components/CommonSystemOrder/index.js +7 -0
  48. package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
  49. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  50. package/dist/esm/components/ErpTradeId/index.js +7 -4
  51. package/dist/esm/components/File/index.d.ts +6 -6
  52. package/dist/esm/components/File/index.js +9 -10
  53. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  54. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  55. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  56. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  57. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  58. package/dist/esm/components/Input/index.d.ts +4 -4
  59. package/dist/esm/components/Input/index.js +35 -31
  60. package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
  61. package/dist/esm/components/JST/JstSendGood/index.js +66 -18
  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/PictureName.js +1 -3
  86. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  87. package/dist/esm/components/PicturePro/index.js +43 -28
  88. package/dist/esm/components/PostIng/index.d.ts +5 -0
  89. package/dist/esm/components/PostIng/index.js +42 -8
  90. package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
  91. package/dist/esm/components/Public/Exchange/index.js +10 -23
  92. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  93. package/dist/esm/components/Public/Goods/index.js +46 -2
  94. package/dist/esm/components/Public/ReissueGoods/index.js +82 -6
  95. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  96. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  97. package/dist/esm/components/Public/SystemOrderType/index.js +2 -2
  98. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  99. package/dist/esm/components/ReceiverAddress/index.js +43 -30
  100. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  101. package/dist/esm/components/Remark/index.d.ts +18 -2
  102. package/dist/esm/components/Remark/index.js +37 -2
  103. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  104. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  105. package/dist/esm/components/Select/index.d.ts +1 -0
  106. package/dist/esm/components/Select/index.js +18 -11
  107. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  108. package/dist/esm/components/ShopInput/index.js +12 -9
  109. package/dist/esm/components/StatusSelect/index.js +22 -2
  110. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  111. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  112. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  113. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  114. package/dist/esm/components/SubForm/index.js +78 -6
  115. package/dist/esm/components/TradeId/index.d.ts +6 -5
  116. package/dist/esm/components/TradeId/index.js +31 -15
  117. package/dist/esm/components/WDT/WdtGoods/index.js +2 -1
  118. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  119. package/dist/esm/constant.js +3 -0
  120. package/dist/esm/factory.d.ts +2 -2
  121. package/dist/esm/factory.js +41 -12
  122. package/dist/esm/index.d.ts +4 -0
  123. package/dist/esm/index.js +6 -1
  124. package/dist/esm/service/api.d.ts +3 -0
  125. package/dist/esm/service/api.js +42 -14
  126. package/dist/esm/service/request.js +1 -4
  127. package/dist/esm/type.d.ts +43 -3
  128. package/package.json +4 -4
  129. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  130. package/dist/esm/components/Common/constants/gy.js +0 -219
@@ -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) {
@@ -167,7 +187,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
167
187
  _defineProperty(this, "renderPc", function (value, record) {
168
188
  var _typeMap$_this$type2, _typeMap$_this$type3;
169
189
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
170
- console.log("\uD83D\uDE80 ~ index.tsx:234 ~ list:", list);
171
190
  //兼容多个商品
172
191
  return /*#__PURE__*/React.createElement("span", {
173
192
  onClick: function onClick(e) {
@@ -195,6 +214,25 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
195
214
  });
196
215
  _defineProperty(this, "editRender", function (p) {
197
216
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$expressDateInst2, _typeMap$_this$type6;
217
+ var onLogisticsCodeBlur = function onLogisticsCodeBlur(val) {
218
+ var _p$onBlur2;
219
+ if (_this.isChange) {
220
+ var _this$effects, _this$effects$form, _p$onBlur;
221
+ (_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({
222
+ skx_return_billNo_blur_from: _this.id
223
+ });
224
+ _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"));
225
+ _this.isChange = false;
226
+ }
227
+ _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"));
228
+ };
229
+ var onLogisticsCodeChange = function onLogisticsCodeChange() {
230
+ _this.isChange = true;
231
+ for (var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++) {
232
+ e[_key] = arguments[_key];
233
+ }
234
+ p === null || p === void 0 ? void 0 : p.onChange.apply(p, e);
235
+ };
198
236
  return /*#__PURE__*/React.createElement(GetFormItem, {
199
237
  title: _this.name,
200
238
  name: _this.id,
@@ -207,7 +245,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
207
245
  type: 1,
208
246
  platformType: _this.platformType,
209
247
  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,
248
+ onChange: onLogisticsCodeChange,
249
+ onBlur: onLogisticsCodeBlur,
211
250
  logisticsCompanyFormType: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.logisticsCompanyFormType
212
251
  }))
213
252
  });
@@ -229,6 +268,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
229
268
  this.componentConfig = _options.componentConfig;
230
269
  this.isCombinationComponent = true;
231
270
  this.canSort = false;
271
+ this.isChange = false;
272
+ this.effects = _options.effects;
232
273
  this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, _options), {}, {
233
274
  name: "物流公司",
234
275
  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,8 +153,16 @@ 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), {}, {
161
+ parent: {
162
+ id: _this.id,
163
+ formField: _this.formField,
164
+ sortField: _this.sortField
165
+ },
115
166
  transformValue: column.render,
116
167
  renderExport: column.renderExport,
117
168
  name: column.title,
@@ -120,7 +171,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
120
171
  }));
121
172
  })) || [];
122
173
  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 ? [{
174
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
124
175
  required: true,
125
176
  validator: function validator(_, value) {
126
177
  var _value$selectIds;
@@ -131,5 +182,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
131
182
  }
132
183
  }] : [];
133
184
  this.dataType = "object";
185
+ this.sortChildField = this.getSortChildFields();
186
+ 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
187
  });
135
188
  export default BsSystemOrder;
@@ -14,16 +14,17 @@ declare class BsHeaderChild implements ComponentInterface {
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface["dataType"];
16
16
  parentName?: string;
17
- transformValue: (val: any, record?: any, parentName?: string) => any;
18
- export: (val: any, record?: any, parentName?: string) => any;
17
+ parent?: any;
18
+ transformValue: (val: any, record?: any, parentName?: string, parent?: any, index?: number) => any;
19
+ export: (val: any, record?: any, parentName?: string, parent?: any, index?: number) => any;
19
20
  constructor(options: PickOption);
20
21
  getParentId: () => string;
21
- renderClient: (record: any) => React.JSX.Element | null;
22
- renderPc: (value: unknown, record: Record) => React.JSX.Element;
23
- renderLog: (r: Record) => React.JSX.Element | null;
24
- getComponentValue: (r: Record) => any;
25
- getComponentExport: (r: Record) => any;
26
- renderExport: (value: string, record: Record) => any;
22
+ renderClient: (record: any, index: number) => React.JSX.Element | null;
23
+ renderPc: (value: unknown, record: Record, index?: number) => React.JSX.Element;
24
+ renderLog: (r: Record, index?: number) => React.JSX.Element | null;
25
+ getComponentValue: (r: Record, index?: number) => any;
26
+ getComponentExport: (r: Record, index?: number) => any;
27
+ renderExport: (value: string, record: Record, index?: number) => any;
27
28
  editRender: () => null;
28
29
  filterConfig: () => never[];
29
30
  }
@@ -30,6 +30,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
30
30
  _defineProperty(this, "children", void 0);
31
31
  _defineProperty(this, "dataType", void 0);
32
32
  _defineProperty(this, "parentName", void 0);
33
+ _defineProperty(this, "parent", void 0);
33
34
  _defineProperty(this, "transformValue", function (val) {
34
35
  return val;
35
36
  });
@@ -44,31 +45,31 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
44
45
  code = _this$id$split2[2];
45
46
  return "".concat(key, "_").concat(name);
46
47
  });
47
- _defineProperty(this, "renderClient", function (record) {
48
+ _defineProperty(this, "renderClient", function (record, index) {
48
49
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
49
50
  id: _this.id,
50
51
  label: _this.name,
51
- value: _this.getComponentValue(record)
52
+ value: _this.getComponentValue(record, index)
52
53
  }) : null;
53
54
  });
54
- _defineProperty(this, "renderPc", function (value, record) {
55
+ _defineProperty(this, "renderPc", function (value, record, index) {
55
56
  var _this$getComponentVal;
56
- return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
57
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record, index)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
57
58
  });
58
- _defineProperty(this, "renderLog", function (r) {
59
+ _defineProperty(this, "renderLog", function (r, index) {
59
60
  var id = _this.getParentId();
60
61
  if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
61
- return _this.renderPc(undefined, r);
62
+ return _this.renderPc(undefined, r, index);
62
63
  });
63
- _defineProperty(this, "getComponentValue", function (r) {
64
- return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
64
+ _defineProperty(this, "getComponentValue", function (r, index) {
65
+ return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName, _this.parent, index);
65
66
  });
66
- _defineProperty(this, "getComponentExport", function (r) {
67
- return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
67
+ _defineProperty(this, "getComponentExport", function (r, index) {
68
+ return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName, _this.parent, index);
68
69
  });
69
- _defineProperty(this, "renderExport", function (value, record) {
70
+ _defineProperty(this, "renderExport", function (value, record, index) {
70
71
  var _this$getComponentExp;
71
- var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
72
+ var val = (_this$getComponentExp = _this.getComponentExport(record, index)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
72
73
  return typeof val === "number" ? val + "" : val;
73
74
  });
74
75
  _defineProperty(this, "editRender", function () {
@@ -85,6 +86,9 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
85
86
  if (options.parentName) {
86
87
  this.parentName = options.parentName;
87
88
  }
89
+ if (options.parent) {
90
+ this.parent = options.parent;
91
+ }
88
92
  this.componentConfig = options.componentConfig;
89
93
  this.align = "left";
90
94
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
@@ -79,7 +79,7 @@ var HeaderMap = {
79
79
  },
80
80
  share: {
81
81
  component: BsHeaderChild,
82
- name: "分摊价",
82
+ name: "均摊单价",
83
83
  key: "share",
84
84
  width: 120
85
85
  },
@@ -231,7 +231,7 @@ var BsHeaderGods = /*#__PURE__*/function () {
231
231
  skuName: "sku名称",
232
232
  money: "实付金额",
233
233
  number: "数量",
234
- share: "分摊价",
234
+ share: "均摊单价",
235
235
  type: "赠品类型",
236
236
  batch: "批次号",
237
237
  expireDate: "有效期"
@@ -13,6 +13,8 @@ declare class BsChildPic implements ComponentInterface {
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface["dataType"];
16
+ transformValue?: (val: any, record?: any, parentName?: string) => any;
17
+ export?: (val: any, record?: any, parentName?: string) => any;
16
18
  constructor(options: PickOption);
17
19
  getParentId: () => string;
18
20
  renderClient: (record: any) => React.JSX.Element | null;
@@ -30,6 +30,12 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
30
30
  _defineProperty(this, "canSort", void 0);
31
31
  _defineProperty(this, "children", void 0);
32
32
  _defineProperty(this, "dataType", void 0);
33
+ _defineProperty(this, "transformValue", function (val) {
34
+ return val;
35
+ });
36
+ _defineProperty(this, "export", function (val) {
37
+ return val;
38
+ });
33
39
  _defineProperty(this, "getParentId", function () {
34
40
  var _this$id$split = _this.id.split("_"),
35
41
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
@@ -46,8 +52,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
46
52
  }) : null;
47
53
  });
48
54
  _defineProperty(this, "renderPc", function (value, record) {
55
+ var _picValue$split;
49
56
  var picValue = _this.getComponentValue(record);
50
- var imgList = picValue ? picValue === null || picValue === void 0 ? void 0 : picValue.split(",") : [];
57
+ var imgList = picValue ? picValue === null || picValue === void 0 ? void 0 : (_picValue$split = picValue.split(",http")) === null || _picValue$split === void 0 ? void 0 : _picValue$split.map(function (url, index) {
58
+ return index !== 0 ? "http".concat(url) : url;
59
+ }) : [];
51
60
  return BsGoodPic(imgList);
52
61
  });
53
62
  _defineProperty(this, "renderLog", function (r) {
@@ -56,7 +65,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
56
65
  return _this.renderPc(undefined, r);
57
66
  });
58
67
  _defineProperty(this, "getComponentValue", function (r) {
59
- return r === null || r === void 0 ? void 0 : r[_this.id];
68
+ return _this.transformValue ? _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id]) : r === null || r === void 0 ? void 0 : r[_this.id];
60
69
  });
61
70
  _defineProperty(this, "renderExport", function (value, record) {
62
71
  var _this$getComponentVal;
@@ -80,5 +89,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
80
89
  this.canSort = false;
81
90
  this.dataType = "string";
82
91
  this.children = [];
92
+ if (options.transformValue) {
93
+ this.transformValue = options === null || options === void 0 ? void 0 : options.transformValue;
94
+ }
95
+ if (options.renderExport) {
96
+ this.export = options === null || options === void 0 ? void 0 : options.renderExport;
97
+ }
83
98
  });
84
99
  export default BsChildPic;
@@ -25,7 +25,11 @@ var componentType = {
25
25
  GY_RETURN_GOODS: "gyReturnType",
26
26
  JST_REISSUE_GOODS: "jstReissueType",
27
27
  JST_RETURN_GOODS: "jstReturnType",
28
- KM_REISSUE_GOODS: "kmReissueType"
28
+ KM_REISSUE_GOODS: "kmReissueType",
29
+ KM_RETURN_GOODS: "kmReturnType",
30
+ JY_REISSUE_GOODS: "jyReissueType",
31
+ JKY_REISSUE_GOODS: "jkyReissueType",
32
+ WLN_REISSUE_GOODS: "wlnReissueType"
29
33
  };
30
34
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
31
35
  var _this = this;
@@ -26,7 +26,11 @@ var componentType = {
26
26
  GY_RETURN_GOODS: "gyReturnType",
27
27
  JST_REISSUE_GOODS: "jstReissueType",
28
28
  JST_RETURN_GOODS: "jstReturnType",
29
- KM_REISSUE_GOODS: "kmReissueType"
29
+ KM_REISSUE_GOODS: "kmReissueType",
30
+ KM_RETURN_GOODS: "kmReturnType",
31
+ JY_REISSUE_GOODS: "jyReissueType",
32
+ JKY_REISSUE_GOODS: "jkyReissueType",
33
+ WLN_REISSUE_GOODS: "wlnReissueType"
30
34
  };
31
35
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
32
36
  var _this = this;
@@ -21,7 +21,11 @@ var componentType = {
21
21
  GY_RETURN_GOODS: "gySystemOrderNo",
22
22
  JST_REISSUE_GOODS: "jstSystemOrderNo",
23
23
  JST_RETURN_GOODS: "jstSystemOrderNo",
24
- KM_REISSUE_GOODS: "kmSystemOrderNo"
24
+ KM_REISSUE_GOODS: "kmSystemOrderNo",
25
+ KM_RETURN_GOODS: "kmSystemOrderNo",
26
+ JY_REISSUE_GOODS: "jySystemOrderNo",
27
+ JKY_REISSUE_GOODS: "jkySystemOrderNo",
28
+ WLN_REISSUE_GOODS: "wlnSystemOrderNo"
25
29
  };
26
30
  var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
27
31
  var _this = this;
@@ -37,6 +37,12 @@ var typeMap = {
37
37
  GY_LOGISTICS: {
38
38
  key: "gyLogisticsItem"
39
39
  },
40
+ JY_LOGISTICS: {
41
+ key: "jyLogisticsItem"
42
+ },
43
+ JKY_LOGISTICS: {
44
+ key: "jkyLogisticsItem"
45
+ },
40
46
  SKX_LOGISTICS: {
41
47
  key: "skxLogisticsItem"
42
48
  },
@@ -40,6 +40,12 @@ var typeMap = {
40
40
  GY_LOGISTICS: {
41
41
  key: "gyLogisticsItem"
42
42
  },
43
+ JY_LOGISTICS: {
44
+ key: "jyLogisticsItem"
45
+ },
46
+ JKY_LOGISTICS: {
47
+ key: "jkyLogisticsItem"
48
+ },
43
49
  SKX_LOGISTICS: {
44
50
  key: "skxLogisticsItem"
45
51
  },
@@ -98,7 +104,20 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
98
104
  });
99
105
  _defineProperty(this, "renderExport", function (value, record) {
100
106
  var _this$expressDateInst, _this$expressDateInst2;
101
- return ((_this$expressDateInst = _this.expressDateInstance) === null || _this$expressDateInst === void 0 ? void 0 : (_this$expressDateInst2 = _this$expressDateInst.getExpressNameByCode) === null || _this$expressDateInst2 === void 0 ? void 0 : _this$expressDateInst2.call(_this$expressDateInst, record === null || record === void 0 ? void 0 : record["".concat(_this.id)])) || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
107
+ var name = (_this$expressDateInst = _this.expressDateInstance) === null || _this$expressDateInst === void 0 ? void 0 : (_this$expressDateInst2 = _this$expressDateInst.getExpressNameByCode) === null || _this$expressDateInst2 === void 0 ? void 0 : _this$expressDateInst2.call(_this$expressDateInst, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], false);
108
+ if (!name) {
109
+ var _typeMap$_this$type3, _items$find;
110
+ var _this$id$split3 = _this.id.split("_"),
111
+ _this$id$split4 = _slicedToArray(_this$id$split3, 3),
112
+ key = _this$id$split4[0],
113
+ parentKey = _this$id$split4[1],
114
+ childKey = _this$id$split4[2];
115
+ var items = record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
116
+ name = items === null || items === void 0 ? void 0 : (_items$find = items.find(function (item) {
117
+ return item.logisticsCompany === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
118
+ })) === null || _items$find === void 0 ? void 0 : _items$find.logisticsCompanyName;
119
+ }
120
+ return name || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
102
121
  });
103
122
  _defineProperty(this, "editRender", function () {
104
123
  return null;
@@ -178,11 +178,14 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
178
178
  this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
179
179
  required: true,
180
180
  validator: function validator(_, value) {
181
- var _value, _typeMap$options$type6;
181
+ var _value, _typeMap$options$type6, _typeMap$options$type8;
182
182
  if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length)) {
183
183
  var _typeMap$options$type7;
184
184
  return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
185
185
  }
186
+ if (!value || !(value !== null && value !== void 0 && value["".concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.systemOrderNo)])) {
187
+ return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"));
188
+ }
186
189
  return Promise.resolve();
187
190
  }
188
191
  }] : [];
@@ -1,19 +1,21 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class BasicCascader implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
10
  isCombinationComponent: boolean;
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface["dataType"];
15
- format: ComponentInterface["format"];
16
- options: ComponentInterface["options"];
14
+ dataType: ComponentInterface['dataType'];
15
+ format: ComponentInterface['format'];
16
+ options: ComponentInterface['options'];
17
+ exampleValue?: string;
18
+ standardDateType: ComponentInterface['standardDateType'];
17
19
  constructor(options: PickOption);
18
20
  /**
19
21
  * 通过值计算展示内容