@kmkf-fe-packages/services-components 2.5.0-rc.0 → 2.5.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 (121) 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 +7 -2
  19. package/dist/esm/components/BS/BsLogistics/index.js +61 -8
  20. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  21. package/dist/esm/components/BS/BsSystemOrder/index.js +56 -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.d.ts +4 -1
  29. package/dist/esm/components/BS/common/expressCode.js +16 -4
  30. package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
  31. package/dist/esm/components/BS/common/expressCompany.js +31 -5
  32. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  33. package/dist/esm/components/Cascader/index.d.ts +8 -6
  34. package/dist/esm/components/Cascader/index.js +26 -22
  35. package/dist/esm/components/Common/constants/bs.js +2 -2
  36. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  37. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  38. package/dist/esm/components/Common/constants/wdt.js +104 -0
  39. package/dist/esm/components/Common/index.d.ts +2 -2
  40. package/dist/esm/components/Common/index.js +40 -24
  41. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  42. package/dist/esm/components/CommonDataTime/index.js +2 -2
  43. package/dist/esm/components/CommonHeaderGood/index.js +1165 -18
  44. package/dist/esm/components/CommonInput/index.js +11 -3
  45. package/dist/esm/components/CommonMultiStatus/index.js +73 -36
  46. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  47. package/dist/esm/components/ErpTradeId/index.js +7 -4
  48. package/dist/esm/components/File/index.d.ts +6 -6
  49. package/dist/esm/components/File/index.js +9 -10
  50. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  51. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  52. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  53. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  54. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  55. package/dist/esm/components/Input/index.d.ts +4 -4
  56. package/dist/esm/components/Input/index.js +35 -31
  57. package/dist/esm/components/JST/JstSendGood/index.js +17 -1
  58. package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
  59. package/dist/esm/components/KM/KmExchange/index.js +136 -0
  60. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  61. package/dist/esm/components/Logistics/index.d.ts +1 -0
  62. package/dist/esm/components/Logistics/index.js +10 -0
  63. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  64. package/dist/esm/components/LogisticsInterception/index.d.ts +20 -0
  65. package/dist/esm/components/LogisticsInterception/index.js +10 -5
  66. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
  67. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
  68. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  69. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  70. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  71. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
  72. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  73. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  74. package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
  75. package/dist/esm/components/OrderSubForm/index.js +24 -7
  76. package/dist/esm/components/Payment/index.d.ts +13 -12
  77. package/dist/esm/components/Payment/index.js +31 -11
  78. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  79. package/dist/esm/components/Picture/index.d.ts +5 -5
  80. package/dist/esm/components/Picture/index.js +20 -20
  81. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  82. package/dist/esm/components/PicturePro/index.js +42 -25
  83. package/dist/esm/components/PostIng/index.d.ts +5 -0
  84. package/dist/esm/components/PostIng/index.js +42 -8
  85. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  86. package/dist/esm/components/Public/Goods/index.js +42 -2
  87. package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
  88. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  89. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  90. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  91. package/dist/esm/components/ReceiverAddress/index.js +41 -27
  92. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  93. package/dist/esm/components/Remark/index.d.ts +18 -2
  94. package/dist/esm/components/Remark/index.js +37 -2
  95. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  96. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  97. package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
  98. package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
  99. package/dist/esm/components/Select/index.d.ts +1 -0
  100. package/dist/esm/components/Select/index.js +19 -11
  101. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  102. package/dist/esm/components/ShopInput/index.js +12 -9
  103. package/dist/esm/components/StatusSelect/index.js +4 -0
  104. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  105. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  106. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  107. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  108. package/dist/esm/components/SubForm/index.js +78 -6
  109. package/dist/esm/components/TradeId/index.d.ts +5 -5
  110. package/dist/esm/components/TradeId/index.js +17 -14
  111. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  112. package/dist/esm/factory.d.ts +2 -2
  113. package/dist/esm/factory.js +34 -7
  114. package/dist/esm/index.d.ts +4 -0
  115. package/dist/esm/index.js +6 -1
  116. package/dist/esm/service/api.d.ts +3 -0
  117. package/dist/esm/service/api.js +34 -1
  118. package/dist/esm/type.d.ts +38 -0
  119. package/package.json +4 -4
  120. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  121. 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,13 @@ 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
18
  constructor(options: PickOption);
19
19
  renderClient: (record: any) => React.JSX.Element | null;
