@kmkf-fe-packages/services-components 1.5.0 → 1.6.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +3 -1
  2. package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/index.js +1 -1
  4. package/dist/esm/components/ActualPayment/index.js +2 -1
  5. package/dist/esm/components/Address/index.js +2 -1
  6. package/dist/esm/components/AfterSalesOrderId/index.js +2 -1
  7. package/dist/esm/components/Alipay/index.js +6 -5
  8. package/dist/esm/components/AlipayAccount/index.js +2 -1
  9. package/dist/esm/components/AlipayName/index.js +2 -1
  10. package/dist/esm/components/BS/BsExchange/index.js +7 -6
  11. package/dist/esm/components/BS/BsGoods/index.js +5 -4
  12. package/dist/esm/components/BS/BsLogistics/index.js +8 -7
  13. package/dist/esm/components/BS/BsPosting/index.js +3 -2
  14. package/dist/esm/components/BS/BsReissue/index.js +5 -4
  15. package/dist/esm/components/BS/BsReturn/index.js +5 -4
  16. package/dist/esm/components/BS/BsSystemOrder/index.js +4 -2
  17. package/dist/esm/components/BS/DeliveryNo/index.js +4 -3
  18. package/dist/esm/components/BuyerNick/index.js +4 -3
  19. package/dist/esm/components/Calculation/index.js +2 -1
  20. package/dist/esm/components/Cascader/index.js +5 -4
  21. package/dist/esm/components/Checkbox/index.js +4 -3
  22. package/dist/esm/components/Common/index.js +4 -3
  23. package/dist/esm/components/CommonInput/index.js +2 -1
  24. package/dist/esm/components/CommonMultiStatus/index.js +4 -3
  25. package/dist/esm/components/CommonSystemOrder/index.js +4 -3
  26. package/dist/esm/components/CommonTradeId/index.js +2 -1
  27. package/dist/esm/components/DataTime/index.js +7 -6
  28. package/dist/esm/components/EItemEnCode/index.js +6 -5
  29. package/dist/esm/components/EItemId/index.js +5 -4
  30. package/dist/esm/components/EItemSelect/index.js +3 -2
  31. package/dist/esm/components/ErpTradeId/index.js +2 -1
  32. package/dist/esm/components/Express/index.js +3 -2
  33. package/dist/esm/components/ExpressCode/index.js +5 -4
  34. package/dist/esm/components/File/index.js +2 -1
  35. package/dist/esm/components/FlowMarkSelect/index.js +2 -1
  36. package/dist/esm/components/FlowStatusSelect/index.js +2 -1
  37. package/dist/esm/components/FlowTag/index.js +2 -1
  38. package/dist/esm/components/FlowWorkOrderId/index.js +2 -1
  39. package/dist/esm/components/FlowWorkOrderStatus/index.js +2 -1
  40. package/dist/esm/components/GetFormItem/index.d.ts +2 -1
  41. package/dist/esm/components/GetFormItem/index.js +4 -2
  42. package/dist/esm/components/Grade/index.js +2 -1
  43. package/dist/esm/components/Input/index.js +17 -16
  44. package/dist/esm/components/JST/JstItemSelect/index.js +7 -5
  45. package/dist/esm/components/JST/JstLogistics/index.js +9 -8
  46. package/dist/esm/components/JST/JstSendGood/index.js +9 -7
  47. package/dist/esm/components/JST/JstSupply/index.js +6 -4
  48. package/dist/esm/components/KmErpSendGood/index.js +9 -7
  49. package/dist/esm/components/Label/index.js +2 -1
  50. package/dist/esm/components/Logistics/index.js +9 -8
  51. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -1
  52. package/dist/esm/components/LogisticsInterception/index.js +5 -4
  53. package/dist/esm/components/LogisticsMoreInterception/index.js +4 -3
  54. package/dist/esm/components/LogisticsMoreTrajectory/index.js +4 -3
  55. package/dist/esm/components/LogisticsTrajectory/index.js +4 -3
  56. package/dist/esm/components/MsgStatus/index.js +6 -4
  57. package/dist/esm/components/MultSelect/index.js +4 -3
  58. package/dist/esm/components/Ordinary/OrdinaryHeader.js +2 -1
  59. package/dist/esm/components/Ordinary/OrdinaryMoney.js +2 -1
  60. package/dist/esm/components/Ordinary/OrdinarySerial.js +2 -1
  61. package/dist/esm/components/Ordinary/index.js +4 -3
  62. package/dist/esm/components/Payment/AlipayNick.js +2 -1
  63. package/dist/esm/components/Payment/AlipayNo.js +2 -1
  64. package/dist/esm/components/Payment/AlipayTime.js +2 -1
  65. package/dist/esm/components/Payment/BuyerNick.js +2 -1
  66. package/dist/esm/components/Payment/PaymentAmount.js +2 -1
  67. package/dist/esm/components/Payment/PaymentTid.js +2 -1
  68. package/dist/esm/components/Payment/index.js +8 -7
  69. package/dist/esm/components/PaymentVoucherCode/index.js +2 -1
  70. package/dist/esm/components/Picture/index.js +3 -2
  71. package/dist/esm/components/PostIng/index.js +3 -2
  72. package/dist/esm/components/Radio/index.js +6 -5
  73. package/dist/esm/components/Rate/index.js +2 -1
  74. package/dist/esm/components/ReceiverAddress/index.js +4 -3
  75. package/dist/esm/components/ReceiverMobile/index.js +2 -1
  76. package/dist/esm/components/ReceiverName/index.js +2 -1
  77. package/dist/esm/components/Remark/index.js +6 -5
  78. package/dist/esm/components/ReturnLogistics/index.js +9 -8
  79. package/dist/esm/components/Select/index.js +4 -3
  80. package/dist/esm/components/ShopName/index.js +2 -1
  81. package/dist/esm/components/StatusSelect/index.js +2 -1
  82. package/dist/esm/components/SubForm/index.d.ts +33 -0
  83. package/dist/esm/components/SubForm/index.js +174 -0
  84. package/dist/esm/components/SystemOrderNo/index.js +2 -1
  85. package/dist/esm/components/TextArea/index.js +2 -1
  86. package/dist/esm/components/ThirdItemSelect/index.js +8 -7
  87. package/dist/esm/components/TradeDateTime/index.js +2 -1
  88. package/dist/esm/components/TradeId/index.js +2 -1
  89. package/dist/esm/components/WDT/WdtExchange/index.js +7 -6
  90. package/dist/esm/components/WDT/WdtGoods/index.js +5 -4
  91. package/dist/esm/components/WDT/WdtRessuie/index.js +5 -4
  92. package/dist/esm/components/WDT/WdtReturn/index.js +5 -4
  93. package/dist/esm/components/WLN/WlnGoods/index.js +5 -4
  94. package/dist/esm/components/WorkOrderId/index.js +2 -1
  95. package/dist/esm/factory.d.ts +2 -2
  96. package/dist/esm/factory.js +5 -4
  97. package/dist/esm/index.d.ts +1 -0
  98. package/dist/esm/index.js +1 -0
  99. package/dist/esm/type.d.ts +12 -1
  100. package/package.json +6 -6
