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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/esm/Hooks/index.d.ts +2 -0
  2. package/dist/esm/Hooks/index.js +2 -0
  3. package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
  4. package/dist/esm/Hooks/useColumnsConfig.js +243 -0
  5. package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
  6. package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
  7. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  8. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
  9. package/dist/esm/commonComponents/GlobalContext/index.js +60 -20
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +11 -9
  13. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  14. package/dist/esm/commonComponents/OperationLog/index.js +4 -2
  15. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
  16. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
  17. package/dist/esm/commonComponents/ShopList/index.js +3 -1
  18. package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -2
  19. package/dist/esm/components/BS/BsLogistics/index.js +61 -8
  20. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  21. package/dist/esm/components/BS/BsSystemOrder/index.js +56 -9
  22. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  23. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  24. package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
  25. package/dist/esm/components/BS/common/BsMemo.js +4 -1
  26. package/dist/esm/components/BS/common/BsType.js +4 -1
  27. package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
  28. package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
  29. package/dist/esm/components/BS/common/expressCode.js +16 -4
  30. package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
  31. package/dist/esm/components/BS/common/expressCompany.js +31 -5
  32. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  33. package/dist/esm/components/Cascader/index.d.ts +8 -6
  34. package/dist/esm/components/Cascader/index.js +26 -22
  35. package/dist/esm/components/Common/constants/bs.js +2 -2
  36. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  37. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  38. package/dist/esm/components/Common/constants/wdt.js +104 -0
  39. package/dist/esm/components/Common/index.d.ts +2 -2
  40. package/dist/esm/components/Common/index.js +40 -24
  41. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  42. package/dist/esm/components/CommonDataTime/index.js +2 -2
  43. package/dist/esm/components/CommonHeaderGood/index.js +1165 -18
  44. package/dist/esm/components/CommonInput/index.js +11 -3
  45. package/dist/esm/components/CommonMultiStatus/index.js +73 -36
  46. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  47. package/dist/esm/components/ErpTradeId/index.js +7 -4
  48. package/dist/esm/components/File/index.d.ts +6 -6
  49. package/dist/esm/components/File/index.js +9 -10
  50. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  51. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  52. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  53. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  54. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  55. package/dist/esm/components/Input/index.d.ts +4 -4
  56. package/dist/esm/components/Input/index.js +35 -31
  57. package/dist/esm/components/JST/JstSendGood/index.js +17 -1
  58. package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
  59. package/dist/esm/components/KM/KmExchange/index.js +136 -0
  60. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  61. package/dist/esm/components/Logistics/index.d.ts +1 -0
  62. package/dist/esm/components/Logistics/index.js +10 -0
  63. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  64. package/dist/esm/components/LogisticsInterception/index.d.ts +20 -0
  65. package/dist/esm/components/LogisticsInterception/index.js +10 -5
  66. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
  67. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
  68. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  69. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  70. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  71. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
  72. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  73. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  74. package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
  75. package/dist/esm/components/OrderSubForm/index.js +24 -7
  76. package/dist/esm/components/Payment/index.d.ts +13 -12
  77. package/dist/esm/components/Payment/index.js +31 -11
  78. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  79. package/dist/esm/components/Picture/index.d.ts +5 -5
  80. package/dist/esm/components/Picture/index.js +20 -20
  81. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  82. package/dist/esm/components/PicturePro/index.js +42 -25
  83. package/dist/esm/components/PostIng/index.d.ts +5 -0
  84. package/dist/esm/components/PostIng/index.js +42 -8
  85. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  86. package/dist/esm/components/Public/Goods/index.js +42 -2
  87. package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
  88. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  89. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  90. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  91. package/dist/esm/components/ReceiverAddress/index.js +41 -27
  92. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  93. package/dist/esm/components/Remark/index.d.ts +18 -2
  94. package/dist/esm/components/Remark/index.js +37 -2
  95. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  96. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  97. package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
  98. package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
  99. package/dist/esm/components/Select/index.d.ts +1 -0
  100. package/dist/esm/components/Select/index.js +19 -11
  101. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  102. package/dist/esm/components/ShopInput/index.js +12 -9
  103. package/dist/esm/components/StatusSelect/index.js +4 -0
  104. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  105. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  106. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  107. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  108. package/dist/esm/components/SubForm/index.js +78 -6
  109. package/dist/esm/components/TradeId/index.d.ts +5 -5
  110. package/dist/esm/components/TradeId/index.js +17 -14
  111. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  112. package/dist/esm/factory.d.ts +2 -2
  113. package/dist/esm/factory.js +34 -7
  114. package/dist/esm/index.d.ts +4 -0
  115. package/dist/esm/index.js +6 -1
  116. package/dist/esm/service/api.d.ts +3 -0
  117. package/dist/esm/service/api.js +34 -1
  118. package/dist/esm/type.d.ts +38 -0
  119. package/package.json +4 -4
  120. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  121. package/dist/esm/components/Common/constants/gy.js +0 -219