20
20
  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) {
@@ -50,7 +50,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
50
50
  }, /*#__PURE__*/React.createElement(CopyText, {
51
51
  text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")],
52
52
  style: {
53
- color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? 'red' : 'inherit'
53
+ color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? "red" : "inherit"
54
54
  }
55
55
  }));
56
56
  });
@@ -63,13 +63,16 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
63
63
  });
64
64
  _defineProperty(this, "renderExport", function (value, record) {
65
65
  var _record;
66
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
66
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : "--";
67
67
  });
68
68
  _defineProperty(this, "editRender", function (p) {
69
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2;
69
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects2, _this$effects3;
70
70
  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');
71
+ var _this$effects, _this$effects$form, _p$onBlur;
72
+ (_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({
73
+ skx_return_billNo_blur_from: _this.id
74
+ });
75
+ 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
76
  };
74
77
  return /*#__PURE__*/React.createElement(GetFormItem, {
75
78
  title: _this.name,
@@ -78,10 +81,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
78
81
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
79
82
  display: p === null || p === void 0 ? void 0 : p.display,
80
83
  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 : '',
84
+ 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 : "",
82
85
  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,
86
+ shopId: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopId,
87
+ shopList: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList,
85
88
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
86
89
  onBlur: onTradeIdBlur
87
90
  }))
@@ -95,10 +98,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
95
98
  // 过滤组件id
96
99
  name: item.name,
97
100
  // 过滤组件名称
98
- filterComponentType: 'TradeInput',
101
+ filterComponentType: "TradeInput",
99
102
  filterFn: function filterFn(value) {
100
103
  return function (i) {
101
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
104
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "tradeId"), value);
102
105
  };
103
106
  },
104
107
  formatFilterValue: function formatFilterValue(value) {
@@ -119,6 +122,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
119
122
  this.isCombinationComponent = false;
120
123
  this.canSort = true;
121
124
  this.children = [];
122
- this.dataType = 'string';
125
+ this.dataType = "string";
123
126
  });
124
127
  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 | OrderSubForm | PublicGoods | BasicSelect | SkxGoods | SkxIdInputSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | 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;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BsE3Reissue | BasicCascader | CommonDataTime | CommonInput | CommonMultiStatus | CommonSystemOrder | BasicFile | FlowOverallStatusSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicPosting | SubForm | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | ReturnWarehouse | KmExchange | GyGoods;
@@ -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,9 @@ 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":
145
150
  return new BsSystemOrder(options);
146
151
  case "JST_SEND_GOOD":
147
152
  case "BS_SEND_GOOD":