@@ -0,0 +1,174 @@
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
+ 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."); }
6
+ 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); }
7
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
8
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
9
+ 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; }
10
+ 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); } }
11
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
+ 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; }
14
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
+ 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); }
16
+ import React from "react";
17
+ import { Table } from "antd";
18
+ import { SubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
19
+ import Input from "../Input";
20
+ import TextArea from "../TextArea";
21
+ import BsHeaderChild from "../BS/common/BsHeaderChild";
22
+ import GetFormItem from "../GetFormItem";
23
+ import ItemView from "../../commonComponents/ItemView";
24
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
25
+ import { SYMBOL } from "../../constant";
26
+ var WidgetMap = {
27
+ INPUT: Input,
28
+ TEXTAREA: TextArea
29
+ };
30
+ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
31
+ var _this = this,
32
+ _this$componentConfig7,
33
+ _this$componentConfig11,
34
+ _this$componentConfig12;
35
+ _classCallCheck(this, SubForm);
36
+ _defineProperty(this, "name", void 0);
37
+ _defineProperty(this, "id", void 0);
38
+ _defineProperty(this, "sortField", void 0);
39
+ _defineProperty(this, "type", void 0);
40
+ _defineProperty(this, "rules", void 0);
41
+ _defineProperty(this, "componentConfig", void 0);
42
+ _defineProperty(this, "isCombinationComponent", void 0);
43
+ _defineProperty(this, "formField", void 0);
44
+ _defineProperty(this, "canSort", void 0);
45
+ _defineProperty(this, "children", void 0);
46
+ _defineProperty(this, "dataType", void 0);
47
+ _defineProperty(this, "templateId", void 0);
48
+ _defineProperty(this, "workOrderUniqueKey", void 0);
49
+ _defineProperty(this, "renderTabel", function (list) {
50
+ var _ref, _ref$filter, _this$componentConfig, _this$componentConfig2;
51
+ var columns = [{
52
+ dataIndex: "",
53
+ title: "序号",
54
+ align: "center",
55
+ ellipsis: true,
56
+ width: 50,
57
+ render: function render(val, record, index) {
58
+ return /*#__PURE__*/React.createElement("span", null, index + 1);
59
+ }
60
+ }].concat(_toConsumableArray(((_ref = ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : (_this$componentConfig2 = _this$componentConfig.subConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.config) || []) === null || _ref === void 0 ? void 0 : (_ref$filter = _ref.filter(function (t) {
61
+ return t.isShow;
62
+ })) === null || _ref$filter === void 0 ? void 0 : _ref$filter.map(function (item) {
63
+ return {
64
+ dataIndex: item.key,
65
+ title: item.name,
66
+ align: "center",
67
+ ellipsis: true,
68
+ width: 200,
69
+ render: function render(val) {
70
+ return /*#__PURE__*/React.createElement("span", null, val);
71
+ }
72
+ };
73
+ })) || []));
74
+ return /*#__PURE__*/React.createElement(Table, {
75
+ columns: columns,
76
+ dataSource: list,
77
+ rowKey: "uuid",
78
+ size: "small",
79
+ pagination: false,
80
+ scroll: {
81
+ x: "100%"
82
+ },
83
+ locale: {
84
+ emptyText: "暂无数据"
85
+ }
86
+ });
87
+ });
88
+ _defineProperty(this, "renderPc", function () {
89
+ return null;
90
+ });
91
+ _defineProperty(this, "renderLog", function (r) {
92
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_productList")])) return null;
93
+ return _this.renderTabel(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_productList")]);
94
+ });
95
+ _defineProperty(this, "getComponentValue", function (r) {
96
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_productList")];
97
+ });
98
+ _defineProperty(this, "renderExport", function () {
99
+ return null;
100
+ });
101
+ _defineProperty(this, "renderClient", function (record) {
102
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
103
+ id: _this.id,
104
+ label: _this.name,
105
+ value: _this.renderTabel(record === null || record === void 0 ? void 0 : record["".concat(_this.id)])
106
+ }) : null;
107
+ });
108
+ _defineProperty(this, "editRender", function (p) {
109
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
110
+ return /*#__PURE__*/React.createElement(GetFormItem, {
111
+ title: _this.name,
112
+ name: _this.id,
113
+ rules: _this.rules,
114
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
115
+ display: p === null || p === void 0 ? void 0 : p.display,
116
+ required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
117
+ tooltip: (_this$componentConfig5 = (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip) !== null && _this$componentConfig5 !== void 0 ? _this$componentConfig5 : "",
118
+ component: /*#__PURE__*/React.createElement(SubFormComponent, _this.componentConfig)
119
+ });
120
+ });
121
+ _defineProperty(this, "filterConfig", function (item) {
122
+ return [{
123
+ searchDefaultConditions: SYMBOL.like,
124
+ type: item.type,
125
+ id: "".concat(item.id, "_productList"),
126
+ // 过滤组件id
127
+ name: item.name,
128
+ // 过滤组件名称
129
+ filterComponentType: "Input"
130
+ }];
131
+ });
132
+ this.name = options.name;
133
+ this.id = options.id;
134
+ this.sortField = "".concat(options.id, "_productList");
135
+ this.formField = "".concat(options.id, "_productList");
136
+ this.type = options.type;
137
+ this.templateId = options.templateId;
138
+ this.componentConfig = options.componentConfig;
139
+ this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
140
+ this.rules = [{
141
+ required: (_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.required,
142
+ validator: function validator(_, value) {
143
+ var _this$componentConfig8, _this$componentConfig9, _this$componentConfig10;
144
+ var result = (_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : (_this$componentConfig9 = _this$componentConfig8.subConfig) === null || _this$componentConfig9 === void 0 ? void 0 : (_this$componentConfig10 = _this$componentConfig9.config) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.reduce(function (prv, next) {
145
+ if (next.isRequired && next.isShow && !next.isEdit) {
146
+ prv[next.key] = "".concat(next.name, "\u4E0D\u80FD\u4E3A\u7A7A");
147
+ }
148
+ return prv;
149
+ }, {});
150
+ var msg = (value || []).reduce(function (prv, next) {
151
+ Object.keys(next).forEach(function (key) {
152
+ if (result[key] && !next[key]) {
153
+ prv = result[key];
154
+ }
155
+ });
156
+ return prv;
157
+ }, "");
158
+ if (msg) {
159
+ return Promise.reject(new Error(msg));
160
+ }
161
+ return Promise.resolve();
162
+ }
163
+ }];
164
+ this.isCombinationComponent = true;
165
+ this.canSort = false;
166
+ this.children = (((_this$componentConfig11 = this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : (_this$componentConfig12 = _this$componentConfig11.subConfig) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.config) || []).map(function (item) {
167
+ return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
168
+ name: item.name,
169
+ id: "".concat(options.id, "_productList_").concat(item.key)
170
+ }));
171
+ });
172
+ this.dataType = "object";
173
+ });
174
+ export default SubForm;
@@ -50,7 +50,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
50
50
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_systemOrderNo")]) !== null && _record2 !== void 0 ? _record2 : '--';
51
51
  });
