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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) 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/useGetHasErpData.d.ts +1 -1
  8. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
  9. package/dist/esm/commonComponents/GlobalContext/index.js +60 -20
  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 +11 -9
  13. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  14. package/dist/esm/commonComponents/OperationLog/index.js +4 -2
  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/BsLogistics/index.d.ts +2 -0
  19. package/dist/esm/components/BS/BsLogistics/index.js +50 -8
  20. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  21. package/dist/esm/components/BS/BsSystemOrder/index.js +57 -9
  22. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  23. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  24. package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
  25. package/dist/esm/components/BS/common/BsMemo.js +4 -1
  26. package/dist/esm/components/BS/common/BsType.js +4 -1
  27. package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
  28. package/dist/esm/components/BS/common/expressCode.js +6 -0
  29. package/dist/esm/components/BS/common/expressCompany.js +20 -1
  30. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  31. package/dist/esm/components/Cascader/index.d.ts +8 -6
  32. package/dist/esm/components/Cascader/index.js +26 -22
  33. package/dist/esm/components/Common/constants/bs.js +2 -2
  34. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  35. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  36. package/dist/esm/components/Common/constants/wdt.js +104 -0
  37. package/dist/esm/components/Common/index.d.ts +2 -2
  38. package/dist/esm/components/Common/index.js +45 -24
  39. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  40. package/dist/esm/components/CommonDataTime/index.js +2 -2
  41. package/dist/esm/components/CommonHeaderGood/index.js +1199 -54
  42. package/dist/esm/components/CommonInput/index.js +11 -3
  43. package/dist/esm/components/CommonMultiStatus/index.js +73 -36
  44. package/dist/esm/components/CommonSystemOrder/index.js +7 -0
  45. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  46. package/dist/esm/components/ErpTradeId/index.js +7 -4
  47. package/dist/esm/components/File/index.d.ts +6 -6
  48. package/dist/esm/components/File/index.js +9 -10
  49. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  50. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  51. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  52. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  53. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  54. package/dist/esm/components/Input/index.d.ts +4 -4
  55. package/dist/esm/components/Input/index.js +35 -31
  56. package/dist/esm/components/JST/JstSendGood/index.js +17 -1
  57. package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
  58. package/dist/esm/components/KM/KmExchange/index.js +136 -0
  59. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  60. package/dist/esm/components/Logistics/index.d.ts +1 -0
  61. package/dist/esm/components/Logistics/index.js +10 -0
  62. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  63. package/dist/esm/components/LogisticsInterception/index.d.ts +21 -0
  64. package/dist/esm/components/LogisticsInterception/index.js +30 -7
  65. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
  66. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
  67. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  68. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  69. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  70. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
  71. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  72. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  73. package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
  74. package/dist/esm/components/OrderSubForm/index.js +18 -1
  75. package/dist/esm/components/Payment/index.d.ts +13 -12
  76. package/dist/esm/components/Payment/index.js +31 -11
  77. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  78. package/dist/esm/components/Picture/index.d.ts +5 -5
  79. package/dist/esm/components/Picture/index.js +20 -20
  80. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  81. package/dist/esm/components/PicturePro/index.js +42 -25
  82. package/dist/esm/components/PostIng/index.d.ts +5 -0
  83. package/dist/esm/components/PostIng/index.js +42 -8
  84. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  85. package/dist/esm/components/Public/Goods/index.js +42 -2
  86. package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
  87. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  88. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  89. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  90. package/dist/esm/components/ReceiverAddress/index.js +41 -27
  91. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  92. package/dist/esm/components/Remark/index.d.ts +18 -2
  93. package/dist/esm/components/Remark/index.js +37 -2
  94. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  95. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  96. package/dist/esm/components/Select/index.d.ts +1 -0
  97. package/dist/esm/components/Select/index.js +19 -11
  98. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  99. package/dist/esm/components/ShopInput/index.js +12 -9
  100. package/dist/esm/components/StatusSelect/index.js +18 -2
  101. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  102. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  103. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  104. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  105. package/dist/esm/components/SubForm/index.js +78 -6
  106. package/dist/esm/components/TradeId/index.d.ts +6 -5
  107. package/dist/esm/components/TradeId/index.js +31 -15
  108. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  109. package/dist/esm/factory.d.ts +2 -2
  110. package/dist/esm/factory.js +32 -7
  111. package/dist/esm/index.d.ts +4 -0
  112. package/dist/esm/index.js +6 -1
  113. package/dist/esm/service/api.d.ts +3 -0
  114. package/dist/esm/service/api.js +34 -1
  115. package/dist/esm/type.d.ts +39 -0
  116. package/package.json +4 -4
  117. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  118. package/dist/esm/components/Common/constants/gy.js +0 -219