@@ -150,7 +155,11 @@ export var factory = function factory(type, options) {
150
155
  case "WDT_SEND_GOOD":
151
156
  case "KM_SEND_GOOD":
152
157
  case "GY_SEND_GOOD":
158
+ case "JY_SEND_GOOD":
159
+ case "JKY_SEND_GOOD":
153
160
  return new JstSendGood(options);
161
+ case "KM_RETURN_WAREHOUSE":
162
+ return new ReturnWarehouse(options);
154
163
  case "BS_POSTING":
155
164
  return new BsPosting(options);
156
165
  case "BS_GOODS":
@@ -159,11 +168,18 @@ export var factory = function factory(type, options) {
159
168
  return new BsE3Goods(options);
160
169
  case "GY_GOODS":
161
170
  return new GyGoods(options);
171
+ case "JY_GOODS":
172
+ case "JKY_GOODS":
162
173
  case "KM_GOODS":
163
174
  case "JST_GOODS":
175
+ case "WDT_AFTERSALE_GOODS":
176
+ case "JST_AFTERSALE_GOODS":
164
177
  return new PublicGoods(options);
165
178
  case "JST_REISSUE_GOODS":
166
179
  case "KM_REISSUE_GOODS":
180
+ case "KM_RETURN_GOODS":
181
+ case "JY_REISSUE_GOODS":
182
+ case "JKY_REISSUE_GOODS":
167
183
  return new PublicReissueGoods(options);
168
184
  case "BS_E3_REISSUE_GOODS":
169
185
  return new BsE3Reissue(options);
@@ -171,6 +187,8 @@ export var factory = function factory(type, options) {
171
187
  return new BsExchange(options);
172
188
  case "WDT_EXCHANGE_GOODS":
173
189
  return new WdtExchange(options);
190
+ case "KM_EXCHANGE_GOODS":
191
+ return new KmExchange(options);
174
192
  case "JST_EXCHANGE_GOODS":
175
193
  return new PublicExchange(options);
176
194
  case "BS_REISSUE_GOODS":
@@ -200,7 +218,10 @@ export var factory = function factory(type, options) {
200
218
  case "JST_LOGISTICS":
201
219
  case "KM_LOGISTICS":
202
220
  case "GY_LOGISTICS":
221
+ case "JY_LOGISTICS":
222
+ case "JKY_LOGISTICS":
203
223
  case "SKX_LOGISTICS":
224
+ case "SKX_RETURN_LOGISTICS":
204
225
  return new BsLogistics(options);
205
226
  case "FLOW_WORK_ORDER_ID_INPUT":
206
227
  return new FlowWorkOrderId(options);
@@ -217,12 +238,14 @@ export var factory = function factory(type, options) {
217
238
  case "AGREE_RETURN_GOODS_STATUS":
218
239
  case "REJECT_RETURN_GOODS_STATUS":
219
240
  case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
241
+ case "REPAIR_ORDER_STATUS":
220
242
  return new StatusSelect(options);
221
243
  case "RETURN_GOODS_STATUS":
222
244
  case "EXCHANGE_STATUS":
223
245
  case "WAREHOUSING_STATUS":
224
246
  case "BS_E3_WAREHOUSING_STATUS":
225
247
  case "WDT_WAREHOUSING_STATUS":
248
+ case "JKY_WAREHOUSING_STATUS":
226
249
  return new CommonMultiStatus(options);
227
250
  case "MSG_STATUS":
228
251
  return new MsgStatus(options);
@@ -249,14 +272,12 @@ export var factory = function factory(type, options) {
249
272
  return new NodeInput(options);
250
273
  case "FLOW_WORK_STATUS_SELECT":
251
274
  return new FlowWorkOrderStatus(options);
252
- case "FLOW_CREATED_DATETIME":
253
- return new CommonDataTime(options);
254
- case "FLOW_UPDATE_DATETIME":
255
- return new CommonDataTime(options);
256
275
  case "WDT_GOODS":
257
276
  // 万里牛商品
258
277
  return new WdtGoods(options);
259
278
  case "BUSINESS_ORDER_NO":
279
+ case "REPAIR_ORDER_SN":
280
+ case "REPAIR_ORDER_ID":
260
281
  return new CommonInput(options);
261
282
  case "PAYMENT_VOUCHER_CODE":
262
283
  return new PaymentVoucherCode(options);
@@ -276,6 +297,7 @@ export var factory = function factory(type, options) {
276
297
  case "WDT_TAGS":
277
298
  return new AsyncSelect(options);
278
299
  case "SKX_OUTBOUND_NOTICE_NO":
300
+ case "SKX_RETURN_BILL_NO":
279
301
  return new SkxIdInputSelect(options);
280
302
  case "SKX_ORDER_TYPE":
281
303
  return new BasicSelectOption(options);
@@ -284,11 +306,16 @@ export var factory = function factory(type, options) {
284
306
  case "SKX_SHOP_NAME":
285
307
  case "SKX_WAREHOUSE":
286
308
  case "SKX_ORDER_STATUS":
309
+ case "SKX_REFUND_BILL_NO":
310
+ case "SKX_RETURN_ORDER_STATUS":
287
311
  return new BasicTypeInput(options);
288
312
  case "SKX_GOODS":
313
+ case "SKX_RETURN_GOODS":
289
314
  return new SkxGoods(options);
290
315
  case "ORDER_SUBFORM":
291
316
  return new OrderSubForm(options);
317
+ case "FLOW_OVERALL_STATUS_SELECT":
318
+ return new FlowOverallStatusSelect(options);
292
319
  default:
293
320
  return new BasicInput(options);
294
321
  }
@@ -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";
package/dist/esm/index.js CHANGED
@@ -101,6 +101,10 @@ 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";
107
+
104
108
  // TODO: ERP 打款工单使用
105
109
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
106
110
  export { factory } from "./factory";
@@ -115,4 +119,5 @@ import * as _ErpScenes from "./commonComponents/ErpContext";
115
119
  export { _ErpScenes as ErpScenes };
116
120
  import * as _servers from "./service/api";
117
121
  export { _servers as servers };
118
- export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
122
+ export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
123
+ export * from "./Hooks";