@@ -17,6 +17,14 @@ var INPUT_MAP = {
17
17
  key: "businessOrderNo",
18
18
  disabled: true,
19
19
  placeholder: "自动获取无需填写"
20
+ },
21
+ REPAIR_ORDER_SN: {
22
+ key: "repairOrderSn",
23
+ placeholder: "请输入维修单编号"
24
+ },
25
+ REPAIR_ORDER_ID: {
26
+ key: "repairOrderId",
27
+ placeholder: "请输入维修单id"
20
28
  }
21
29
  };
22
30
  var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
@@ -62,7 +70,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
62
70
  return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
63
71
  });
64
72
  _defineProperty(this, "editRender", function (p) {
65
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
73
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
66
74
  return /*#__PURE__*/React.createElement(GetFormItem, {
67
75
  title: _this.name,
68
76
  name: _this.id,
@@ -70,10 +78,10 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
70
78
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
71
79
  display: p === null || p === void 0 ? void 0 : p.display,
72
80
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
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 : '',
81
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
74
82
  component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
75
83
  placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
76
- disabled: INPUT_MAP[_this.type].disabled
84
+ disabled: INPUT_MAP[_this.type].disabled || ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.disabled)
77
85
  }))
78
86
  });
79
87
  });
@@ -133,6 +133,41 @@ var typeMap = {
133
133
  idKey: "systemOrderId",
134
134
  failValue: "失败",
135
135
  dataType: "array_object"
136
+ },
137
+ JKY_WAREHOUSING_STATUS: {
138
+ options: [{
139
+ value: "0",
140
+ label: "未收货",
141
+ color: "#ff4d4f"
142
+ }, {
143
+ value: "1",
144
+ label: "部分收货",
145
+ color: "#e7780f"
146
+ }, {
147
+ value: "2",
148
+ label: "收货完成",
149
+ color: "#52c41a"
150
+ }, {
151
+ label: "收货完成-少收",
152
+ value: "3",
153
+ color: "#e7780f"
154
+ }, {
155
+ label: "收货完成-超收",
156
+ value: "4",
157
+ color: "#e7780f"
158
+ }, {
159
+ label: "无需收货",
160
+ value: "5",
161
+ color: "#52c41a"
162
+ }],
163
+ key: "jkyInStockStatusItemList",
164
+ code: "jkyInStockStatusList",
165
+ name: "商品入库状态(勿填)",
166
+ type: 2,
167
+ valueKey: "status",
168
+ idKey: "sourceTradeNo",
169
+ failValue: "失败",
170
+ dataType: "array_object"
136
171
  }
137
172
  };
138
173
  var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
@@ -158,7 +193,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
158
193
  _defineProperty(this, "dataType", void 0);
159
194
  _defineProperty(this, "isSingleValue", void 0);
160
195
  _defineProperty(this, "renderClient", function (record) {
161
- var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
196
+ var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
162
197
  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) {
163
198
  return !isNull(item);
164
199
  }) : false;
@@ -167,16 +202,17 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
167
202
  label: _this.name,
