@kmkf-fe-packages/services-components 1.6.1 → 1.8.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1 -1
  5. package/dist/esm/components/Address/index.js +1 -1
  6. package/dist/esm/components/AfterSalesOrderId/index.js +1 -1
  7. package/dist/esm/components/Alipay/index.js +1 -1
  8. package/dist/esm/components/AlipayAccount/index.js +1 -1
  9. package/dist/esm/components/AlipayName/index.js +1 -1
  10. package/dist/esm/components/BS/BsExchange/index.js +1 -1
  11. package/dist/esm/components/BS/BsGoods/index.js +1 -1
  12. package/dist/esm/components/BS/BsLogistics/index.js +1 -1
  13. package/dist/esm/components/BS/BsPosting/index.js +1 -1
  14. package/dist/esm/components/BS/BsReissue/index.js +1 -1
  15. package/dist/esm/components/BS/BsReturn/index.js +1 -1
  16. package/dist/esm/components/BS/BsSystemOrder/index.js +1 -1
  17. package/dist/esm/components/BS/DeliveryNo/index.js +1 -1
  18. package/dist/esm/components/BuyerNick/index.js +1 -1
  19. package/dist/esm/components/Calculation/index.js +1 -1
  20. package/dist/esm/components/Cascader/index.js +1 -1
  21. package/dist/esm/components/Checkbox/index.js +1 -1
  22. package/dist/esm/components/Common/index.js +5 -3
  23. package/dist/esm/components/CommonInput/index.js +1 -1
  24. package/dist/esm/components/CommonMultiStatus/index.js +1 -1
  25. package/dist/esm/components/CommonSystemOrder/index.js +1 -1
  26. package/dist/esm/components/CommonTradeId/index.js +1 -1
  27. package/dist/esm/components/DataTime/index.js +1 -1
  28. package/dist/esm/components/EItemEnCode/index.js +1 -1
  29. package/dist/esm/components/EItemId/index.js +1 -1
  30. package/dist/esm/components/EItemSelect/index.js +1 -1
  31. package/dist/esm/components/ErpTradeId/index.js +1 -1
  32. package/dist/esm/components/Express/index.js +1 -1
  33. package/dist/esm/components/ExpressCode/index.js +1 -1
  34. package/dist/esm/components/File/index.js +1 -1
  35. package/dist/esm/components/FlowMarkSelect/index.js +1 -1
  36. package/dist/esm/components/FlowStatusSelect/index.js +1 -1
  37. package/dist/esm/components/FlowTag/index.js +1 -1
  38. package/dist/esm/components/FlowWorkOrderId/index.js +1 -1
  39. package/dist/esm/components/FlowWorkOrderStatus/index.js +1 -1
  40. package/dist/esm/components/Grade/index.js +1 -1
  41. package/dist/esm/components/Input/index.js +1 -1
  42. package/dist/esm/components/JST/JstItemSelect/index.js +1 -1
  43. package/dist/esm/components/JST/JstLogistics/index.js +1 -1
  44. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  45. package/dist/esm/components/JST/JstSupply/index.js +1 -1
  46. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  47. package/dist/esm/components/Label/index.js +1 -1
  48. package/dist/esm/components/Logistics/index.js +1 -1
  49. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +1 -1
  50. package/dist/esm/components/LogisticsInterception/index.js +1 -1
  51. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -1
  52. package/dist/esm/components/LogisticsMoreTrajectory/index.js +1 -1
  53. package/dist/esm/components/LogisticsTrajectory/index.js +1 -1
  54. package/dist/esm/components/MsgStatus/index.js +4 -2
  55. package/dist/esm/components/MultSelect/index.js +1 -1
  56. package/dist/esm/components/Ordinary/OrdinaryHeader.js +1 -1
  57. package/dist/esm/components/Ordinary/OrdinaryMoney.js +1 -1
  58. package/dist/esm/components/Ordinary/OrdinarySerial.js +1 -1
  59. package/dist/esm/components/Ordinary/index.js +1 -1
  60. package/dist/esm/components/Payment/AlipayNick.js +1 -1
  61. package/dist/esm/components/Payment/AlipayNo.js +1 -1
  62. package/dist/esm/components/Payment/AlipayTime.js +1 -1
  63. package/dist/esm/components/Payment/BuyerNick.js +1 -1
  64. package/dist/esm/components/Payment/PaymentAmount.js +1 -1
  65. package/dist/esm/components/Payment/PaymentTid.js +1 -1
  66. package/dist/esm/components/Payment/index.js +1 -1
  67. package/dist/esm/components/PaymentVoucherCode/Preview.d.ts +6 -0
  68. package/dist/esm/components/PaymentVoucherCode/Preview.js +86 -0
  69. package/dist/esm/components/PaymentVoucherCode/index.js +4 -5
  70. package/dist/esm/components/Picture/index.js +1 -1
  71. package/dist/esm/components/PostIng/index.js +1 -1
  72. package/dist/esm/components/Radio/index.js +1 -1
  73. package/dist/esm/components/Rate/index.js +1 -1
  74. package/dist/esm/components/ReceiverAddress/index.js +1 -1
  75. package/dist/esm/components/ReceiverMobile/index.js +1 -1
  76. package/dist/esm/components/ReceiverName/index.js +1 -1
  77. package/dist/esm/components/Remark/index.js +1 -1
  78. package/dist/esm/components/ReturnLogistics/index.js +1 -1
  79. package/dist/esm/components/Select/index.js +1 -1
  80. package/dist/esm/components/ShopName/index.js +1 -1
  81. package/dist/esm/components/StatusSelect/index.js +1 -1
  82. package/dist/esm/components/SubForm/index.d.ts +34 -0
  83. package/dist/esm/components/SubForm/index.js +184 -0
  84. package/dist/esm/components/SystemOrderNo/index.js +1 -1
  85. package/dist/esm/components/TextArea/index.js +1 -1
  86. package/dist/esm/components/ThirdItemSelect/index.js +1 -1
  87. package/dist/esm/components/TradeDateTime/index.js +1 -1
  88. package/dist/esm/components/TradeId/index.js +1 -1
  89. package/dist/esm/components/WDT/WdtExchange/index.js +1 -1
  90. package/dist/esm/components/WDT/WdtGoods/index.js +1 -1
  91. package/dist/esm/components/WDT/WdtRessuie/index.js +1 -1
  92. package/dist/esm/components/WDT/WdtReturn/index.js +1 -1
  93. package/dist/esm/components/WLN/WlnGoods/index.js +1 -1
  94. package/dist/esm/components/WorkOrderId/index.js +1 -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 +26 -18
  100. package/package.json +7 -6