@@ -0,0 +1,30 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class HeaderChildPic implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ parentName?: string;
17
+ transformValue: (val: any, record?: any, parentName?: string) => any;
18
+ export: (val: any, record?: any, parentName?: string) => any;
19
+ constructor(options: PickOption);
20
+ getParentId: () => string;
21
+ renderClient: (record: any) => React.JSX.Element | null;
22
+ renderPc: (value: unknown, record: Record) => any;
23
+ renderLog: (r: Record) => any;
24
+ getComponentValue: (r: Record) => any;
25
+ getComponentExport: (r: Record) => any;
26
+ renderExport: (value: string, record: Record) => any;
27
+ editRender: () => null;
28
+ filterConfig: () => never[];
29
+ }
30
+ export default HeaderChildPic;
@@ -0,0 +1,116 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ 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); }
5
+ 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; }
6
+ 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; } }
7
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
9
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
10
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ import React from "react";
15
+ import { Image } from "antd";
16
+ import ItemView from "../../../commonComponents/ItemView";
17
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
18
+ var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options) {
19
+ var _this = this;
20
+ _classCallCheck(this, HeaderChildPic);
21
+ _defineProperty(this, "name", void 0);
22
+ _defineProperty(this, "id", void 0);
23
+ _defineProperty(this, "sortField", void 0);
24
+ _defineProperty(this, "type", void 0);
25
+ _defineProperty(this, "componentConfig", void 0);
26
+ _defineProperty(this, "align", void 0);
27
+ _defineProperty(this, "width", void 0);
28
+ _defineProperty(this, "isCombinationComponent", void 0);
29
+ _defineProperty(this, "formField", void 0);
30
+ _defineProperty(this, "canSort", void 0);
31
+ _defineProperty(this, "children", void 0);
32
+ _defineProperty(this, "dataType", void 0);
33
+ _defineProperty(this, "parentName", void 0);
34
+ _defineProperty(this, "transformValue", function (val) {
35
+ return val;
36
+ });
37
+ _defineProperty(this, "export", function (val) {
38
+ return val;
39
+ });
40
+ _defineProperty(this, "getParentId", function () {
41
+ var _this$id$split = _this.id.split("_"),
42
+ _this$id$split2 = _slicedToArray(_this$id$split, 3),
43
+ key = _this$id$split2[0],
44
+ name = _this$id$split2[1],
45
+ code = _this$id$split2[2];
46
+ return "".concat(key, "_").concat(name);
47
+ });
48
+ _defineProperty(this, "renderClient", function (record) {
49
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
50
+ id: _this.id,
51
+ label: _this.name,
52
+ value: _this.getComponentValue(record)
53
+ }) : null;
54
+ });
55
+ _defineProperty(this, "renderPc", function (value, record) {
56
+ var picList = _this.getComponentValue(record);
57
+ if (!picList.length) {
58
+ return /*#__PURE__*/React.createElement("span", null, "--");
59
+ }
60
+ return picList.map(function (t) {
61
+ return /*#__PURE__*/React.createElement(Image, {
62
+ width: 30,
63
+ src: t,
64
+ onClick: function onClick(e) {
65
+ return e.stopPropagation();
66
+ }
67
+ });
68
+ });
69
+ });
70
+ _defineProperty(this, "renderLog", function (r) {
71
+ var id = _this.getParentId();
72
+ if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
73
+ return _this.renderPc(undefined, r);
74
+ });
75
+ _defineProperty(this, "getComponentValue", function (r) {
76
+ var picList = (r === null || r === void 0 ? void 0 : r[_this.id]) || [];
77
+ return picList === null || picList === void 0 ? void 0 : picList.map(function (url) {
78
+ return url.startsWith("http") ? url : url.startsWith("/") ? "https://kefu.kuaimai.com".concat(url) : "https://kefu.kuaimai.com/".concat(url);
79
+ });
80
+ });
81
+ _defineProperty(this, "getComponentExport", function (r) {
82
+ return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
83
+ });
84
+ _defineProperty(this, "renderExport", function (value, record) {
85
+ var picList = _this.getComponentValue(record);
86
+ return picList.join(",");
87
+ });
88
+ _defineProperty(this, "editRender", function () {
89
+ return null;
90
+ });
91
+ _defineProperty(this, "filterConfig", function () {
92
+ return [];
93
+ });
94
+ this.name = options.name;
95
+ this.id = options.id;
96
+ this.sortField = options.id;
97
+ this.formField = options.id;
98
+ this.type = options.type;
99
+ if (options.parentName) {
100
+ this.parentName = options.parentName;
101
+ }
102
+ this.componentConfig = options.componentConfig;
103
+ this.align = "left";
104
+ this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
105
+ this.isCombinationComponent = false;
106
+ this.canSort = false;
107
+ this.dataType = "string";
108
+ this.children = [];
109
+ if (options.transformValue) {
110
+ this.transformValue = options.transformValue;
111
+ }
112
+ if (options.renderExport) {
113
+ this.export = options.renderExport;
114
+ }
115
+ });
116
+ export default HeaderChildPic;
@@ -1,4 +1,7 @@
1
+ var _excluded = ["component"];
1
2
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
5
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
6
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
7
  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."); }