168
203
  value: /*#__PURE__*/React.createElement(CommonOrderContent, {
169
204
  list: record === null || record === void 0 ? void 0 : record[_this.id],
170
- valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
171
- failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
172
- options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options,
205
+ idKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.idKey,
206
+ valueKey: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.valueKey,
207
+ failValue: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.failValue,
208
+ options: (_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.options,
173
209
  isShowPopover: !_this.isSingleValue
174
210
  })
175
211
  }) : null;
176
212
  });
177
213
  _defineProperty(this, "renderPc", function (value, record) {
178
- var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
179
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
214
+ var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9;
215
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)];
180
216
  //兼容多个商品
181
217
  return /*#__PURE__*/React.createElement("span", {
182
218
  onClick: function onClick(e) {
@@ -184,40 +220,41 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
184
220
  }
185
221
  }, /*#__PURE__*/React.createElement(CommonOrderContent, {
186
222
  list: list,
187
- valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
188
- failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
189
- options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options,
223
+ idKey: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.idKey,
224
+ valueKey: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.valueKey,
225
+ failValue: (_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.failValue,
226
+ options: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.options,
190
227
  isShowPopover: !_this.isSingleValue
191
228
  }));
192
229
  });
193
230
  _defineProperty(this, "renderLog", function (r) {
194
- var _typeMap$_this$type8;
195
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)];
231
+ var _typeMap$_this$type10;
232
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
196
233
  if (isNull(list)) return null;
197
234
  return _this.renderPc(undefined, r);
198
235
  });
199
236
  _defineProperty(this, "getComponentValue", function (r) {
200
- var _typeMap$_this$type9;
201
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)];
237
+ var _typeMap$_this$type11;
238
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.key)];
202
239
  });
203
240
  _defineProperty(this, "renderExport", function (value, record) {
204
- var _typeMap$_this$type10;
205
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
241
+ var _typeMap$_this$type12;
242
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.key)];
206
243
  return (list || []).map(function (item) {
207
- var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13, _typeMap$_this$type16, _typeMap$_this$type17;
208
- var currentOption = (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : (_typeMap$_this$type12 = _typeMap$_this$type11.options) === null || _typeMap$_this$type12 === void 0 ? void 0 : (_typeMap$_this$type13 = _typeMap$_this$type12.find) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.call(_typeMap$_this$type12, function (option) {
209
- var _typeMap$_this$type14;
210
- return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
244
+ var _typeMap$_this$type13, _typeMap$_this$type14, _typeMap$_this$type15, _typeMap$_this$type18, _typeMap$_this$type19;
245
+ var currentOption = (_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : (_typeMap$_this$type14 = _typeMap$_this$type13.options) === null || _typeMap$_this$type14 === void 0 ? void 0 : (_typeMap$_this$type15 = _typeMap$_this$type14.find) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.call(_typeMap$_this$type14, function (option) {
246
+ var _typeMap$_this$type16;
247
+ return item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey] === option.value;
211
248
  });
212
249
  if (_this.isSingleValue) {
213
- var _typeMap$_this$type15;
214
- return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "";
250
+ var _typeMap$_this$type17;
251
+ return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.valueKey]) || "";
215
252
  }
216
- return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.valueKey]) || "");
253
+ return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.valueKey]) || "");
217
254
  }).join(",");
218
255
  });
219
256
  _defineProperty(this, "editRender", function (p) {
220
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type18;
257
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type20;
221
258
  return /*#__PURE__*/React.createElement(GetFormItem, {
222
259
  title: _this.name,
223
260
  name: _this.id,
@@ -227,19 +264,19 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
227
264
  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,
228
265
  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 : "",
229
266
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
230
- type: (_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.type,
267
+ type: (_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.type,
231
268
  failValue: typeMap[_this.type].failValue
232
269
  }))
233
270
  });
234
271
  });
