@kmkf-fe-packages/services-components 0.7.12-alpha.9 → 0.7.14-alpha.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 (132) hide show
  1. package/dist/esm/components/ActualPayment/index.d.ts +3 -1
  2. package/dist/esm/components/ActualPayment/index.js +6 -1
  3. package/dist/esm/components/Address/index.d.ts +3 -1
  4. package/dist/esm/components/Address/index.js +6 -1
  5. package/dist/esm/components/Alipay/index.d.ts +3 -1
  6. package/dist/esm/components/Alipay/index.js +7 -2
  7. package/dist/esm/components/AlipayAccount/index.d.ts +3 -1
  8. package/dist/esm/components/AlipayAccount/index.js +6 -1
  9. package/dist/esm/components/AlipayName/index.d.ts +3 -1
  10. package/dist/esm/components/AlipayName/index.js +6 -1
  11. package/dist/esm/components/BuyerNick/index.d.ts +3 -1
  12. package/dist/esm/components/BuyerNick/index.js +7 -2
  13. package/dist/esm/components/Cascader/index.d.ts +3 -1
  14. package/dist/esm/components/Cascader/index.js +6 -1
  15. package/dist/esm/components/Checkbox/index.d.ts +5 -1
  16. package/dist/esm/components/Checkbox/index.js +13 -2
  17. package/dist/esm/components/CommonDataTime/index.d.ts +3 -0
  18. package/dist/esm/components/CommonDataTime/index.js +6 -0
  19. package/dist/esm/components/CompletedUser/index.d.ts +3 -0
  20. package/dist/esm/components/CompletedUser/index.js +8 -1
  21. package/dist/esm/components/DataTime/index.d.ts +4 -1
  22. package/dist/esm/components/DataTime/index.js +13 -2
  23. package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
  24. package/dist/esm/components/EItemEnCode/index.js +6 -1
  25. package/dist/esm/components/EItemId/index.d.ts +3 -1
  26. package/dist/esm/components/EItemId/index.js +6 -1
  27. package/dist/esm/components/EItemSelect/index.d.ts +3 -1
  28. package/dist/esm/components/EItemSelect/index.js +6 -1
  29. package/dist/esm/components/ErpTradeId/index.d.ts +3 -1
  30. package/dist/esm/components/ErpTradeId/index.js +6 -1
  31. package/dist/esm/components/Express/index.d.ts +4 -1
  32. package/dist/esm/components/Express/index.js +8 -1
  33. package/dist/esm/components/ExpressCode/index.d.ts +3 -1
  34. package/dist/esm/components/ExpressCode/index.js +6 -1
  35. package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -1
  36. package/dist/esm/components/FlowStatusSelect/index.js +23 -7
  37. package/dist/esm/components/GetFormItem/index.d.ts +2 -1
  38. package/dist/esm/components/GetFormItem/index.js +5 -2
  39. package/dist/esm/components/Grade/index.d.ts +3 -1
  40. package/dist/esm/components/Grade/index.js +6 -1
  41. package/dist/esm/components/Handler/index.d.ts +3 -0
  42. package/dist/esm/components/Handler/index.js +8 -1
  43. package/dist/esm/components/Input/index.d.ts +3 -1
  44. package/dist/esm/components/Input/index.js +8 -2
  45. package/dist/esm/components/JstItemSelect/index.d.ts +3 -1
  46. package/dist/esm/components/JstItemSelect/index.js +6 -1
  47. package/dist/esm/components/JstLogistics/index.d.ts +3 -1
  48. package/dist/esm/components/JstLogistics/index.js +6 -1
  49. package/dist/esm/components/JstSendGood/index.d.ts +3 -1
  50. package/dist/esm/components/JstSendGood/index.js +6 -1
  51. package/dist/esm/components/JstSupply/index.d.ts +3 -1
  52. package/dist/esm/components/JstSupply/index.js +6 -1
  53. package/dist/esm/components/Logistics/index.d.ts +3 -1
  54. package/dist/esm/components/Logistics/index.js +7 -2
  55. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
  56. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +6 -1
  57. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +3 -0
  58. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +6 -0
  59. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +3 -0
  60. package/dist/esm/components/LogisticsInterception/InterceptType.js +6 -0
  61. package/dist/esm/components/LogisticsInterception/index.d.ts +3 -1
  62. package/dist/esm/components/LogisticsInterception/index.js +6 -1
  63. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +3 -0
  64. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +6 -0
  65. package/dist/esm/components/MultSelect/index.d.ts +4 -1
  66. package/dist/esm/components/MultSelect/index.js +10 -2
  67. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -1
  68. package/dist/esm/components/Ordinary/OrdinaryHeader.js +6 -1
  69. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
  70. package/dist/esm/components/Ordinary/OrdinaryMoney.js +6 -1
  71. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -6
  72. package/dist/esm/components/Ordinary/OrdinarySerial.js +5 -8
  73. package/dist/esm/components/Ordinary/index.d.ts +4 -6
  74. package/dist/esm/components/Ordinary/index.js +6 -9
  75. package/dist/esm/components/Payment/AlipayNick.d.ts +3 -1
  76. package/dist/esm/components/Payment/AlipayNick.js +6 -1
  77. package/dist/esm/components/Payment/AlipayNo.d.ts +3 -1
  78. package/dist/esm/components/Payment/AlipayNo.js +6 -1
  79. package/dist/esm/components/Payment/AlipayTime.d.ts +4 -1
  80. package/dist/esm/components/Payment/AlipayTime.js +8 -1
  81. package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
  82. package/dist/esm/components/Payment/BuyerNick.js +6 -1
  83. package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
  84. package/dist/esm/components/Payment/PaymentAmount.js +6 -1
  85. package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -0
  86. package/dist/esm/components/Payment/PaymentStatus.js +6 -0
  87. package/dist/esm/components/Payment/PaymentTid.d.ts +3 -1
  88. package/dist/esm/components/Payment/PaymentTid.js +6 -1
  89. package/dist/esm/components/Payment/index.d.ts +3 -1
  90. package/dist/esm/components/Payment/index.js +7 -2
  91. package/dist/esm/components/Picture/index.d.ts +3 -1
  92. package/dist/esm/components/Picture/index.js +6 -1
  93. package/dist/esm/components/PlatForm/index.d.ts +3 -0
  94. package/dist/esm/components/PlatForm/index.js +6 -0
  95. package/dist/esm/components/Radio/index.d.ts +5 -1
  96. package/dist/esm/components/Radio/index.js +13 -2
  97. package/dist/esm/components/Rate/index.d.ts +3 -1
  98. package/dist/esm/components/Rate/index.js +6 -1
  99. package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
  100. package/dist/esm/components/ReceiverAddress/index.js +6 -1
  101. package/dist/esm/components/ReceiverMobile/index.d.ts +3 -1
  102. package/dist/esm/components/ReceiverMobile/index.js +7 -2
  103. package/dist/esm/components/ReceiverName/index.d.ts +3 -1
  104. package/dist/esm/components/ReceiverName/index.js +6 -1
  105. package/dist/esm/components/Remark/index.d.ts +3 -1
  106. package/dist/esm/components/Remark/index.js +6 -1
  107. package/dist/esm/components/ReturnLogistics/index.d.ts +4 -6
  108. package/dist/esm/components/ReturnLogistics/index.js +7 -9
  109. package/dist/esm/components/Select/index.d.ts +4 -1
  110. package/dist/esm/components/Select/index.js +10 -2
  111. package/dist/esm/components/ShopInput/index.d.ts +3 -0
  112. package/dist/esm/components/ShopInput/index.js +8 -1
  113. package/dist/esm/components/ShopName/index.d.ts +3 -1
  114. package/dist/esm/components/ShopName/index.js +6 -1
  115. package/dist/esm/components/Submitter/index.d.ts +3 -0
  116. package/dist/esm/components/Submitter/index.js +8 -1
  117. package/dist/esm/components/SystemOrderNo/index.d.ts +3 -1
  118. package/dist/esm/components/SystemOrderNo/index.js +6 -1
  119. package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
  120. package/dist/esm/components/TemplateSelect/index.js +8 -1
  121. package/dist/esm/components/TextArea/index.d.ts +3 -1
  122. package/dist/esm/components/TextArea/index.js +6 -1
  123. package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -1
  124. package/dist/esm/components/ThirdItemSelect/index.js +6 -1
  125. package/dist/esm/components/TradeDateTime/index.d.ts +5 -6
  126. package/dist/esm/components/TradeDateTime/index.js +8 -9
  127. package/dist/esm/components/TradeId/index.d.ts +4 -6
  128. package/dist/esm/components/TradeId/index.js +8 -11
  129. package/dist/esm/components/WorkOrderId/index.d.ts +3 -1
  130. package/dist/esm/components/WorkOrderId/index.js +6 -1
  131. package/dist/esm/type.d.ts +6 -0
  132. package/package.json +4 -4