@@ -16,13 +19,63 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
16
19
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
20
  import React from "react";
18
21
  import { Table } from "antd";
19
- import { SubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
20
- import BsHeaderChild from "../BS/common/BsHeaderChild";
22
+ import { SubForm as SubFormComponent, renderMap, renderSplitMap } from "@kmkf-fe-packages/basic-components";
23
+ import { BsHeaderChild } from "../BS/common";
24
+ import HeaderChildFile from "./children/HeaderChildFile";
25
+ import HeaderChildPic from "./children/HeaderChildPic";
26
+ import Express from "../Express";
21
27
  import GetFormItem from "../GetFormItem";
22
28
  import ItemView from "../../commonComponents/ItemView";
23
29
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
24
- import { difference } from 'lodash';
30
+ import { difference } from "lodash";
25
31
  import { SYMBOL } from "../../constant";
32
+ var ChildrenMap = {
33
+ CHECKBOX: {
34
+ component: BsHeaderChild,
35
+ transformValue: function transformValue(value) {
36
+ if (!(value !== null && value !== void 0 && value.length)) return null;
37
+ return value === null || value === void 0 ? void 0 : value.join(",");
38
+ },
39
+ renderExport: function renderExport(value) {
40
+ if (!(value !== null && value !== void 0 && value.length)) return null;
41
+ return value === null || value === void 0 ? void 0 : value.join(",");
42
+ }
43
+ },
44
+ BASIC_MULT_SELECT: {
45
+ component: BsHeaderChild,
46
+ transformValue: function transformValue(value) {
47
+ if (!(value !== null && value !== void 0 && value.length)) return null;
48
+ return value === null || value === void 0 ? void 0 : value.join(",");
49
+ },
50
+ renderExport: function renderExport(value) {
51
+ if (!(value !== null && value !== void 0 && value.length)) return null;
52
+ return value === null || value === void 0 ? void 0 : value.join(",");
53
+ }
54
+ },
55
+ PICTURE: {
56
+ component: HeaderChildPic
57
+ },
58
+ FILE: {
59
+ component: HeaderChildFile
60
+ },
61
+ jbCFrJV4m7_trajectoryCompany: {
62
+ component: Express
63
+ },
64
+ "0qFEv9GEyd_returnLogisticsCompany": {
65
+ component: Express
66
+ }
67
+ };
68
+ var getChildComponent = function getChildComponent(item) {
69
+ try {
70
+ return ChildrenMap[item.workOrderComponentType] || ChildrenMap[item.key] || {
71
+ component: BsHeaderChild
72
+ };
73
+ } catch (e) {
74
+ return {
75
+ component: BsHeaderChild
76
+ };
77
+ }
78
+ };
26
79
  var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
27
80
  var _this = this;
28
81
  _classCallCheck(this, SubForm);
@@ -80,7 +133,23 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
80
133
  ellipsis: true,
81
134
  width: item.width,
82
135
  render: function render(val) {
83
- return /*#__PURE__*/React.createElement("span", null, val);
136
+ if (renderMap[item.workOrderComponentType]) {
137
+ return /*#__PURE__*/React.createElement("div", {
138
+ style: {
139
+ width: "100%",
140
+ overflow: "auto"
141
+ }
142
+ }, renderMap[item.workOrderComponentType](val));
143
+ } else if (renderSplitMap[item.key]) {
144
+ return /*#__PURE__*/React.createElement("div", {
145
+ style: {
146
+ width: "100%",
147
+ overflow: "auto"
148
+ }
149
+ }, renderSplitMap[item.key](val));
150
+ } else {
151
+ return /*#__PURE__*/React.createElement("span", null, val);
152
+ }
84
153
  }
85
154
  };