235
272
  _defineProperty(this, "filterConfig", function (item) {
236
- var _typeMap$_this$type19, _item$templateConfig;
273
+ var _typeMap$_this$type21, _item$templateConfig;
237
274
  return {
238
- searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
275
+ searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
239
276
  type: item.type,
240
- id: "".concat(item.id, "_").concat((_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code),
277
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
241
278
  name: "".concat(_this.name),
242
- filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
279
+ filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
243
280
  props: {
244
281
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
245
282
  fieldNames: {
@@ -250,11 +287,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
250
287
  },
251
288
  filterFn: function filterFn(value) {
252
289
  return function (i) {
253
- var _typeMap$_this$type20;
254
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.code), value);
290
+ var _typeMap$_this$type22;
291
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
255
292
  };
256
293
  },
257
- formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
294
+ formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
258
295
  if (value.type === "in") {
259
296
  return value.keywords;
260
297
  } else {
@@ -279,17 +316,17 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
279
316
  required: true,
280
317
  validator: function validator(_, value) {
281
318
  var hasNo = (value || []).some(function (item) {
282
- var _typeMap$_this$type21;
283
- return item[(_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.valueKey];
319
+ var _typeMap$_this$type23;
320
+ return item[(_typeMap$_this$type23 = typeMap[_this.type]) === null || _typeMap$_this$type23 === void 0 ? void 0 : _typeMap$_this$type23.valueKey];
284
321
  });
285
322
  if (!hasNo) {
286
- var _typeMap$_this$type22;
287
- return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.name)));
323
+ var _typeMap$_this$type24;
324
+ return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type24 = typeMap[_this.type]) === null || _typeMap$_this$type24 === void 0 ? void 0 : _typeMap$_this$type24.name)));
288
325
  }
289
326
  return Promise.resolve();
290
327
  }
291
328
  }] : [];
292
329
  this.align = "left";
293
- this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS";
330
+ this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
294
331
  });
295
332
  export default CommonMultiStatus;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import TradeId from '../TradeId';
1
+ import React from "react";
2
+ import TradeId from "../TradeId";
3
3
  declare class ErpTradeId extends TradeId {
4
4
  editRender: (p: any) => React.JSX.Element;
5
5
  }
@@ -13,7 +13,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
13
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
14
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
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';
16
+ import React from "react";
17
17
  import GetFormItem from "../GetFormItem";
18
18
  import TradeId from "../TradeId";
19
19
  import OrderNo from "./components/OrderNum";
@@ -30,8 +30,11 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
30
30
  _defineProperty(_assertThisInitialized(_this), "editRender", function (p) {
31
31
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
32
32
  var onTradeIdBlur = function onTradeIdBlur(value) {
33
- var _p$onBlur;
34
- p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, value, 'tradeId');
33
+ var _this$effects, _this$effects$form, _p$onBlur;
34
+ (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : (_this$effects$form = _this$effects.form) === null || _this$effects$form === void 0 ? void 0 : _this$effects$form.setFieldsValue({
35
+ skx_return_billNo_blur_from: _this.id
36
+ });
37
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, value, "tradeId");
35
38
  };
36
39
  return /*#__PURE__*/React.createElement(GetFormItem, {
37
40
  title: _this.name,
@@ -40,7 +43,7 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
40
43
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
41
44
  display: p === null || p === void 0 ? void 0 : p.display,
42
45
  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,
43
- 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 : '',
46
+ 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 : "",
44
47
  component: /*#__PURE__*/React.createElement(OrderNo, _extends({}, _this.componentConfig, {
45
48
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
46
49
  onTradeIdBlur: onTradeIdBlur
@@ -1,5 +1,5 @@
1
- import { ComponentInterface, PickOption, Record } from "../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class BasicFile implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -7,14 +7,14 @@ declare class BasicFile implements ComponentInterface {
7
7
  formField: string;
8
8
  type: string;
9
9
  rules: any[];
10
- componentConfig: ComponentInterface["componentConfig"];
10
+ componentConfig: ComponentInterface['componentConfig'];
11
11
  isCombinationComponent: boolean;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- effects: ComponentInterface["effects"];
15
- dataType: ComponentInterface["dataType"];
14
+ effects: ComponentInterface['effects'];
15
+ dataType: ComponentInterface['dataType'];
16
16
  exampleValue?: string;
17
- standardDateType: ComponentInterface["standardDateType"];
17
+ standardDateType: ComponentInterface['standardDateType'];
18
18
  constructor(options: PickOption);
19
19
  renderPc: (value: any, record: Record) => any;
20
20
  renderLog: (r: Record) => any;
@@ -12,11 +12,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
12
12
  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; }
13
13
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
14
  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); }
15
- import React from "react";
16
- import { ApaasUploadFile } from "@kmkf-fe-packages/basic-components";
15
+ import React from 'react';
16
+ import { ApaasUploadFile } from '@kmkf-fe-packages/basic-components';
17
17
  import GetFormItem from "../GetFormItem";
18
18
  import ItemView from "../../commonComponents/ItemView";
19
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
19
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
20
20
  import { FileRender } from "../Common";
21
21
  import { PlatForm } from "../../type";
22
22
  var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
@@ -46,7 +46,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
46
46
  href: file.url,
47
47
  target: "_blank",
48
48
  style: {
49
- display: "block"
49
+ display: 'block'
50
50
  }
51
51
  }, file.name);
52
52
  });