52
52
  _defineProperty(this, "editRender", function (p) {
53
- var _this$componentConfig, _this$componentConfig2;
53
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
54
54
  return /*#__PURE__*/React.createElement(GetFormItem, {
55
55
  title: _this.name,
56
56
  name: _this.id,
@@ -58,6 +58,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
58
58
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
59
59
  display: p === null || p === void 0 ? void 0 : p.display,
60
60
  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,
61
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
61
62
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
62
63
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
63
64
  }))
@@ -49,7 +49,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
49
49
  }) : null;
50
50
  });
51
51
  _defineProperty(this, "editRender", function (p) {
52
- var _this$componentConfig, _this$componentConfig2;
52
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
53
53
  return /*#__PURE__*/React.createElement(GetFormItem, {
54
54
  title: _this.name,
55
55
  name: _this.id,
@@ -57,6 +57,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
57
57
  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,
58
58
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
59
59
  display: p === null || p === void 0 ? void 0 : p.display,
60
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
60
61
  component: /*#__PURE__*/React.createElement(ApaasTextArea, _extends({}, _this.componentConfig, {
61
62
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
62
63
  }))
@@ -15,7 +15,7 @@ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
15
  import { SYMBOL } from "../../constant";
16
16
  var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options) {
17
17
  var _this = this,
18
- _this$componentConfig2;
18
+ _this$componentConfig4;
19
19
  _classCallCheck(this, ThirdItemSelect);
20
20
  _defineProperty(this, "name", void 0);
21
21
  _defineProperty(this, "id", void 0);
@@ -68,7 +68,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
68
68
  });
69
69
  });