@@ -10,7 +10,8 @@ import intersection from 'lodash/intersection';
10
10
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
11
11
  import { SYMBOL } from "../../constant";
12
12
  var Handler = /*#__PURE__*/_createClass(function Handler(options) {
13
- var _this = this;
13
+ var _this = this,
14
+ _this$effects2;
14
15
  _classCallCheck(this, Handler);
15
16
  _defineProperty(this, "name", void 0);
16
17
  _defineProperty(this, "id", void 0);
@@ -19,8 +20,11 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
19
20
  _defineProperty(this, "componentConfig", void 0);
20
21
  _defineProperty(this, "effects", void 0);
21
22
  _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "formField", void 0);
22
24
  _defineProperty(this, "canSort", void 0);
23
25
  _defineProperty(this, "children", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "options", void 0);
24
28
  _defineProperty(this, "renderPc", function (v, record) {
25
29
  var _value$map$join, _value$map;
26
30
  var value = record === null || record === void 0 ? void 0 : record[_this.id];
@@ -73,10 +77,13 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
73
77
  this.name = "处理人";
74
78
  this.id = "handlerList";
75
79
  this.sortField = "handlerList";
80
+ this.formField = "handlerList";
76
81
  this.type = "HANDLER_INPUT";
77
82
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
78
83
  this.isCombinationComponent = false;
79
84
  this.canSort = false;
80
85
  this.children = [];
86
+ this.dataType = 'string';
87
+ this.options = ((_this$effects2 = this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.userList) || [];
81
88
  });
82
89
  export default Handler;
@@ -8,15 +8,17 @@ declare class BasicInput implements ComponentInterface {
8
8
  rules: any[];
9
9
  componentConfig: ComponentInterface["componentConfig"];
10
10
  isCombinationComponent: boolean;
11
+ formField: string;
11
12
  canSort: boolean;
12
13
  children: ComponentInterface[];
14
+ dataType: ComponentInterface['dataType'];
13
15
  constructor(options: PickOption);
14
16
  renderPc: (value: any, record: Record) => React.JSX.Element;
15
17
  renderLog: (r: Record) => React.JSX.Element | null;
16
18
  getComponentValue: (r: Record) => any;
17
19
  renderExport: (value: any, record: Record) => any;
18
20
  renderClient: (record: Record) => React.JSX.Element | null;
19
- editRender: () => React.JSX.Element;
21
+ editRender: (p: any) => React.JSX.Element;
20
22
  filterConfig: (item: ColumnConfig) => {
21
23
  searchDefaultConditions: "like";
22
24
  type: string;
@@ -14,7 +14,8 @@ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
14
  import { SYMBOL } from "../../constant";
15
15
  var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
16
16
  var _this = this,
17
- _options$componentCon;
17
+ _options$componentCon,
18
+ _options$componentCon2;
18
19
  _classCallCheck(this, BasicInput);
19
20
  _defineProperty(this, "name", void 0);
20
21
  _defineProperty(this, "id", void 0);
@@ -23,8 +24,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
23
24
  _defineProperty(this, "rules", void 0);
24
25
  _defineProperty(this, "componentConfig", void 0);
25
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "formField", void 0);
26
28
  _defineProperty(this, "canSort", void 0);
27
29
  _defineProperty(this, "children", void 0);
30
+ _defineProperty(this, "dataType", void 0);
28
31
  _defineProperty(this, "renderPc", function (value, record) {
29
32
  var _record;
30
33
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : '--');
@@ -47,12 +50,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
47
50
  value: record === null || record === void 0 ? void 0 : record[_this.id]
48
51
  }) : null;
49
52
  });