@@ -60,7 +60,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
60
60
  });
61
61
  _defineProperty(this, "renderClient", function (record) {
62
62
  var _this$effects;
63
- var _this$id$split = _this.id.split("_"),
63
+ var _this$id$split = _this.id.split('_'),
64
64
  _this$id$split2 = _slicedToArray(_this$id$split, 1),
65
65
  id = _this$id$split2[0];
66
66
  var canDownload = ![PlatForm.KS, PlatForm.FXG].includes((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env);
@@ -83,9 +83,8 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
83
83
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
84
84
  display: p === null || p === void 0 ? void 0 : p.display,
85
85
  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,
86
- 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 : "",
86
+ 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 : '',
87
87
  component: /*#__PURE__*/React.createElement(ApaasUploadFile, _extends({}, _this.componentConfig, {
88
- uniqueKey: _this.id,
89
88
  platform: p === null || p === void 0 ? void 0 : p.platform,
90
89
  canDownload: canDownload,
91
90
  hostUrl: "https://kefu.kuaimai.com"
@@ -97,7 +96,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
97
96
  prv.push(next.url);
98
97
  return prv;
99
98
  }, []);
100
- return textArr === null || textArr === void 0 ? void 0 : textArr.join(",");
99
+ return textArr === null || textArr === void 0 ? void 0 : textArr.join(',');
101
100
  });
102
101
  _defineProperty(this, "filterConfig", function () {
103
102
  return [];
@@ -112,9 +111,9 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
112
111
  this.isCombinationComponent = false;
113
112
  this.canSort = false;
114
113
  this.children = [];
115
- this.dataType = "array";
114
+ this.dataType = 'array';
116
115
  this.effects = options.effects;
117
116
  this.exampleValue = '[{"name":"c.jpeg","url":"https://kefu.kuaimai.com/pic/c.jpeg"}]';
118
- this.standardDateType = "Array";
117
+ this.standardDateType = 'Array';
119
118
  });
120
119
  export default BasicFile;
@@ -0,0 +1,40 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
+ declare class FlowOverallStatusSelect implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ effects: ComponentInterface["effects"];
11
+ workOrderStatus: any;
12
+ isCombinationComponent: boolean;
13
+ formField: string;
14
+ canSort: boolean;
15
+ children: ComponentInterface[];
16
+ dataType: ComponentInterface["dataType"];
17
+ options: ComponentInterface["options"];
18
+ constructor(options: PickOption);
19
+ renderPc: (value: any, record: Record) => React.JSX.Element;
20
+ renderLog: (r: Record) => React.JSX.Element | null;
21
+ getComponentValue: (r: Record) => any;
22
+ renderExport: (value: any, record: Record) => any;
23
+ renderClient: () => null;
24
+ editRender: (p: any) => React.JSX.Element;
25
+ filterConfig: (item: ColumnConfig) => {
26
+ searchDefaultConditions: "in";
27
+ type: string;
28
+ id: string;
29
+ name: string;
30
+ filterComponentType: "MultipleSelect";
31
+ props: {
32
+ options: {
33
+ label: any;
34
+ value: string;
35
+ }[];
36
+ };
37
+ filterFn: (value: string[]) => (i: Record) => boolean;
38
+ };
39
+ }
40
+ export default FlowOverallStatusSelect;
@@ -0,0 +1,180 @@
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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ 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); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
+ import React from "react";
10
+ import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
11
+ import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
12
+ import GetFormItem from "../GetFormItem";
13
+ import get from "lodash/get";
14
+ import { SYMBOL } from "../../constant";
15
+ // 节点状态
16
+ var FlowOverallStatusSelect = /*#__PURE__*/_createClass(function FlowOverallStatusSelect(options) {
17
+ var _this = this,
18
+ _Object$keys2;
19
+ _classCallCheck(this, FlowOverallStatusSelect);
20
+ _defineProperty(this, "name", void 0);
21
+ _defineProperty(this, "id", void 0);
22
+ _defineProperty(this, "sortField", void 0);
23
+ _defineProperty(this, "type", void 0);
24
+ _defineProperty(this, "rules", void 0);
25
+ _defineProperty(this, "componentConfig", void 0);
26
+ _defineProperty(this, "effects", void 0);
27
+ _defineProperty(this, "workOrderStatus", void 0);
28
+ _defineProperty(this, "isCombinationComponent", void 0);
29
+ _defineProperty(this, "formField", void 0);
30
+ _defineProperty(this, "canSort", void 0);
31
+ _defineProperty(this, "children", void 0);
32
+ _defineProperty(this, "dataType", void 0);
33
+ _defineProperty(this, "options", void 0);
34
+ _defineProperty(this, "renderPc", function (value, record) {
35
+ var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
36
+ return status ?
37
+ /*#__PURE__*/
38
+ // <Dropdown overlay={this.renderMenu(record)}>
39
+ React.createElement("span", {
40
+ style: {
41
+ color: status.color
42
+ }
43
+ }, status === null || status === void 0 ? void 0 : status.label) :
44
+ /*#__PURE__*/
45
+ // </Dropdown>
46
+ React.createElement("span", null, "--");
47
+ });
48
+ _defineProperty(this, "renderLog", function (r) {
49
+ var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
50
+ if (!status) return null;
51
+ return _this.renderPc(undefined, r);
52
+ });
53
+ _defineProperty(this, "getComponentValue", function (r) {
54
+ var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
55
+ return status;
56
+ });
57
+ _defineProperty(this, "renderExport", function (value, record) {
58
+ var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
59
+ return status ? status === null || status === void 0 ? void 0 : status.label : "--";
60
+ });
61
+ _defineProperty(this, "renderClient", function () {
62
+ return null;
63
+ });
64
+ _defineProperty(this, "editRender", function (p) {
65
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
66
+ return /*#__PURE__*/React.createElement(GetFormItem, {
67
+ title: _this.name,
68
+ name: _this.id,
69
+ rules: _this.rules,
70
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
71
+ display: p === null || p === void 0 ? void 0 : p.display,
72
+ 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,
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
+ component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
75
+ placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
76
+ showSearch: true
77
+ }))
78
+ });
79
+ });
80
+ _defineProperty(this, "filterConfig", function (item) {
81
+ var _Object$keys, _Object$keys$filter;
82
+ return {
83
+ searchDefaultConditions: SYMBOL.in,
84
+ type: item.type,
85
+ id: item.id,
86
+ // 过滤组件id
87
+ name: item.name,
88
+ // 过滤组件名称
89
+ filterComponentType: "MultipleSelect",
90
+ props: {
91
+ options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : (_Object$keys$filter = _Object$keys.filter(function (key) {
92
+ return key !== "HANDLING";
93
+ })) === null || _Object$keys$filter === void 0 ? void 0 : _Object$keys$filter.map(function (item) {
94
+ return {
95
+ label: _this.workOrderStatus[item].label,
96
+ value: item
97
+ };
98
+ })
99
+ },
100
+ filterFn: function filterFn(value) {
101
+ return function (i) {
102
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
103
+ };
104
+ }
105
+ };
106
+ });
107
+ this.name = options.name;
108
+ this.id = options.id;
109
+ this.sortField = options.id;
110
+ this.formField = options.id;
111
+ this.type = options.type;
112
+ this.componentConfig = options.componentConfig;
113
+ this.effects = options.effects;
114
+ this.rules = [];
115
+ this.isCombinationComponent = false;
116
+ this.canSort = true;
117
+ this.children = [];
118
+ this.workOrderStatus = {
119
+ PROCESSING: {
120
+ label: "处理中",
121
+ color: "#1890ff",
122
+ bgColor: "#1890ff"
123
+ },
124
+ STOPPING: {
125
+ label: "暂停中",
126
+ color: "#ff4d4f",
127
+ bgColor: "#ff4d4f"
128
+ },
129
+ COMPLETED: {
130
+ label: "已完成",
131
+ color: "#73d13d",
132
+ bgColor: "#73d13d"
133
+ },
134
+ CLOSED: {
135
+ label: "已关闭",
136
+ color: "rgba(0, 0, 0, 0.65)",
137
+ bgColor: "rgba(0, 0, 0, 0.04);"
138
+ },
139
+ FLOWING: {
140
+ label: "流转中",
141
+ color: "#1890ff",
142
+ bgColor: "#1890ff"
143
+ },
144
+ RETURNING: {
145
+ label: "回退中",
146
+ color: "#1890ff",
147
+ bgColor: "#1890ff"
148
+ },
149
+ BUSINESS_SUCCESS_BUT_FLOW_FAIL: {
150
+ label: "业务执行完毕但流转异常",
151
+ color: "#73d13d",
152
+ bgColor: "#73d13d"
153
+ }
154
+ };
155
+ this.dataType = "string";
156
+ this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
157
+ return {
158
+ label: _this.workOrderStatus[item].label,
159
+ value: item
160
+ };
161
+ });
162
+ }
163
+ // renderMenu = (record: Record) => {
164
+ // const menu = (
165
+ // <Menu
166
+ // onClick={({ key }) => {
167
+ // typeof this?.effects?.handleChangeSingleWorkOrderStatus === 'function' && this?.effects?.handleChangeSingleWorkOrderStatus(key, record)
168
+ // }}
169
+ // >
170
+ // <Menu.Item key="HANDLING">处理中</Menu.Item>
171
+ // <Menu.Item key="STOPPING">暂停中</Menu.Item>
172
+ // <Menu.Item key="COMPLETED">已完成</Menu.Item>
173
+ // <Menu.Item key="WAITING">待处理</Menu.Item>
174
+ // </Menu>
175
+ // );
176
+ // return menu;
177
+ // };
178
+ );
179
+
180
+ export default FlowOverallStatusSelect;
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
+ import { useGoodsSourceFormat } from "../../../Hooks";
19
20
  var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
20
21
  var _this = this,
21
22
  _this$componentConfig6;
@@ -64,7 +65,7 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
64
65
  return null;
65
66
  });
66
67
  _defineProperty(this, "editRender", function (p) {
67
- var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
68
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3, _this$effects4, _this$effects5;
68
69
  return /*#__PURE__*/React.createElement(GetFormItem, {
69
70
  title: _this.name,
70
71
  name: _this.id,
@@ -74,10 +75,13 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
74
75
  display: p === null || p === void 0 ? void 0 : p.display,
75
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 : "",
76
77
  component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
78
+ useGoodsSourceFormat: useGoodsSourceFormat,
77
79
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
78
80
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
79
81
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
80
82
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
83
+ form: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.form,
84
+ templateDetail: (_this$effects5 = _this.effects) === null || _this$effects5 === void 0 ? void 0 : _this$effects5.templateDetail,
81
85
  type: _this.type,
82
86
  width: "90%"
83
87
  }))