86
155
  })) || []));
@@ -191,10 +260,13 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
191
260
  this.isCombinationComponent = true;
192
261
  this.canSort = false;
193
262
  this.children = (this.getNewTableHeader() || []).map(function (item) {
194
- return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
263
+ var _getChildComponent = getChildComponent(item),
264
+ component = _getChildComponent.component,
265
+ other = _objectWithoutProperties(_getChildComponent, _excluded);
266
+ return new component(_objectSpread(_objectSpread({}, options), {}, {
195
267
  name: item.name,
196
268
  id: "".concat(options.id, "_productList_").concat(item.key)
197
- }));
269
+ }, other));
198
270
  });
199
271
  this.dataType = "object";
200
272
  });
@@ -1,5 +1,5 @@
1
- import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
+ import React from "react";
3
3
  declare class ETradeId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -8,13 +8,14 @@ declare class ETradeId implements ComponentInterface {
8
8
  rules: any[];
9
9
  showContains: boolean;
10
10
  onlyContainsString: boolean;
11
- componentConfig: ComponentInterface['componentConfig'];
12
- effects: ComponentInterface['effects'];
11
+ componentConfig: ComponentInterface["componentConfig"];
12
+ effects: ComponentInterface["effects"];
13
13
  isCombinationComponent: boolean;
14
14
  formField: string;
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
- dataType: ComponentInterface['dataType'];
17
+ dataType: ComponentInterface["dataType"];
18
+ focusTradeIdValue: any;
18
19
  constructor(options: PickOption);
19
20
  renderClient: (record: any) => React.JSX.Element | null;
20
21
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -6,11 +6,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
- import React from 'react';
10
- import { TradeId } from '@kmkf-fe-packages/basic-components';
9
+ import React from "react";
10
+ import { TradeId } from "@kmkf-fe-packages/basic-components";
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import { SYMBOL, batchInput } from "../../constant";
15
15
  import CopyText from "../../commonComponents/CopyText";
16
16
  var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
@@ -30,6 +30,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(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, "focusTradeIdValue", void 0);
33
34
  _defineProperty(this, "renderClient", function (record) {
34
35
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
36
  id: _this.id,
@@ -50,7 +51,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
50
51
  }, /*#__PURE__*/React.createElement(CopyText, {
51
52
  text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")],
52
53
  style: {
53
- color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? 'red' : 'inherit'
54
+ color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? "red" : "inherit"
54
55
  }
55
56
  }));
56
57
  });
@@ -63,13 +64,26 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
63
64
  });
64
65
  _defineProperty(this, "renderExport", function (value, record) {
65
66
  var _record;
66
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
67
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : "--";
67
68
  });
68
69
  _defineProperty(this, "editRender", function (p) {
69
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2;
70
+ var _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects2, _this$effects3;
71
+ var onTradeIdFocus = function onTradeIdFocus(e) {
72
+ var _this$componentConfig;
73
+ _this.focusTradeIdValue = e.target.value;
74
+ if (typeof ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.onFocus) === "function") {
75
+ _this.componentConfig.onFocus(e);
76
+ }
77
+ };
70
78
  var onTradeIdBlur = function onTradeIdBlur(e) {
71
- var _p$onBlur;
72
- p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, 'tradeId');
79
+ var _this$effects, _this$effects$form, _p$onBlur;
80
+ if (_this.focusTradeIdValue === e.target.value) {
81
+ return;
82
+ }
83
+ (_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({
84
+ skx_return_billNo_blur_from: _this.id
85
+ });
86
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, "tradeId");
73
87
  };