50
- _defineProperty(this, "editRender", function () {
53
+ _defineProperty(this, "editRender", function (p) {
51
54
  var _this$componentConfig, _this$componentConfig2;
52
55
  return /*#__PURE__*/React.createElement(GetFormItem, {
53
56
  title: _this.name,
54
57
  name: _this.id,
55
58
  rules: _this.rules,
59
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
56
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,
57
61
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
58
62
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
@@ -78,6 +82,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
78
82
  this.name = options.name;
79
83
  this.id = options.id;
80
84
  this.sortField = "".concat(options.id, "_input");
85
+ this.formField = "".concat(options.id, "_input");
81
86
  this.type = options.type;
82
87
  this.componentConfig = options.componentConfig;
83
88
  this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? [{
@@ -87,5 +92,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
87
92
  this.isCombinationComponent = false;
88
93
  this.canSort = true;
89
94
  this.children = [];
95
+ this.dataType = options !== null && options !== void 0 && (_options$componentCon2 = options.componentConfig) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.isNumber ? 'number' : 'string';
90
96
  });
91
97
  export default BasicInput;
@@ -11,15 +11,17 @@ declare class JstItemSelect implements ComponentInterface {
11
11
  align: ALignType;
12
12
  expressDateInstance: InstanceType<typeof ExpressData>;
13
13
  isCombinationComponent: boolean;
14
+ formField: string;
14
15
  canSort: boolean;
15
16
  children: ComponentInterface[];
17
+ dataType: ComponentInterface['dataType'];
16
18
  constructor(options: PickOption);
17
19
  renderClient: (record: Record) => React.JSX.Element | null;
18
20
  renderPc: (value: any, record: Record) => React.JSX.Element;
19
21
  renderLog: (r: Record) => React.JSX.Element | null;
20
22
  getComponentValue: (r: Record) => any;
21
23
  renderExport: (value: any, record: any) => any;
22
- editRender: () => React.JSX.Element;
24
+ editRender: (p: any) => React.JSX.Element;
23
25
  filterConfig: (item: ColumnConfig) => {
24
26
  searchDefaultConditions: "like";
25
27
  type: string;
@@ -27,8 +27,10 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
27
27
  _defineProperty(this, "align", void 0);
28
28
  _defineProperty(this, "expressDateInstance", void 0);
29
29
  _defineProperty(this, "isCombinationComponent", void 0);
30
+ _defineProperty(this, "formField", void 0);
30
31
  _defineProperty(this, "canSort", void 0);
31
32
  _defineProperty(this, "children", void 0);
33
+ _defineProperty(this, "dataType", void 0);
32
34
  _defineProperty(this, "renderClient", function (record) {
33
35
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
34
36
  id: _this.id,
@@ -61,12 +63,13 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
61
63
  return [item === null || item === void 0 ? void 0 : item.itemId, item === null || item === void 0 ? void 0 : item.supplierName].join('/');
62
64
  }).join(',');
63
65
  });
64
- _defineProperty(this, "editRender", function () {
66
+ _defineProperty(this, "editRender", function (p) {
65
67
  return /*#__PURE__*/React.createElement(GetFormItem, {
66
68
  title: _this.name,
67
69
  name: _this.id,
68
70
  rules: _this.rules,
69
71
  required: false,
72
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
70
73
  component: /*#__PURE__*/React.createElement(JstItemList, _extends({}, _this.componentConfig, {
71
74
  width: "90%"
72
75
  }))
@@ -110,11 +113,13 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
110
113
  this.name = options.name;
111
114
  this.id = options.id;
112
115
  this.sortField = "".concat(options.id, "_jstItemList");
116
+ this.formField = "".concat(options.id, "_jstItemList");
113
117
  this.type = options.type;
114
118
  this.componentConfig = options.componentConfig;
115
119
  this.isCombinationComponent = false;
116
120
  this.canSort = false;
117
121
  this.children = [];
122
+ this.dataType = 'object';
118
123
  this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
119
124
  required: true,
120
125
  validator: function validator(_, value) {
@@ -11,15 +11,17 @@ declare class JstLogistics implements ComponentInterface {
11
11
  align: ALignType;
12
12
  expressDateInstance: InstanceType<typeof ExpressData>;
13
13
  isCombinationComponent: boolean;
14
+ formField: string;
14
15
  canSort: boolean;
15
16
  children: ComponentInterface[];
17
+ dataType: ComponentInterface['dataType'];
16
18
  constructor(options: PickOption);
17
19
  renderClient: (record: any) => React.JSX.Element | null;
18
20
  renderPc: (value: any, record: Record) => React.JSX.Element;
19
21
  renderLog: (r: Record) => React.JSX.Element | null;
20
22
  getComponentValue: (r: Record) => any;
21
23
  renderExport: (value: any, record: any) => any;
22
- editRender: () => React.JSX.Element;
24
+ editRender: (p: any) => React.JSX.Element;
23
25
  filterConfig: (item: ColumnConfig) => ({
24
26
  searchDefaultConditions: "like";
25
27
  type: string;
@@ -28,8 +28,10 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
28
28
  _defineProperty(this, "align", void 0);
29
29
  _defineProperty(this, "expressDateInstance", void 0);
30
30
  _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "formField", void 0);
31
32
  _defineProperty(this, "canSort", void 0);
32
33
  _defineProperty(this, "children", void 0);
34
+ _defineProperty(this, "dataType", void 0);
33
35
  _defineProperty(this, "renderClient", function (record) {
34
36
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
35
37
  return !isNull(item);
@@ -65,12 +67,13 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
65
67
  return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join('/');
66
68
  }).join(',');
67
69
  });
68
- _defineProperty(this, "editRender", function () {
70
+ _defineProperty(this, "editRender", function (p) {
69
71
  var _this$componentConfig, _this$componentConfig2;
70
72
  return /*#__PURE__*/React.createElement(GetFormItem, {
71
73
  title: _this.name,
72
74
  name: _this.id,
73
75
  rules: _this.rules,
76
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
74
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,
75
78
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
76
79
  type: 1,
@@ -114,11 +117,13 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
114
117
  this.name = options.name;
115
118
  this.id = options.id;
116
119
  this.sortField = "".concat(options.id, "_jstItemList");
120
+ this.formField = "".concat(options.id, "_jstItemList");
117
121
  this.type = options.type;
118
122
  this.componentConfig = options.componentConfig;
119
123
  this.isCombinationComponent = false;
120
124
  this.canSort = false;
121
125
  this.children = [];
126
+ this.dataType = 'object';
122
127
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
123
128
  required: true,
124
129
  validator: function validator(_, value) {
@@ -9,15 +9,17 @@ declare class JstSendGood implements ComponentInterface {
9
9
  componentConfig: ComponentInterface["componentConfig"];
10
10
  align: ALignType;
11
11
  isCombinationComponent: boolean;
12
+ formField: string;
12
13
  canSort: boolean;
13
14
  children: ComponentInterface[];
15
+ dataType: ComponentInterface['dataType'];
14
16
  constructor(options: PickOption);
15
17
  renderClient: (record: Record) => React.JSX.Element | null;
16
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
17
19
  renderLog: (r: Record) => React.JSX.Element | null;
18
20
  getComponentValue: (r: Record) => any;
19
21
  renderExport: (value: any, record: any) => any;
20
- editRender: () => React.JSX.Element;
22
+ editRender: (p: any) => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => {
22
24
  searchDefaultConditions: "like";
23
25
  type: string;
@@ -26,8 +26,10 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
26
26
  _defineProperty(this, "componentConfig", void 0);
27
27
  _defineProperty(this, "align", void 0);
28
28
  _defineProperty(this, "isCombinationComponent", void 0);
29
+ _defineProperty(this, "formField", void 0);
29
30
  _defineProperty(this, "canSort", void 0);
30
31
  _defineProperty(this, "children", void 0);
32
+ _defineProperty(this, "dataType", void 0);
31
33
  _defineProperty(this, "renderClient", function (record) {
32
34
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
33
35
  return !isNull(item);
@@ -63,12 +65,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
63
65
  return [item === null || item === void 0 ? void 0 : item.sendId, item === null || item === void 0 ? void 0 : item.sendName].join('/');
64
66
  }).join(',');
65
67
  });
66
- _defineProperty(this, "editRender", function () {
68
+ _defineProperty(this, "editRender", function (p) {
67
69
  return /*#__PURE__*/React.createElement(GetFormItem, {
68
70
  title: _this.name,
69
71
  name: _this.id,
70
72
  rules: _this.rules,
71
73
  required: false,
74
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
72
75
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
73
76
  type: 3
74
77
  }))
@@ -112,8 +115,10 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
112
115
  this.name = options.name;
113
116
  this.id = options.id;
114
117
  this.sortField = "".concat(options.id, "_jstItemList");
118
+ this.formField = "".concat(options.id, "_jstItemList");
115
119
  this.type = options.type;
116
120
  this.componentConfig = options.componentConfig;
121
+ this.dataType = 'object';
117
122
  this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
118
123
  required: true,
119
124
  validator: function validator(_, value) {
@@ -9,15 +9,17 @@ declare class JstSupply implements ComponentInterface {
9
9
  componentConfig: ComponentInterface["componentConfig"];
10
10
  align: ALignType;
11
11
  isCombinationComponent: boolean;
12
+ formField: string;
12
13
  canSort: boolean;
13
14
  children: ComponentInterface[];
15
+ dataType: ComponentInterface['dataType'];
14
16
  constructor(options: PickOption);
15
17
  renderClient: (record: Record) => React.JSX.Element | null;
16
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
17
19
  renderLog: (r: Record) => React.JSX.Element | null;
18
20
  getComponentValue: (r: Record) => any;
19
21
  renderExport: (value: any, record: any) => any;
20
- editRender: () => React.JSX.Element;
22
+ editRender: (p: any) => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => {
22
24
  searchDefaultConditions: "like";
23
25
  type: string;
@@ -26,8 +26,10 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
26
26
  _defineProperty(this, "componentConfig", void 0);
27
27
  _defineProperty(this, "align", void 0);
28
28
  _defineProperty(this, "isCombinationComponent", void 0);
29
+ _defineProperty(this, "formField", void 0);
29
30
  _defineProperty(this, "canSort", void 0);
30
31
  _defineProperty(this, "children", void 0);
32
+ _defineProperty(this, "dataType", void 0);
31
33
  _defineProperty(this, "renderClient", function (record) {
32
34
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
33
35
  return !isNull(item);
@@ -63,12 +65,13 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
63
65
  return [item === null || item === void 0 ? void 0 : item.supplyId, item === null || item === void 0 ? void 0 : item.supplyName].join('/');
64
66
  }).join(',');
65
67
  });
66
- _defineProperty(this, "editRender", function () {
68
+ _defineProperty(this, "editRender", function (p) {
67
69
  return /*#__PURE__*/React.createElement(GetFormItem, {
68
70
  title: _this.name,
69
71
  name: _this.id,
70
72
  rules: _this.rules,
71
73
  required: false,
74
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
72
75
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
73
76
  type: 2
74
77
  }))
@@ -112,11 +115,13 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
112
115
  this.name = options.name;
113
116
  this.id = options.id;
114
117
  this.sortField = "".concat(options.id, "_jstItemList");
118
+ this.formField = "".concat(options.id, "_jstItemList");
115
119
  this.type = options.type;
116
120
  this.componentConfig = options.componentConfig;
117
121
  this.isCombinationComponent = false;
118
122
  this.canSort = false;
119
123
  this.children = [];
124
+ this.dataType = 'object';
120
125
  this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
121
126
  required: true,
122
127
  validator: function validator(_, value) {
@@ -14,10 +14,12 @@ declare class Logistics implements ComponentInterface {
14
14
  express: Express;
15
15
  expressCode: ExpressCode;
16
16
  isCombinationComponent: boolean;
17
+ formField: string;
17
18
  canSort: boolean;
18
19
  children: ComponentInterface[];
20
+ dataType: ComponentInterface['dataType'];
19
21
  constructor(options: PickOption);
20
- editRender: (value: any) => React.JSX.Element;
22
+ editRender: (p: any) => React.JSX.Element;
21
23
  renderClient: (record: Record) => React.JSX.Element;
22
24
  renderPc: () => null;
23
25
  renderLog: (r: Record) => React.JSX.Element;
@@ -28,18 +28,21 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
28
28
  _defineProperty(this, "express", void 0);
29
29
  _defineProperty(this, "expressCode", void 0);
30
30
  _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "formField", void 0);
31
32
  _defineProperty(this, "canSort", void 0);
32
33
  _defineProperty(this, "children", void 0);
33
- _defineProperty(this, "editRender", function (value) {
34
+ _defineProperty(this, "dataType", void 0);
35
+ _defineProperty(this, "editRender", function (p) {
34
36
  var _this$componentConfig, _this$componentConfig2;
35
37
  return /*#__PURE__*/React.createElement(GetFormItem, {
36
38
  title: _this.name,
37
39
  name: _this.id,
38
40
  rules: _this.rules,
41
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
39
42
  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,
40
43
  component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
41
44
  options: _this.expressDateInstance.getExpressData(),
42
- onBlur: value === null || value === void 0 ? void 0 : value.onBlur
45
+ onBlur: p === null || p === void 0 ? void 0 : p.onBlur
43
46
  }))
44
47
  });
45
48
  });
@@ -71,6 +74,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
71
74
  this.name = options.name;
72
75
  this.id = options.id;
73
76
  this.sortField = options.id;
77
+ this.formField = options.id;
74
78
  this.type = options.type;
75
79
  this.componentConfig = options.componentConfig;
76
80
  this.expressDateInstance = ExpressData.getInstance();
@@ -84,6 +88,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
84
88
  }));
85
89
  this.isCombinationComponent = true;
86
90
  this.canSort = false;
91
+ this.dataType = 'object';
87
92
  this.children = [this.express, this.expressCode];
88
93
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
89
94
  validator: function validator(_, value) {
@@ -12,10 +12,12 @@ declare class PaymentTid implements ComponentInterface {
12
12
  align: ALignType;
13
13
  width: number;
14
14
  isCombinationComponent: boolean;
15
+ formField: string;
15
16
  canSort: boolean;
16
17
  children: ComponentInterface[];
17
18
  originId: string;
18
19
  addressDateInstance: InstanceType<typeof AddressData>;
20
+ dataType: ComponentInterface['dataType'];
19
21
  constructor(options: PickOption);
20
22
  renderClient: (record: any) => React.JSX.Element | null;
21
23
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -29,7 +31,7 @@ declare class PaymentTid implements ComponentInterface {
29
31
  mobile: any;
30
32
  };
31
33
  renderExport: (value: any, record: Record) => string | null;
32
- editRender: () => React.JSX.Element;
34
+ editRender: (p: any) => React.JSX.Element;
33
35
  filterConfig: () => never[];
34
36
  }
35
37
  export default PaymentTid;
@@ -24,10 +24,12 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
24
24
  _defineProperty(this, "align", void 0);
25
25
  _defineProperty(this, "width", void 0);
26
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "formField", void 0);
27
28
  _defineProperty(this, "canSort", void 0);
28
29
  _defineProperty(this, "children", void 0);
29
30
  _defineProperty(this, "originId", void 0);
30
31
  _defineProperty(this, "addressDateInstance", void 0);
32
+ _defineProperty(this, "dataType", void 0);
31
33
  _defineProperty(this, "renderClient", function (record) {
32
34
  var _ref;
33
35
  var province = record["".concat(_this.originId, "_interceptProvince")];
@@ -107,12 +109,13 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
107
109
  }).join("");
108
110
  return "".concat(addressText).concat(detail, " ").concat(name).concat(mobile);
109
111
  });
110
- _defineProperty(this, "editRender", function () {
112
+ _defineProperty(this, "editRender", function (p) {
111
113
  var _this$componentConfig, _this$componentConfig2;
112
114
  return /*#__PURE__*/React.createElement(GetFormItem, {
113
115
  title: _this.name,
114
116
  name: _this.id,
115
117
  rules: _this.rules,
118
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
116
119
  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,
117
120
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
118
121
  });
@@ -123,6 +126,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
123
126
  this.name = "派送地址";
124
127
  this.id = "".concat(options.id, "_interceptProvince");
125
128
  this.sortField = "".concat(options.id, "_interceptDistrict");
129
+ this.formField = "".concat(options.id, "_interceptDistrict");
126
130
  this.type = options.type;
127
131
  this.componentConfig = options.componentConfig;
128
132
  this.rules = [];
@@ -131,6 +135,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
131
135
  this.originId = options.id;
132
136
  this.isCombinationComponent = false;
133
137
  this.canSort = true;
138
+ this.dataType = 'object';
134
139
  this.children = [];
135
140
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
136
141
  this.addressDateInstance = AddressData.getInstance();
@@ -14,9 +14,12 @@ declare class InterceptStatus implements ComponentInterface {
14
14
  align: ALignType;
15
15
  width: number;
16
16
  isCombinationComponent: boolean;
17
+ formField: string;
17
18
  canSort: boolean;
18
19
  children: ComponentInterface[];
19
20
  expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
21
+ dataType: ComponentInterface['dataType'];
22
+ options: ComponentInterface['options'];
20
23
  constructor(options: PickOption);
21
24
  getComponentValue: (r: Record) => any;
22
25
  renderStatus: (record: any, w?: number) => React.JSX.Element;
@@ -26,9 +26,12 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
26
26
  _defineProperty(this, "align", void 0);
27
27
  _defineProperty(this, "width", void 0);
28
28
  _defineProperty(this, "isCombinationComponent", void 0);
29
+ _defineProperty(this, "formField", void 0);
29
30
  _defineProperty(this, "canSort", void 0);
30
31
  _defineProperty(this, "children", void 0);
31
32
  _defineProperty(this, "expressInterceptInstance", void 0);
33
+ _defineProperty(this, "dataType", void 0);
34
+ _defineProperty(this, "options", void 0);
32
35
  _defineProperty(this, "getComponentValue", function (r) {
33
36
  return r === null || r === void 0 ? void 0 : r[_this.id];
34
37
  });
@@ -97,6 +100,7 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
97
100
  this.parentId = options.id;
98
101
  this.id = "".concat(options.id, "_interceptLogisticsStatus");
99
102
  this.sortField = "".concat(options.id, "_interceptLogisticsStatus");
103
+ this.formField = "".concat(options.id, "_interceptLogisticsStatus");
100
104
  this.companyId = "".concat(options.id, "_interceptCompany");
101
105
  this.type = options.type;
102
106
  this.componentConfig = options.componentConfig;
@@ -108,6 +112,8 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
108
112
  this.children = [];
109
113
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
110
114
  this.expressInterceptInstance = ExpressInterceptData.getInstance();
115
+ this.dataType = 'string';
116
+ this.options = this.expressInterceptInstance.getStatusOptions() || [];
111
117
  }
112
118
 
113
119
  //物流轨迹查询
@@ -13,9 +13,12 @@ declare class InterceptType implements ComponentInterface {
13
13
  align: ALignType;
14
14
  width: number;
15
15
  isCombinationComponent: boolean;
16
+ formField: string;
16
17
  canSort: boolean;
17
18
  children: ComponentInterface[];
18
19
  expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
20
+ dataType: ComponentInterface['dataType'];
21
+ options: ComponentInterface['options'];
19
22
  constructor(options: PickOption);
20
23
  getComponentValue: (r: Record) => any;
21
24
  renderClient: (record: any) => React.JSX.Element | null;
@@ -24,9 +24,12 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
24
24
  _defineProperty(this, "align", void 0);
25
25
  _defineProperty(this, "width", void 0);
26
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "formField", void 0);
27
28
  _defineProperty(this, "canSort", void 0);
28
29
  _defineProperty(this, "children", void 0);
29
30
  _defineProperty(this, "expressInterceptInstance", void 0);
31
+ _defineProperty(this, "dataType", void 0);
32
+ _defineProperty(this, "options", void 0);
30
33
  _defineProperty(this, "getComponentValue", function (r) {
31
34
  return r === null || r === void 0 ? void 0 : r[_this.id];
32
35
  });
@@ -83,6 +86,7 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
83
86
  this.name = "拦截类型";
84
87
  this.id = "".concat(options.id, "_interceptType");
85
88
  this.sortField = "".concat(options.id, "_interceptType");
89
+ this.formField = "".concat(options.id, "_interceptType");
86
90
  this.companyId = "".concat(options.id, "_interceptCompany");
87
91
  this.type = options.type;
88
92
  this.componentConfig = options.componentConfig;
@@ -94,5 +98,7 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
94
98
  this.children = [];
95
99
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
96
100
  this.expressInterceptInstance = ExpressInterceptData.getInstance();
101
+ this.dataType = 'string';
102
+ this.options = this.expressInterceptInstance.getTypeOptions() || [];
97
103
  });
98
104
  export default InterceptType;
@@ -20,6 +20,7 @@ declare class Logistics implements ComponentInterface {
20
20
  interceptLogisticsStatus: InterceptStatus;
21
21
  interceptSenderMobile: InterceptSenderMobile;
22
22
  isCombinationComponent: boolean;
23
+ formField: string;
23
24
  canSort: boolean;
24
25
  children: ComponentInterface[];
25
26
  express: Express;
@@ -28,6 +29,7 @@ declare class Logistics implements ComponentInterface {
28
29
  expressInterceptData: InstanceType<typeof ExpressInterceptData>;
29
30
  logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
30
31
  effects: ComponentInterface["effects"];
32
+ dataType: ComponentInterface['dataType'];
31
33
  constructor(options: PickOption);
32
34
  renderClient: (record: any) => React.JSX.Element;
33
35
  renderLog: (record: any) => React.JSX.Element;
@@ -48,7 +50,7 @@ declare class Logistics implements ComponentInterface {
48
50
  };
49
51
  renderPc: () => null;
50
52
  renderExport: () => null;
51
- editRender: () => React.JSX.Element;
53
+ editRender: (p: any) => React.JSX.Element;
52
54
  filterConfig: (item: ColumnConfig) => ({
53
55
  searchDefaultConditions: "in";
54
56
  type: string;
@@ -34,6 +34,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
34
34
  _defineProperty(this, "interceptLogisticsStatus", void 0);
35
35
  _defineProperty(this, "interceptSenderMobile", void 0);
36
36
  _defineProperty(this, "isCombinationComponent", void 0);
37
+ _defineProperty(this, "formField", void 0);
37
38
  _defineProperty(this, "canSort", void 0);
38
39
  _defineProperty(this, "children", void 0);
39
40
  _defineProperty(this, "express", void 0);
@@ -42,6 +43,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
42
43
  _defineProperty(this, "expressInterceptData", void 0);
43
44
  _defineProperty(this, "logisticsAddressData", void 0);
44
45
  _defineProperty(this, "effects", void 0);
46
+ _defineProperty(this, "dataType", void 0);
45
47
  _defineProperty(this, "renderClient", function (record) {
46
48
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record));
47
49
  });
@@ -64,12 +66,13 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
64
66
  _defineProperty(this, "renderExport", function () {
65
67
  return null;
66
68
  });
67
- _defineProperty(this, "editRender", function () {
69
+ _defineProperty(this, "editRender", function (p) {
68
70
  var _this$componentConfig, _this$componentConfig2, _this$effects;
69
71
  return /*#__PURE__*/React.createElement(GetFormItem, {
70
72
  title: _this.name,
71
73
  name: _this.id,
72
74
  rules: _this.rules,
75
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
73
76
  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,
74
77
  component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({}, _this.componentConfig, {
75
78
  logisticsOptions: _this.expressDateInstance.getExpressData(),
@@ -92,6 +95,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
92
95
  });
93
96
  this.id = options.id;
94
97
  this.sortField = options.id;
98
+ this.formField = options.id;
95
99
  this.type = options.type;
96
100
  this.componentConfig = options.componentConfig;
97
101
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
@@ -112,6 +116,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
112
116
  }));
113
117
  this.isCombinationComponent = true;
114
118
  this.canSort = false;
119
+ this.dataType = 'object';
115
120
  this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus];
116
121
  this.rules = [{
117
122
  validator: function validator(_, value) {
@@ -11,7 +11,10 @@ declare class InterceptSenderMobile implements ComponentInterface {
11
11
  align: ALignType;
12
12
  width: number;
13
13
  isCombinationComponent: boolean;
14
+ sortField: string;
15
+ formField: string;
14
16
  canSort: boolean;
17
+ dataType: ComponentInterface['dataType'];
15
18
  children: ComponentInterface[];
16
19
  constructor(options: PickOption);
17
20
  getComponentValue: (r: Record) => any;