@@ -0,0 +1,184 @@
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ 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."); }
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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
+ 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; }
8
+ 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; }
9
+ 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; }
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 BsHeaderChild from "../BS/common/BsHeaderChild";
20
+ import GetFormItem from "../GetFormItem";
21
+ import ItemView from "../../commonComponents/ItemView";
22
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
23
+ import { SYMBOL } from "../../constant";
24
+ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
25
+ var _this = this;
26
+ _classCallCheck(this, SubForm);
27
+ _defineProperty(this, "name", void 0);
28
+ _defineProperty(this, "id", void 0);
29
+ _defineProperty(this, "sortField", void 0);
30
+ _defineProperty(this, "type", void 0);
31
+ _defineProperty(this, "rules", void 0);
32
+ _defineProperty(this, "componentConfig", void 0);
33
+ _defineProperty(this, "isCombinationComponent", void 0);
34
+ _defineProperty(this, "formField", void 0);
35
+ _defineProperty(this, "canSort", void 0);
36
+ _defineProperty(this, "children", void 0);
37
+ _defineProperty(this, "dataType", void 0);
38
+ _defineProperty(this, "templateId", void 0);
39
+ _defineProperty(this, "workOrderUniqueKey", void 0);
40
+ _defineProperty(this, "getNewTableHeader", function () {
41
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
42
+ return (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : (_this$componentConfig2 = _this$componentConfig.subConfig) === null || _this$componentConfig2 === void 0 ? void 0 : (_this$componentConfig3 = _this$componentConfig2.correlationList) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.reduce(function (prv, item) {
43
+ var _this$componentConfig4;
44
+ var t = ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tableHeader.find(function (v) {
45
+ return v.key === item.key;
46
+ })) || {
47
+ isShow: true,
48
+ isEdit: false,
49
+ isRequired: false,
50
+ isNumber: false,
51
+ precision: "nolimit",
52
+ width: 150
53
+ };
54
+ if (t.isShow) {
55
+ prv.push(_objectSpread(_objectSpread({}, item), t));
56
+ }
57
+ return prv;
58
+ }, []);
59
+ });
60
+ _defineProperty(this, "renderTabel", function (list) {
61
+ var _ref, _ref$filter;
62
+ var columns = [{
63
+ dataIndex: "",
64
+ title: "序号",
65
+ align: "center",
66
+ ellipsis: true,
67
+ width: 50,
68
+ render: function render(val, record, index) {
69
+ return /*#__PURE__*/React.createElement("span", null, index + 1);
70
+ }
71
+ }].concat(_toConsumableArray(((_ref = _this.getNewTableHeader() || []) === null || _ref === void 0 ? void 0 : (_ref$filter = _ref.filter(function (t) {
72
+ return t.isShow;
73
+ })) === null || _ref$filter === void 0 ? void 0 : _ref$filter.map(function (item) {
74
+ return {
75
+ dataIndex: item.key,
76
+ title: item.name,
77
+ align: "center",
78
+ ellipsis: true,
79
+ width: item.width,
80
+ render: function render(val) {
81
+ return /*#__PURE__*/React.createElement("span", null, val);
82
+ }
83
+ };
84
+ })) || []));
85
+ return /*#__PURE__*/React.createElement(Table, {
86
+ columns: columns,
87
+ dataSource: list,
88
+ rowKey: "uuid",
89
+ size: "small",
90
+ pagination: false,
91
+ scroll: {
92
+ x: "100%"
93
+ },
94
+ locale: {
95
+ emptyText: "暂无数据"
96
+ }
97
+ });
98
+ });
99
+ _defineProperty(this, "renderPc", function () {
100
+ return null;
101
+ });
102
+ _defineProperty(this, "renderLog", function (r) {
103
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_productList")])) return null;
104
+ return _this.renderTabel(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_productList")]);
105
+ });
106
+ _defineProperty(this, "getComponentValue", function (r) {
107
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_productList")];
108
+ });
109
+ _defineProperty(this, "renderExport", function () {
110
+ return null;
111
+ });
112
+ _defineProperty(this, "renderClient", function (record) {
113
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
114
+ id: _this.id,
115
+ label: _this.name,
116
+ value: _this.renderTabel(record === null || record === void 0 ? void 0 : record["".concat(_this.id)])
117
+ }) : null;
118
+ });
119
+ _defineProperty(this, "editRender", function (p) {
120
+ var _this$componentConfig5, _this$componentConfig6, _this$componentConfig7, _this$componentConfig8;
121
+ return /*#__PURE__*/React.createElement(GetFormItem, {
122
+ title: _this.name,
123
+ name: _this.id,
124
+ rules: _this.rules,
125
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
126
+ display: p === null || p === void 0 ? void 0 : p.display,
127
+ required: (_this$componentConfig5 = (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required) !== null && _this$componentConfig5 !== void 0 ? _this$componentConfig5 : false,
128
+ tooltip: (_this$componentConfig7 = (_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.tooltip) !== null && _this$componentConfig7 !== void 0 ? _this$componentConfig7 : "",
129
+ component: /*#__PURE__*/React.createElement(SubFormComponent, _this.componentConfig)
130
+ });
131
+ });
132
+ _defineProperty(this, "filterConfig", function (item) {
133
+ return [{
134
+ searchDefaultConditions: SYMBOL.like,
135
+ type: item.type,
136
+ id: "".concat(item.id, "_productList"),
137
+ // 过滤组件id
138
+ name: item.name,
139
+ // 过滤组件名称
140
+ filterComponentType: "Input"
141
+ }];
142
+ });
143
+ this.name = options.name;
144
+ this.id = options.id;
145
+ this.sortField = "".concat(options.id, "_productList");
146
+ this.formField = "".concat(options.id, "_productList");
147
+ this.type = options.type;
148
+ this.templateId = options.templateId;
149
+ this.componentConfig = options.componentConfig;
150
+ this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
151
+ this.rules = [{
152
+ validator: function validator(_, value) {
153
+ var _this$componentConfig9, _this$componentConfig10;
154
+ var result = (_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : (_this$componentConfig10 = _this$componentConfig9.tableHeader) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.reduce(function (prv, next) {
155
+ if (next.isRequired && next.isShow && !next.isEdit) {
156
+ prv[next.key] = "".concat(next.name, "\u5FC5\u586B");
157
+ }
158
+ return prv;
159
+ }, {});
160
+ var msg = (value || []).reduce(function (prv, next) {
161
+ Object.keys(next).forEach(function (key) {
162
+ if (result[key] && !next[key]) {
163
+ prv = result[key];
164
+ }
165
+ });
166
+ return prv;
167
+ }, "");
168
+ if (msg) {
169
+ return Promise.reject(new Error(msg));
170
+ }
171
+ return Promise.resolve();
172
+ }
173
+ }];
174
+ this.isCombinationComponent = true;
175
+ this.canSort = false;
176
+ this.children = (this.getNewTableHeader() || []).map(function (item) {
177
+ return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
178
+ name: item.name,
179
+ id: "".concat(options.id, "_productList_").concat(item.key)
180
+ }));
181
+ });
182
+ this.dataType = "object";
183
+ });
184
+ export default SubForm;
@@ -58,7 +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
+ 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 : '',
62
62
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
63
63
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
64
64
  }))