74
88
  return /*#__PURE__*/React.createElement(GetFormItem, {
75
89
  title: _this.name,
@@ -77,12 +91,13 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
77
91
  rules: _this.rules,
78
92
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
79
93
  display: p === null || p === void 0 ? void 0 : p.display,
80
- required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
81
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
94
+ required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
95
+ 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 : "",
82
96
  component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
83
- shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
84
- shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
97
+ shopId: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopId,
98
+ shopList: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList,
85
99
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
100
+ onFocus: onTradeIdFocus,
86
101
  onBlur: onTradeIdBlur
87
102
  }))
88
103
  });
@@ -95,10 +110,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
95
110
  // 过滤组件id
96
111
  name: item.name,
97
112
  // 过滤组件名称
98
- filterComponentType: 'TradeInput',
113
+ filterComponentType: "TradeInput",
99
114
  filterFn: function filterFn(value) {
100
115
  return function (i) {
101
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
116
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "tradeId"), value);
102
117
  };
103
118
  },
104
119
  formatFilterValue: function formatFilterValue(value) {
@@ -119,6 +134,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
119
134
  this.isCombinationComponent = false;
120
135
  this.canSort = true;
121
136
  this.children = [];
122
- this.dataType = 'string';
137
+ this.dataType = "string";
138
+ this.focusTradeIdValue = undefined;
123
139
  });
124
140
  export default ETradeId;
@@ -12,7 +12,7 @@ import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
14
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
- import { WdtReissue as Reissue } from "@kmkf-fe-packages/basic-components";
15
+ import { WdtReissue as Reissue, erpFormValidator } from "@kmkf-fe-packages/basic-components";
16
16
  import { SYMBOL } from "../../../constant";
17
17
  import { BsGoodsTable } from "../../Common/index";
18
18
  import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
@@ -24,7 +24,15 @@ var typeMap = {
24
24
  typeName: "wdtReissueType",
25
25
  remark: "wdtReissueType_memo",
26
26
  systemOrderNo: "wdtSystemOrderNo",
27
- errMsg: "请选择旺店通补发商品"
27
+ errMsg: "请选择旺店通补发商品",
28
+ validator: function validator(_rule, value, type) {
29
+ if (!_rule.required) return Promise.resolve();
30
+ var validatorFlag = erpFormValidator(_rule, value, type);
31
+ if (validatorFlag) {
32
+ return validatorFlag;
33
+ }
34
+ return Promise.resolve();
35
+ }
28
36
  }
29
37
  };
30
38
  var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
@@ -95,7 +103,7 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
95
103
  required: false,
96
104
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
97
105
  display: p === null || p === void 0 ? void 0 : p.display,
98
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
106
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
99
107
  component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
100
108
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
101
109
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -176,17 +184,29 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
176
184
  }));
177
185
  this.children = [this.bsType, this.systemOrderNo, this.bsMemo, this.reissueGoods];
178
186
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
179
- this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
180
- required: true,
187
+ var isRequired = this === null || this === void 0 ? void 0 : (_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required;
188
+ this.rules = [{
189
+ required: isRequired,
181
190
  validator: function validator(_, value) {
182
- var _value, _typeMap$options$type6;
183
- 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)) {
191
+ var _value, _typeMap$options$type6, _typeMap$options$type8;
192
+ if (isRequired && (!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))) {
184
193
  var _typeMap$options$type7;
185
194
  return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
186
195
  }
196
+ if (isRequired && (!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)]))) {
197
+ return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"));
198
+ }
187
199
  return Promise.resolve();
188
200
  }
189
- }] : [];
201
+ }, {
202
+ required: isRequired,
203
+ validator: function validator(_rule, value) {
204
+ var _typeMap$options$type9, _typeMap$options$type10;
205
+ return ((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : (_typeMap$options$type10 = _typeMap$options$type9.validator) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.call(_typeMap$options$type9, _rule, value, options.type)) || function () {
206
+ return Promise.resolve();
207
+ };
208
+ }
209
+ }];
190
210
  this.dataType = "object";
191
211
  });
192
212
  export default WdtReissue;