70
70
  _defineProperty(this, "editRender", function (p) {
71
- var _this$componentConfig, _this$effects, _this$effects2;
71
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$effects, _this$effects2;
72
72
  return /*#__PURE__*/React.createElement(GetFormItem, {
73
73
  title: _this.name,
74
74
  name: _this.id,
@@ -76,8 +76,9 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
76
76
  required: false,
77
77
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
78
78
  display: p === null || p === void 0 ? void 0 : p.display,
79
+ tooltip: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : '',
79
80
  component: /*#__PURE__*/React.createElement(ItemEncode, _extends({}, _this.componentConfig, {
80
- maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
81
+ maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
81
82
  type: 4,
82
83
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
83
84
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
@@ -118,23 +119,23 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
118
119
  this.canSort = false;
119
120
  this.children = [];
120
121
  this.dataType = 'object';
121
- this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
122
+ this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
122
123
  required: true,
123
124
  validator: function validator(_, value) {
124
- var _this$componentConfig3, _this$componentConfig4;
125
+ var _this$componentConfig5, _this$componentConfig6;
125
126
  if (!value || !value.length) {
126
127
  return Promise.reject(new Error('请选择宝贝'));
127
128
  }
128
129
  var hasNotId = (value || []).some(function (item) {
129
130
  return !item.itemId && !item.supplierItemOuterId;
130
131
  });
131
- if ((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.enableItemId && hasNotId) {
132
+ if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.enableItemId && hasNotId) {
132
133
  return Promise.reject(new Error('请输入供应商编码'));
133
134
  }
134
135
  var hasNotName = (value || []).some(function (item) {
135
136
  return !item.supplierName;
136
137
  });
137
- if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.enableSupplierName && hasNotName) {
138
+ if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.enableSupplierName && hasNotName) {
138
139
  return Promise.reject(new Error('请输入供应商名称'));
139
140
  }
140
141
  return Promise.resolve();
@@ -69,7 +69,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
69
69
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
70
70
  });
71
71
  _defineProperty(this, "editRender", function (p) {
72
- var _this$componentConfig, _this$componentConfig2;
72
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
73
73
  return /*#__PURE__*/React.createElement(GetFormItem, {
74
74
  title: _this.name,
75
75
  name: _this.id,
@@ -77,6 +77,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
77
77
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
78
78
  display: p === null || p === void 0 ? void 0 : p.display,
79
79
  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,
80
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
80
81
  component: /*#__PURE__*/React.createElement(DateTime, _extends({}, _this.componentConfig, {
81
82
  dateType: "DATE_TIME"
82
83
  }))
@@ -63,7 +63,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
63
63
  return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
64
64
  });
65
65
  _defineProperty(this, "editRender", function (p) {
66
- var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
66
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2;
67
67
  var onTradeIdBlur = function onTradeIdBlur(e) {
68
68
  var _p$onBlur;
69
69
  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');
@@ -75,6 +75,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
75
75
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
76
76
  display: p === null || p === void 0 ? void 0 : p.display,
77
77
  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,
78
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
78
79
  component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
79
80
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
80
81
  shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
@@ -25,7 +25,7 @@ var WDTExchange = /*#__PURE__*/_createClass(
25
25
  // giftGoods: BsHeaderGood;
26
26
  function WDTExchange(options) {
27
27
  var _this = this,
28
- _this$componentConfig4;
28
+ _this$componentConfig6;
29
29
  _classCallCheck(this, WDTExchange);
30
30
  _defineProperty(this, "name", void 0);
31
31
  _defineProperty(this, "id", void 0);
@@ -73,7 +73,7 @@ function WDTExchange(options) {
73
73
  return null;
74
74
  });
75
75
  _defineProperty(this, "editRender", function (p) {
76
- var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
76
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
77
77
  return /*#__PURE__*/React.createElement(GetFormItem, {
78
78
  title: _this.name,
79
79
  name: _this.id,
@@ -81,8 +81,9 @@ function WDTExchange(options) {
81
81
  required: false,
82
82
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
83
83
  display: p === null || p === void 0 ? void 0 : p.display,
84
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
84
85
  component: /*#__PURE__*/React.createElement(CommonExchangeGoods, _extends({}, _this.componentConfig, {
85
- maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
86
+ maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
86
87
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
87
88
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
88
89
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
@@ -142,10 +143,10 @@ function WDTExchange(options) {
142
143
 
143
144
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
144
145
  this.rules = [{
145
- required: (_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required,
146
+ required: (_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required,
146
147
  validator: function validator(_, value) {
147
- var _this$componentConfig5, _value$wdtExchangeGoo;
148
- if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && !(value !== null && value !== void 0 && (_value$wdtExchangeGoo = value.wdtExchangeGoods) !== null && _value$wdtExchangeGoo !== void 0 && _value$wdtExchangeGoo.length)) {
148
+ var _this$componentConfig7, _value$wdtExchangeGoo;
149
+ if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required && !(value !== null && value !== void 0 && (_value$wdtExchangeGoo = value.wdtExchangeGoods) !== null && _value$wdtExchangeGoo !== void 0 && _value$wdtExchangeGoo.length)) {
149
150
  return Promise.reject(new Error("请选择wdt换货商品"));
150
151
  }
151
152
  return Promise.resolve();
@@ -18,7 +18,7 @@ import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
19
  var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
20
20
  var _this = this,
21
- _this$componentConfig4;
21
+ _this$componentConfig6;
22
22
  _classCallCheck(this, WdtGoods);
23
23
  _defineProperty(this, "name", void 0);
24
24
  _defineProperty(this, "id", void 0);
@@ -64,15 +64,16 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
64
64
  return null;
65
65
  });
66
66
  _defineProperty(this, "editRender", function (p) {
67
- var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
67
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
68
68
  return /*#__PURE__*/React.createElement(GetFormItem, {
69
69
  title: _this.name,
70
70
  name: _this.id,
71
71
  rules: _this.rules,
72
72
  required: false,
73
73
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
74
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
74
75
  component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
75
- maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
76
+ maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
76
77
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
77
78
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
78
79
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
@@ -106,7 +107,7 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
106
107
  }));
107
108
  this.children = [this.wdtGoods];
108
109
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
109
- this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
110
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
110
111
  required: true,
111
112
  validator: function validator(_, value) {
112
113
  var _value$wdtGoods;
@@ -34,7 +34,7 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
34
34
  _typeMap$options$type3,
35
35
  _typeMap$options$type4,
36
36
  _typeMap$options$type5,
37
- _this$componentConfig4;
37
+ _this$componentConfig6;
38
38
  _classCallCheck(this, WdtReissue);
39
39
  _defineProperty(this, "name", void 0);
40
40
  _defineProperty(this, "id", void 0);
@@ -87,7 +87,7 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
87
87
  return null;
88
88
  });
89
89
  _defineProperty(this, "editRender", function (p) {
90
- var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
90
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
91
91
  return /*#__PURE__*/React.createElement(GetFormItem, {
92
92
  title: _this.name,
93
93
  name: _this.id,
@@ -95,8 +95,9 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
95
95
  required: false,
96
96
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
97
97
  display: p === null || p === void 0 ? void 0 : p.display,
98
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
98
99
  component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
99
- maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
100
+ maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
100
101
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
101
102
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
102
103
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
@@ -175,7 +176,7 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
175
176
  }));
176
177
  this.children = [this.bsType, this.systemOrderNo, this.bsMemo, this.reissueGoods];
177
178
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
178
- this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
179
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
179
180
  required: true,
180
181
  validator: function validator(_, value) {
181
182
  var _value, _typeMap$options$type6;
@@ -19,7 +19,7 @@ import { CommonReturnGoods } from "@kmkf-fe-packages/basic-components";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
20
  var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
21
21
  var _this = this,
22
- _this$componentConfig4;
22
+ _this$componentConfig6;
23
23
  _classCallCheck(this, WdtReturn);
24
24
  _defineProperty(this, "name", void 0);
25
25
  _defineProperty(this, "id", void 0);
@@ -65,7 +65,7 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
65
65
  return null;
66
66
  });
67
67
  _defineProperty(this, "editRender", function (p) {
68
- var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
68
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
69
69
  return /*#__PURE__*/React.createElement(GetFormItem, {
70
70
  title: _this.name,
71
71
  name: _this.id,
@@ -73,8 +73,9 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
73
73
  required: false,
74
74
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
75
75
  display: p === null || p === void 0 ? void 0 : p.display,
76
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
76
77
  component: /*#__PURE__*/React.createElement(CommonReturnGoods, _extends({}, _this.componentConfig, {
77
- maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
78
+ maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
78
79
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
79
80
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
80
81
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
@@ -135,7 +136,7 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
135
136
  }));
136
137
  this.children = [this.wdtType, this.reissueGoods];
137
138
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
138
- this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
139
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
139
140
  required: true,
140
141
  validator: function validator(_, value) {
141
142
  var _value$wdtReturnGoods;
@@ -18,7 +18,7 @@ import { WlnGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
19
  var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
20
20
  var _this = this,
21
- _this$componentConfig4;
21
+ _this$componentConfig6;
22
22
  _classCallCheck(this, WlnGoods);
23
23
  _defineProperty(this, "name", void 0);
24
24
  _defineProperty(this, "id", void 0);
@@ -62,7 +62,7 @@ var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
62
62
  return null;
63
63
  });
64
64
  _defineProperty(this, "editRender", function (p) {
65
- var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
65
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
66
66
  return /*#__PURE__*/React.createElement(GetFormItem, {
67
67
  title: _this.name,
68
68
  name: _this.id,
@@ -70,8 +70,9 @@ var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
70
70
  required: false,
71
71
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
72
72
  display: p === null || p === void 0 ? void 0 : p.display,
73
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
73
74
  component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
74
- maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
75
+ maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
75
76
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
76
77
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
77
78
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
@@ -104,7 +105,7 @@ var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
104
105
  }));
105
106
  this.children = [this.wlnGoods];
106
107
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
107
- this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
108
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
108
109
  required: true,
109
110
  validator: function validator(_, value) {
110
111
  var _value$wlnGoods;
@@ -50,7 +50,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
50
50
  return null;
51
51
  });
52
52
  _defineProperty(this, "editRender", function (p) {
53
- var _this$componentConfig, _this$componentConfig2;
53
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
54
54
  return /*#__PURE__*/React.createElement(GetFormItem, {
55
55
  title: _this.name,
56
56
  name: _this.id,
@@ -58,6 +58,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
58
58
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
59
59
  display: p === null || p === void 0 ? void 0 : p.display,
60
60
  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,
61
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
61
62
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
62
63
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
63
64
  }))
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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, KmErpSendGood, AfterSalesOrderId } from "./index";
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, 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, KmErpSendGood, AfterSalesOrderId } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AfterSalesOrderId | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonInput | CommonMultiStatus | CommonSystemOrder | BasicDataTime | ItemEnCode | ItemId | ItemSelect | TradeId | BasicInput | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | PaymentVoucherCode | Label | KmErpSendGood;
3
+ export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AfterSalesOrderId | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonInput | CommonMultiStatus | CommonSystemOrder | BasicDataTime | ItemEnCode | ItemId | ItemSelect | TradeId | BasicInput | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | PaymentVoucherCode | Label | KmErpSendGood;
@@ -1,4 +1,4 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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,
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, 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
3
  CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId } from "./index";
4
4
  export var factory = function factory(type, options) {
@@ -48,6 +48,8 @@ export var factory = function factory(type, options) {
48
48
  return new BasicFile(options);
49
49
  case "POSTING":
50
50
  return new BasicPosting(options);
51
+ case "SUBFORM":
52
+ return new SubForm(options);
51
53
  case "SHOP_NAME_INPUT":
52
54
  return new ShopName(options);
53
55
  case "TRADE_ID_INPUT":
@@ -139,6 +141,8 @@ export var factory = function factory(type, options) {
139
141
  return new BsPosting(options);
140
142
  case "BS_GOODS":
141
143
  return new BsGoods(options);
144
+ case "WDT_GOODS":
145
+ return new WdtGoods(options);
142
146
  case "BS_EXCHANGE_GOODS":
143
147
  return new BsExchange(options);
144
148
  case "WDT_EXCHANGE_GOODS":
@@ -201,9 +205,6 @@ export var factory = function factory(type, options) {
201
205
  return new CommonDataTime(options);
202
206
  case "FLOW_UPDATE_DATETIME":
203
207
  return new CommonDataTime(options);
204
- case "WDT_GOODS":
205
- // 万里牛商品
206
- return new WdtGoods(options);
207
208
  case "BUSINESS_ORDER_NO":
208
209
  return new CommonInput(options);
209
210
  case "PAYMENT_VOUCHER_CODE":
@@ -12,6 +12,7 @@ export { default as BasicGrade } from "./components/Grade";
12
12
  export { default as BasicRate } from "./components/Rate";
13
13
  export { default as BasicFile } from "./components/File";
14
14
  export { default as BasicPosting } from "./components/PostIng";
15
+ export { default as SubForm } from "./components/SubForm";
15
16
  export { default as CommonDataTime } from "./components/CommonDataTime";
16
17
  export { default as TradeId } from "./components/TradeId";
17
18
  export { default as ErpTradeId } from "./components/ErpTradeId";
package/dist/esm/index.js CHANGED
@@ -12,6 +12,7 @@ export { default as BasicGrade } from "./components/Grade";
12
12
  export { default as BasicRate } from "./components/Rate";
13
13
  export { default as BasicFile } from "./components/File";
14
14
  export { default as BasicPosting } from "./components/PostIng";
15
+ export { default as SubForm } from "./components/SubForm";
15
16
  export { default as CommonDataTime } from "./components/CommonDataTime";
16
17
  export { default as TradeId } from "./components/TradeId";
17
18
  export { default as ErpTradeId } from "./components/ErpTradeId";
@@ -61,6 +61,10 @@ export interface ComponentInterface {
61
61
  */
62
62
  formItemIndex?: number;
63
63
  componentConfig?: {
64
+ /**
65
+ * @description 组件描述信息
66
+ */
67
+ tooltip?: string;
64
68
  /**
65
69
  * @description 是否拆列头-针对收寄信息组件
66
70
  */
@@ -169,11 +173,18 @@ export interface ComponentInterface {
169
173
  rulesOptions?: Array<any>;
170
174
  selectRules?: Array<string>;
171
175
  logistics?: string;
172
- belongType?: string;
173
176
  repeatConfig?: {
174
177
  repeatRange: string;
175
178
  repeatComponents: any[];
176
179
  };
180
+ subConfig?: {
181
+ config: any;
182
+ flowStatus: string[];
183
+ flowTemplateKey: any;
184
+ nodeId: string;
185
+ workOrderTemplateId: string;
186
+ };
187
+ tooltip?: string;
177
188
  };
178
189
  effects?: {
179
190
  queryWorkOrderDetail?: (r: Record) => void;