@@ -57,7 +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
+ 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 : '',
61
61
  component: /*#__PURE__*/React.createElement(ApaasTextArea, _extends({}, _this.componentConfig, {
62
62
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
63
63
  }))
@@ -76,7 +76,7 @@ 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
+ tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : '',
80
80
  component: /*#__PURE__*/React.createElement(ItemEncode, _extends({}, _this.componentConfig, {
81
81
  maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
82
82
  type: 4,
@@ -77,7 +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
+ 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 : '',
81
81
  component: /*#__PURE__*/React.createElement(DateTime, _extends({}, _this.componentConfig, {
82
82
  dateType: "DATE_TIME"
83
83
  }))
@@ -75,7 +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
+ 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 : '',
79
79
  component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
80
80
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
81
81
  shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
@@ -81,7 +81,7 @@ 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
+ 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 : '',
85
85
  component: /*#__PURE__*/React.createElement(CommonExchangeGoods, _extends({}, _this.componentConfig, {
86
86
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
87
87
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -71,7 +71,7 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
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
+ 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 : '',
75
75
  component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
76
76
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
77
77
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -95,7 +95,7 @@ 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
+ 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
99
  component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
100
100
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
101
101
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -73,7 +73,7 @@ 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
+ 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 : '',
77
77
  component: /*#__PURE__*/React.createElement(CommonReturnGoods, _extends({}, _this.componentConfig, {
78
78
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
79
79
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -70,7 +70,7 @@ 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
+ 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 : '',
74
74
  component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
75
75
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
76
76
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -58,7 +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
+ 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 : '',
62
62
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
63
63
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
64
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) => PaymentVoucherCode | SubForm | 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 | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | 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 | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | Label | KmErpSendGood | AfterSalesOrderId;
@@ -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";
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { FormInstance } from 'antd';
3
- import { SYMBOL } from './constant';
4
- export declare type DataType = 'string' | 'number' | 'array' | 'dateArray' | 'date' | 'tradeId';
5
- export declare type ALignType = 'left' | 'right' | 'center';
2
+ import type { FormInstance } from "antd";
3
+ import { SYMBOL } from "./constant";
4
+ export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
5
+ export declare type ALignType = "left" | "right" | "center";
6
6
  export declare type QuerySymbol = keyof typeof SYMBOL;
7
7
  export declare type Record = {
8
8
  [props in string]: any;
@@ -27,7 +27,7 @@ export declare type FilterConfigType = {
27
27
  filterFn?: (p: any) => (r: Record) => unknown;
28
28
  formatFilterValue?: (p: any) => any;
29
29
  };
30
- export declare type FilterComponentType = 'MultipleSelect' | 'Input' | 'Date' | 'Cascader' | 'ShopList' | 'Rate' | 'SelectInput';
30
+ export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput";
31
31
  export interface ComponentInterface {
32
32
  id: string;
33
33
  sortField: string;
@@ -47,8 +47,8 @@ export interface ComponentInterface {
47
47
  rules?: any[];
48
48
  width?: number;
49
49
  align?: ALignType;
50
- dataType: 'string' | 'number' | 'boolean' | 'array' | 'range' | 'object';
51
- format?: 'dateTime' | 'date' | 'time' | 'cascader' | 'shopInput' | 'staffGroup';
50
+ dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
51
+ format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup";
52
52
  options?: Array<any>;
53
53
  templateId?: string;
54
54
  flowTemplateKey?: string;
@@ -65,6 +65,10 @@ export interface ComponentInterface {
65
65
  * @description 组件描述信息
66
66
  */
67
67
  tooltip?: string;
68
+ /**
69
+ * @description 是否开启组件描述信息
70
+ */
71
+ showTooltip?: boolean;
68
72
  /**
69
73
  * @description 是否拆列头-针对收寄信息组件
70
74
  */
@@ -84,7 +88,7 @@ export interface ComponentInterface {
84
88
  /**
85
89
  * @description 显示字段名称
86
90
  */
87
- showField?: 'EXPRESS_COMPANY' | 'EXPRESS_WAYBILL_CODE' | 'EXPRESS_SNAPSHOT' | 'all' | 'bs' | 'workOrder' | 'logisticsCompany' | 'logisticsCode';
91
+ showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder" | "logisticsCompany" | "logisticsCode";
88
92
  /**
89
93
  * @description 是否选择SKU
90
94
  */
@@ -104,7 +108,7 @@ export interface ComponentInterface {
104
108
  /**
105
109
  * @description 备注状态
106
110
  */
107
- associatedType?: 'APPEND';
111
+ associatedType?: "APPEND";
108
112
  isAssociated?: boolean;
109
113
  isShowFlag?: boolean;
110
114
  /**
@@ -145,7 +149,7 @@ export interface ComponentInterface {
145
149
  * @description 时间初始值
146
150
  */
147
151
  dateTime?: string;
148
- dateType?: 'DATE' | 'DATE_TIME' | 'DATE_RANGE' | 'DATE_TIME_RANGE';
152
+ dateType?: "DATE" | "DATE_TIME" | "DATE_RANGE" | "DATE_TIME_RANGE";
149
153
  maxSize?: number;
150
154
  basicGrade?: number;
151
155
  range?: number;
@@ -173,11 +177,15 @@ export interface ComponentInterface {
173
177
  rulesOptions?: Array<any>;
174
178
  selectRules?: Array<string>;
175
179
  logistics?: string;
176
- belongType?: string;
177
- repeatConfig?: {
178
- repeatRange: string;
179
- repeatComponents: any[];
180
+ subConfig?: {
181
+ correlationList?: any;
182
+ flowStatus?: string[];
183
+ flowTemplateKey?: any;
184
+ nodeId?: string;
185
+ workOrderTemplateId?: string;
180
186
  };
187
+ needFilterShopByPermission?: boolean;
188
+ tableHeader?: any;
181
189
  };
182
190
  effects?: {
183
191
  queryWorkOrderDetail?: (r: Record) => void;
@@ -251,13 +259,13 @@ export interface ComponentInterface {
251
259
  getComponentValue: (r: Record) => any;
252
260
  formDataTransform?: (r: any) => any;
253
261
  }
254
- export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects' | 'columnHeader' | 'templateId' | 'workOrderUniqueKey' | 'platform' | 'parentName' | 'width' | 'flowTemplateKey'>;
262
+ export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey">;
255
263
  export declare type ColumnConfig = {
256
264
  id: string;
257
265
  name: string;
258
266
  type: string;
259
267
  subKey?: string;
260
- mode?: 'multiple';
261
- config?: ComponentInterface['componentConfig'];
262
- templateConfig?: ComponentInterface['componentConfig'];
268
+ mode?: "multiple";
269
+ config?: ComponentInterface["componentConfig"];
270
+ templateConfig?: ComponentInterface["componentConfig"];
263
271
  };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.6.1",
3
+ "version": "1.8.0-beta.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "scripts": {
10
- "sync": "yarn build && yalc push",
11
10
  "build": "yarn run lint && father build",
12
11
  "lint": "eslint '**/*.{ts,tsx}'",
13
- "lint:fix": "eslint --fix '**/*.{ts,tsx}'"
12
+ "lint:fix": "eslint --fix '**/*.{ts,tsx}'",
13
+ "sync": "yarn build && yalc push"
14
14
  },
15
15
  "lint-staged": {
16
16
  "*.{js,jsx,less,md,json}": [
@@ -21,8 +21,9 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "1.6.1",
25
- "@kmkf-fe-packages/kmkf-utils": "1.6.1"
24
+ "@kmkf-fe-packages/basic-components": "1.8.0-beta.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.8.0-beta.0",
26
+ "react-pdf-js": "^5.1.0"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -38,7 +39,7 @@
38
39
  "publishConfig": {
39
40
  "access": "public"
40
41
  },
41
- "gitHead": "6012d491910b54eb0ad306be7ddfc340ab2f5fa5",
42
+ "gitHead": "b854b2c34a9d25d96f0484f45aa15d4d7b5eb958",
42
43
  "gitHooks": {
43
44
  "pre-commit": "lint-staged"
44
45
  }