@@ -1,3 +1,3 @@
1
- import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
1
+ import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | FlowTag | GyGoods | GyReissue | GyReturn | JstSendGood | MsgStatus | PublicGoods | SkxGoods | SkxIdInputSelect | SubForm | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | AsyncSelect | OrderSubForm;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | CommonMultiStatus | CommonSystemOrder | JstSendGood | LogisticsInterception | PublicGoods | PublicReissueGoods | StatusSelect | TradeId | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
@@ -1,6 +1,6 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
2
  // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -35,6 +35,7 @@ export var factory = function factory(type, options) {
35
35
  case "REFUND_TYPE":
36
36
  case "EXECUTE_ACTION_TYPE":
37
37
  case "ERP_ORDER_STATUS":
38
+ case "JST_OUTBOUND_STATUS":
38
39
  return new BasicSelect(options);
39
40
  case "PICTURE":
40
41
  return new BasicPicture(options);
@@ -122,10 +123,11 @@ export var factory = function factory(type, options) {
122
123
  case "FLOW_TAG":
123
124
  return new FlowTag(options);
124
125
  case "COMPLETED_DATETIME":
125
- return new CommonDataTime(options);
126
126
  case "CREATED_DATETIME":
127
- return new CommonDataTime(options);
128
127
  case "UPDATE_DATETIME":
128
+ case "FLOW_CREATED_DATETIME":
129
+ case "FLOW_UPDATE_DATETIME":
130
+ case "FLOW_CREATE_TIME_DATETIME":
129
131
  return new CommonDataTime(options);
130
132
  case "TEMPLATE_ID_INPUT":
131
133
  return new TemplateSelect(options);
@@ -142,6 +144,10 @@ export var factory = function factory(type, options) {
142
144
  case "BS_E3_SYSTEM_ORDER":
143
145
  case "GY_SYSTEM_ORDER":
144
146
  case "JST_SYSTEM_ORDER":
147
+ case "JY_SYSTEM_ORDER":
148
+ case "JKY_SYSTEM_ORDER":
149
+ case "WDT_RETURN_BILL_NO":
150
+ case "PLATFORM_AFTER_SALES_ORDER":
145
151
  return new BsSystemOrder(options);
146
152
  case "JST_SEND_GOOD":
147
153
  case "BS_SEND_GOOD":
@@ -150,7 +156,11 @@ export var factory = function factory(type, options) {
150
156
  case "WDT_SEND_GOOD":
151
157
  case "KM_SEND_GOOD":
152
158
  case "GY_SEND_GOOD":
159
+ case "JY_SEND_GOOD":
160
+ case "JKY_SEND_GOOD":
153
161
  return new JstSendGood(options);
162
+ case "KM_RETURN_WAREHOUSE":
163
+ return new ReturnWarehouse(options);
154
164
  case "BS_POSTING":
155
165
  return new BsPosting(options);
156
166
  case "BS_GOODS":
@@ -159,11 +169,18 @@ export var factory = function factory(type, options) {
159
169
  return new BsE3Goods(options);
160
170
  case "GY_GOODS":
161
171
  return new GyGoods(options);
172
+ case "JY_GOODS":
173
+ case "JKY_GOODS":
162
174
  case "KM_GOODS":
163
175
  case "JST_GOODS":
176
+ case "WDT_AFTERSALE_GOODS":
177
+ case "JST_AFTERSALE_GOODS":
164
178
  return new PublicGoods(options);
165
179
  case "JST_REISSUE_GOODS":
166
180
  case "KM_REISSUE_GOODS":
181
+ case "KM_RETURN_GOODS":
182
+ case "JY_REISSUE_GOODS":
183
+ case "JKY_REISSUE_GOODS":
167
184
  return new PublicReissueGoods(options);
168
185
  case "BS_E3_REISSUE_GOODS":
169
186
  return new BsE3Reissue(options);
@@ -171,6 +188,8 @@ export var factory = function factory(type, options) {
171
188
  return new BsExchange(options);
172
189
  case "WDT_EXCHANGE_GOODS":
173
190
  return new WdtExchange(options);
191
+ case "KM_EXCHANGE_GOODS":
192
+ return new KmExchange(options);
174
193
  case "JST_EXCHANGE_GOODS":
175
194
  return new PublicExchange(options);
176
195
  case "BS_REISSUE_GOODS":
@@ -188,6 +207,7 @@ export var factory = function factory(type, options) {
188
207
  case "JST_RETURN_GOODS":
189
208
  return new PublicReissueGoods(options);
190
209
  case "REISSUE_TRADE_ID":
210
+ case "SWAP_OUT_TRADE_ID":
191
211
  case "ERP_AFTER_SALE_TRADE_ID":
192
212
  case "BS_DELIVERY_NO":
193
213
  case "RETURN_GOODS_TRADE_ID":
@@ -200,6 +220,8 @@ export var factory = function factory(type, options) {
200
220
  case "JST_LOGISTICS":
201
221
  case "KM_LOGISTICS":
202
222
  case "GY_LOGISTICS":
223
+ case "JY_LOGISTICS":
224
+ case "JKY_LOGISTICS":
203
225
  case "SKX_LOGISTICS":
204
226
  case "SKX_RETURN_LOGISTICS":
205
227
  return new BsLogistics(options);
@@ -207,6 +229,7 @@ export var factory = function factory(type, options) {
207
229
  return new FlowWorkOrderId(options);
208
230
  case "OUTER_WORK_ORDER_ID_INPUT":
209
231
  return new FlowWorkOrderId(options);
232
+ case "ERP_REMARK":
210
233
  case "REISSUE_STATUS":
211
234
  case "ADJUST_WORK_ORDER_STATUS":
212
235
  case "CREATE_STATUS":
@@ -218,12 +241,14 @@ export var factory = function factory(type, options) {
218
241
  case "AGREE_RETURN_GOODS_STATUS":
219
242
  case "REJECT_RETURN_GOODS_STATUS":
220
243
  case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
244
+ case "REPAIR_ORDER_STATUS":
221
245
  return new StatusSelect(options);
222
246
  case "RETURN_GOODS_STATUS":
223
247
  case "EXCHANGE_STATUS":
224
248
  case "WAREHOUSING_STATUS":
225
249
  case "BS_E3_WAREHOUSING_STATUS":
226
250
  case "WDT_WAREHOUSING_STATUS":
251
+ case "JKY_WAREHOUSING_STATUS":
227
252
  return new CommonMultiStatus(options);
228
253
  case "MSG_STATUS":
229
254
  return new MsgStatus(options);
@@ -250,14 +275,12 @@ export var factory = function factory(type, options) {
250
275
  return new NodeInput(options);
251
276
  case "FLOW_WORK_STATUS_SELECT":
252
277
  return new FlowWorkOrderStatus(options);
253
- case "FLOW_CREATED_DATETIME":
254
- return new CommonDataTime(options);
255
- case "FLOW_UPDATE_DATETIME":
256
- return new CommonDataTime(options);
257
278
  case "WDT_GOODS":
258
279
  // 万里牛商品
259
280
  return new WdtGoods(options);
260
281
  case "BUSINESS_ORDER_NO":
282
+ case "REPAIR_ORDER_SN":
283
+ case "REPAIR_ORDER_ID":
261
284
  return new CommonInput(options);
262
285
  case "PAYMENT_VOUCHER_CODE":
263
286
  return new PaymentVoucherCode(options);
@@ -294,6 +317,8 @@ export var factory = function factory(type, options) {
294
317
  return new SkxGoods(options);
295
318
  case "ORDER_SUBFORM":
296
319
  return new OrderSubForm(options);
320
+ case "FLOW_OVERALL_STATUS_SELECT":
321
+ return new FlowOverallStatusSelect(options);
297
322
  default:
298
323
  return new BasicInput(options);
299
324
  }
@@ -101,6 +101,9 @@ export { default as AsyncSelect } from "./components/Public/AsyncSelect";
101
101
  export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
102
102
  export { default as SkxGoods } from "./components/SKX/SkxGoods";
103
103
  export { default as OrderSubForm } from "./components/OrderSubForm";
104
+ export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
105
+ export { default as ReturnWarehouse } from "./components/Public/ReturnWarehouse";
106
+ export { default as KmExchange } from "./components/KM/KmExchange";
104
107
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
105
108
  export { factory } from "./factory";
106
109
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
@@ -113,3 +116,4 @@ export { default as Global } from "./commonComponents/GlobalContext";
113
116
  export * as ErpScenes from "./commonComponents/ErpContext";
114
117
  export * as servers from "./service/api";
115
118
  export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
119
+ export * from "./Hooks";