@kmkf-fe-packages/services-components 1.0.6 → 1.0.7

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 (247) hide show
  1. package/dist/esm/components/ActualPayment/BsDeposit.d.ts +23 -0
  2. package/dist/esm/components/ActualPayment/BsDeposit.js +50 -0
  3. package/dist/esm/components/ActualPayment/BsNetReceipts.d.ts +23 -0
  4. package/dist/esm/components/ActualPayment/BsNetReceipts.js +50 -0
  5. package/dist/esm/components/ActualPayment/BsPackageWeight.d.ts +23 -0
  6. package/dist/esm/components/ActualPayment/BsPackageWeight.js +50 -0
  7. package/dist/esm/components/ActualPayment/index.d.ts +16 -2
  8. package/dist/esm/components/ActualPayment/index.js +28 -35
  9. package/dist/esm/components/Address/index.d.ts +14 -0
  10. package/dist/esm/components/Address/index.js +15 -2
  11. package/dist/esm/components/Alipay/index.d.ts +30 -5
  12. package/dist/esm/components/Alipay/index.js +31 -6
  13. package/dist/esm/components/BS/BsDeposit/index.d.ts +60 -0
  14. package/dist/esm/components/BS/BsDeposit/index.js +165 -0
  15. package/dist/esm/components/BS/BsExchange/index.d.ts +39 -0
  16. package/dist/esm/components/BS/BsExchange/index.js +52 -1
  17. package/dist/esm/components/BS/BsGoods/index.d.ts +30 -0
  18. package/dist/esm/components/BS/BsGoods/index.js +31 -1
  19. package/dist/esm/components/BS/BsLogistics/index.d.ts +33 -0
  20. package/dist/esm/components/BS/BsLogistics/index.js +62 -52
  21. package/dist/esm/components/BS/BsPosting/index.d.ts +15 -0
  22. package/dist/esm/components/BS/BsPosting/index.js +16 -1
  23. package/dist/esm/components/BS/BsReissue/index.d.ts +46 -7
  24. package/dist/esm/components/BS/BsReissue/index.js +70 -19
  25. package/dist/esm/components/BS/BsReturn/index.d.ts +39 -0
  26. package/dist/esm/components/BS/BsReturn/index.js +44 -1
  27. package/dist/esm/components/BS/BsSendGood/index.d.ts +36 -0
  28. package/dist/esm/components/BS/BsSendGood/index.js +68 -0
  29. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +18 -29
  30. package/dist/esm/components/BS/BsSystemOrder/index.js +37 -138
  31. package/dist/esm/components/BusinessOrderNo/index.d.ts +26 -0
  32. package/dist/esm/components/BusinessOrderNo/index.js +53 -0
  33. package/dist/esm/components/BuyerMessageNotice/index.d.ts +37 -0
  34. package/dist/esm/components/BuyerMessageNotice/index.js +66 -0
  35. package/dist/esm/components/BuyerNick/index.d.ts +20 -0
  36. package/dist/esm/components/BuyerNick/index.js +21 -2
  37. package/dist/esm/components/Calculation/index.d.ts +18 -0
  38. package/dist/esm/components/Calculation/index.js +21 -3
  39. package/dist/esm/components/Cascader/index.d.ts +20 -5
  40. package/dist/esm/components/Cascader/index.js +35 -21
  41. package/dist/esm/components/Checkbox/index.d.ts +26 -4
  42. package/dist/esm/components/Checkbox/index.js +62 -19
  43. package/dist/esm/components/CommonDataTime/CompletedDateTime.d.ts +7 -0
  44. package/dist/esm/components/CommonDataTime/CompletedDateTime.js +29 -0
  45. package/dist/esm/components/CommonDataTime/CreatedDateTime.d.ts +7 -0
  46. package/dist/esm/components/CommonDataTime/CreatedDateTime.js +29 -0
  47. package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.d.ts +7 -0
  48. package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.js +29 -0
  49. package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.d.ts +7 -0
  50. package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.js +29 -0
  51. package/dist/esm/components/CommonDataTime/UpdateDateTime.d.ts +7 -0
  52. package/dist/esm/components/CommonDataTime/UpdateDateTime.js +29 -0
  53. package/dist/esm/components/CommonDataTime/index.d.ts +1 -0
  54. package/dist/esm/components/CommonDataTime/index.js +1 -0
  55. package/dist/esm/components/CommonInput/index.d.ts +5 -0
  56. package/dist/esm/components/CommonInput/index.js +32 -18
  57. package/dist/esm/components/CommonMultiStatus/ExchangeStatus.d.ts +30 -0
  58. package/dist/esm/components/CommonMultiStatus/ExchangeStatus.js +69 -0
  59. package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.d.ts +30 -0
  60. package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.js +69 -0
  61. package/dist/esm/components/CommonMultiStatus/WareHousingStatus.d.ts +34 -0
  62. package/dist/esm/components/CommonMultiStatus/WareHousingStatus.js +83 -0
  63. package/dist/esm/components/CommonMultiStatus/index.d.ts +19 -20
  64. package/dist/esm/components/CommonMultiStatus/index.js +99 -109
  65. package/dist/esm/components/CommonSystemOrder/DeliveryNoList.d.ts +21 -0
  66. package/dist/esm/components/CommonSystemOrder/DeliveryNoList.js +48 -0
  67. package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.d.ts +22 -0
  68. package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.js +49 -0
  69. package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.d.ts +32 -0
  70. package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.js +60 -0
  71. package/dist/esm/components/CommonSystemOrder/TradeItemList.d.ts +23 -0
  72. package/dist/esm/components/CommonSystemOrder/TradeItemList.js +50 -0
  73. package/dist/esm/components/CommonSystemOrder/index.d.ts +11 -4
  74. package/dist/esm/components/CommonSystemOrder/index.js +36 -66
  75. package/dist/esm/components/CompletedUser/index.d.ts +6 -4
  76. package/dist/esm/components/CompletedUser/index.js +9 -7
  77. package/dist/esm/components/DataTime/index.d.ts +20 -4
  78. package/dist/esm/components/DataTime/index.js +32 -16
  79. package/dist/esm/components/EItemEnCode/index.d.ts +36 -0
  80. package/dist/esm/components/EItemEnCode/index.js +38 -2
  81. package/dist/esm/components/EItemId/index.d.ts +21 -0
  82. package/dist/esm/components/EItemId/index.js +22 -1
  83. package/dist/esm/components/EItemSelect/index.d.ts +22 -1
  84. package/dist/esm/components/EItemSelect/index.js +23 -2
  85. package/dist/esm/components/File/index.d.ts +15 -0
  86. package/dist/esm/components/File/index.js +16 -1
  87. package/dist/esm/components/FlowCreator/index.d.ts +2 -0
  88. package/dist/esm/components/FlowCreator/index.js +2 -0
  89. package/dist/esm/components/FlowMarkSelect/index.d.ts +2 -0
  90. package/dist/esm/components/FlowMarkSelect/index.js +2 -0
  91. package/dist/esm/components/FlowStatusSelect/index.d.ts +2 -0
  92. package/dist/esm/components/FlowStatusSelect/index.js +3 -2
  93. package/dist/esm/components/FlowTag/index.d.ts +2 -0
  94. package/dist/esm/components/FlowTag/index.js +2 -0
  95. package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -0
  96. package/dist/esm/components/FlowWorkOrderId/index.js +3 -1
  97. package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +6 -4
  98. package/dist/esm/components/FlowWorkOrderStatus/index.js +31 -29
  99. package/dist/esm/components/Grade/index.d.ts +25 -3
  100. package/dist/esm/components/Grade/index.js +29 -7
  101. package/dist/esm/components/Handler/index.d.ts +6 -4
  102. package/dist/esm/components/Handler/index.js +9 -7
  103. package/dist/esm/components/HandlerDeadLine/index.d.ts +2 -0
  104. package/dist/esm/components/HandlerDeadLine/index.js +3 -1
  105. package/dist/esm/components/Input/index.d.ts +53 -0
  106. package/dist/esm/components/Input/index.js +55 -1
  107. package/dist/esm/components/JST/JstItemSelect/index.d.ts +26 -0
  108. package/dist/esm/components/JST/JstItemSelect/index.js +27 -1
  109. package/dist/esm/components/JST/JstLogistics/index.d.ts +5 -30
  110. package/dist/esm/components/JST/JstLogistics/index.js +49 -53
  111. package/dist/esm/components/JST/JstSendGood/index.d.ts +29 -46
  112. package/dist/esm/components/JST/JstSendGood/index.js +52 -230
  113. package/dist/esm/components/JST/JstSupply/index.d.ts +27 -0
  114. package/dist/esm/components/JST/JstSupply/index.js +34 -1
  115. package/dist/esm/components/JST/ReissueLogistics/index.d.ts +76 -0
  116. package/dist/esm/components/JST/ReissueLogistics/index.js +147 -0
  117. package/dist/esm/components/Label/index.d.ts +25 -0
  118. package/dist/esm/components/Label/index.js +26 -0
  119. package/dist/esm/components/Logistics/index.d.ts +36 -0
  120. package/dist/esm/components/Logistics/index.js +40 -1
  121. package/dist/esm/components/LogisticsInterception/index.d.ts +15 -0
  122. package/dist/esm/components/LogisticsInterception/index.js +16 -1
  123. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +44 -13
  124. package/dist/esm/components/LogisticsMoreInterception/index.js +46 -15
  125. package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +56 -3
  126. package/dist/esm/components/LogisticsMoreTrajectory/index.js +62 -9
  127. package/dist/esm/components/LogisticsTrajectory/index.d.ts +48 -11
  128. package/dist/esm/components/LogisticsTrajectory/index.js +45 -8
  129. package/dist/esm/components/MsgStatus/index.d.ts +31 -4
  130. package/dist/esm/components/MsgStatus/index.js +72 -36
  131. package/dist/esm/components/MultSelect/index.d.ts +16 -0
  132. package/dist/esm/components/MultSelect/index.js +17 -1
  133. package/dist/esm/components/NewPaymentStatus/index.d.ts +41 -0
  134. package/dist/esm/components/NewPaymentStatus/index.js +105 -0
  135. package/dist/esm/components/NodeDeadLine/index.d.ts +2 -0
  136. package/dist/esm/components/NodeDeadLine/index.js +3 -1
  137. package/dist/esm/components/NodeInput/index.d.ts +6 -4
  138. package/dist/esm/components/NodeInput/index.js +9 -7
  139. package/dist/esm/components/NodeStayDuration/index.d.ts +2 -0
  140. package/dist/esm/components/NodeStayDuration/index.js +3 -1
  141. package/dist/esm/components/Ordinary/index.d.ts +27 -6
  142. package/dist/esm/components/Ordinary/index.js +39 -8
  143. package/dist/esm/components/OutFlowWorkOrderId/index.d.ts +34 -0
  144. package/dist/esm/components/OutFlowWorkOrderId/index.js +101 -0
  145. package/dist/esm/components/Payment/index.d.ts +25 -0
  146. package/dist/esm/components/Payment/index.js +26 -1
  147. package/dist/esm/components/PaymentVoucherCode/index.d.ts +20 -0
  148. package/dist/esm/components/PaymentVoucherCode/index.js +22 -2
  149. package/dist/esm/components/Picture/index.d.ts +18 -3
  150. package/dist/esm/components/Picture/index.js +31 -16
  151. package/dist/esm/components/PlatForm/index.d.ts +2 -0
  152. package/dist/esm/components/PlatForm/index.js +2 -0
  153. package/dist/esm/components/PostIng/index.d.ts +32 -0
  154. package/dist/esm/components/PostIng/index.js +39 -1
  155. package/dist/esm/components/PrevSubmitter/index.d.ts +2 -0
  156. package/dist/esm/components/PrevSubmitter/index.js +2 -0
  157. package/dist/esm/components/Radio/index.d.ts +26 -0
  158. package/dist/esm/components/Radio/index.js +27 -1
  159. package/dist/esm/components/Rate/index.d.ts +22 -3
  160. package/dist/esm/components/Rate/index.js +49 -30
  161. package/dist/esm/components/ReceiverAddress/index.d.ts +15 -0
  162. package/dist/esm/components/ReceiverAddress/index.js +16 -1
  163. package/dist/esm/components/ReceiverMobile/index.d.ts +23 -3
  164. package/dist/esm/components/ReceiverMobile/index.js +29 -9
  165. package/dist/esm/components/ReceiverName/index.d.ts +18 -3
  166. package/dist/esm/components/ReceiverName/index.js +23 -8
  167. package/dist/esm/components/Remark/index.d.ts +49 -0
  168. package/dist/esm/components/Remark/index.js +59 -1
  169. package/dist/esm/components/ReturnLogistics/index.d.ts +37 -6
  170. package/dist/esm/components/ReturnLogistics/index.js +50 -16
  171. package/dist/esm/components/Select/index.d.ts +4 -1
  172. package/dist/esm/components/Select/index.js +32 -30
  173. package/dist/esm/components/SendGood/index.d.ts +54 -0
  174. package/dist/esm/components/SendGood/index.js +215 -0
  175. package/dist/esm/components/ShopInput/index.d.ts +7 -5
  176. package/dist/esm/components/ShopInput/index.js +10 -8
  177. package/dist/esm/components/ShopName/index.d.ts +15 -0
  178. package/dist/esm/components/ShopName/index.js +16 -1
  179. package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.d.ts +30 -0
  180. package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.js +68 -0
  181. package/dist/esm/components/StatusSelect/CreateStatus.d.ts +7 -0
  182. package/dist/esm/components/StatusSelect/CreateStatus.js +41 -0
  183. package/dist/esm/components/StatusSelect/InvoiceStatus.d.ts +30 -0
  184. package/dist/esm/components/StatusSelect/InvoiceStatus.js +65 -0
  185. package/dist/esm/components/StatusSelect/InvoicingStatus.d.ts +30 -0
  186. package/dist/esm/components/StatusSelect/InvoicingStatus.js +65 -0
  187. package/dist/esm/components/StatusSelect/ReissueStatus.d.ts +30 -0
  188. package/dist/esm/components/StatusSelect/ReissueStatus.js +65 -0
  189. package/dist/esm/components/StatusSelect/index.d.ts +15 -1
  190. package/dist/esm/components/StatusSelect/index.js +30 -93
  191. package/dist/esm/components/Submitter/index.d.ts +6 -4
  192. package/dist/esm/components/Submitter/index.js +9 -7
  193. package/dist/esm/components/SystemOrder/index.d.ts +39 -0
  194. package/dist/esm/components/SystemOrder/index.js +162 -0
  195. package/dist/esm/components/SystemOrderNo/index.d.ts +18 -3
  196. package/dist/esm/components/SystemOrderNo/index.js +24 -9
  197. package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
  198. package/dist/esm/components/TemplateSelect/index.js +3 -1
  199. package/dist/esm/components/TextArea/index.d.ts +15 -0
  200. package/dist/esm/components/TextArea/index.js +16 -1
  201. package/dist/esm/components/ThirdItemSelect/index.d.ts +29 -3
  202. package/dist/esm/components/ThirdItemSelect/index.js +37 -11
  203. package/dist/esm/components/TradeDateTime/BsSendTime.d.ts +23 -0
  204. package/dist/esm/components/TradeDateTime/BsSendTime.js +46 -0
  205. package/dist/esm/components/TradeDateTime/BsSigningTime.d.ts +23 -0
  206. package/dist/esm/components/TradeDateTime/BsSigningTime.js +46 -0
  207. package/dist/esm/components/TradeDateTime/BsTradePaymentTime.d.ts +23 -0
  208. package/dist/esm/components/TradeDateTime/BsTradePaymentTime.js +46 -0
  209. package/dist/esm/components/TradeDateTime/TradeClosingDateTime.d.ts +23 -0
  210. package/dist/esm/components/TradeDateTime/TradeClosingDateTime.js +46 -0
  211. package/dist/esm/components/TradeDateTime/TradeCreateDateTime.d.ts +23 -0
  212. package/dist/esm/components/TradeDateTime/TradeCreateDateTime.js +46 -0
  213. package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.d.ts +23 -0
  214. package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.js +46 -0
  215. package/dist/esm/components/TradeDateTime/TradePaymentDateTime.d.ts +23 -0
  216. package/dist/esm/components/TradeDateTime/TradePaymentDateTime.js +46 -0
  217. package/dist/esm/components/TradeDateTime/index.d.ts +3 -4
  218. package/dist/esm/components/TradeDateTime/index.js +14 -39
  219. package/dist/esm/components/TradeId/index.d.ts +25 -5
  220. package/dist/esm/components/TradeId/index.js +29 -9
  221. package/dist/esm/components/WDT/WdtGoods/index.d.ts +30 -0
  222. package/dist/esm/components/WDT/WdtGoods/index.js +37 -1
  223. package/dist/esm/components/WDT/WdtLogistics/index.d.ts +93 -0
  224. package/dist/esm/components/WDT/WdtLogistics/index.js +227 -0
  225. package/dist/esm/components/WDT/WdtRessuie/index.d.ts +39 -0
  226. package/dist/esm/components/WDT/WdtRessuie/index.js +44 -1
  227. package/dist/esm/components/WDT/WdtSendGood/index.d.ts +41 -0
  228. package/dist/esm/components/WDT/WdtSendGood/index.js +73 -0
  229. package/dist/esm/components/WDT/WdtSystemOrder/index.d.ts +21 -0
  230. package/dist/esm/components/WDT/WdtSystemOrder/index.js +48 -0
  231. package/dist/esm/components/WLN/WlnGoods/index.d.ts +30 -0
  232. package/dist/esm/components/WLN/WlnGoods/index.js +31 -1
  233. package/dist/esm/components/WLN/WlnLogistics/index.d.ts +88 -0
  234. package/dist/esm/components/WLN/WlnLogistics/index.js +222 -0
  235. package/dist/esm/components/WLN/WlnSendGood/index.d.ts +36 -0
  236. package/dist/esm/components/WLN/WlnSendGood/index.js +68 -0
  237. package/dist/esm/components/WLN/WlnSystemOrder/index.d.ts +21 -0
  238. package/dist/esm/components/WLN/WlnSystemOrder/index.js +48 -0
  239. package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
  240. package/dist/esm/components/WorkOrderId/index.js +3 -1
  241. package/dist/esm/constant.d.ts +2 -0
  242. package/dist/esm/constant.js +3 -1
  243. package/dist/esm/factory.d.ts +2 -2
  244. package/dist/esm/factory.js +46 -20
  245. package/dist/esm/index.d.ts +39 -6
  246. package/dist/esm/index.js +39 -6
  247. package/package.json +6 -5
@@ -1,8 +1,8 @@
1
- import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
- import React from 'react';
3
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
- import Express from '../Express';
5
- import ExpressCode from '../ExpressCode';
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
+ import React from "react";
3
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ import Express from "../Express";
5
+ import ExpressCode from "../ExpressCode";
6
6
  declare class ReturnLogistics implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
@@ -18,7 +18,38 @@ declare class ReturnLogistics implements ComponentInterface {
18
18
  formField: string;
19
19
  canSort: boolean;
20
20
  children: ComponentInterface[];
21
- dataType: ComponentInterface['dataType'];
21
+ dataType: ComponentInterface["dataType"];
22
+ static group: string;
23
+ static configSchema: {
24
+ componentConfig: {
25
+ isSingle: boolean;
26
+ required: boolean;
27
+ showField: string;
28
+ };
29
+ name: string;
30
+ uniqueKey: string;
31
+ schema: {
32
+ required: {
33
+ title: string;
34
+ type: string;
35
+ };
36
+ isSingle: {
37
+ title: string;
38
+ type: string;
39
+ };
40
+ showField: {
41
+ widget: string;
42
+ type: string;
43
+ props: {
44
+ options: {
45
+ label: string;
46
+ value: string;
47
+ }[];
48
+ };
49
+ };
50
+ };
51
+ };
52
+ static type: string;
22
53
  constructor(options: PickOption);
23
54
  renderClient: (record: any) => React.JSX.Element;
24
55
  renderPc: () => null;
@@ -8,9 +8,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  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; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  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); }
11
- import React from 'react';
12
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
13
- import { ExpressLogistics } from '@kmkf-fe-packages/basic-components';
11
+ import React from "react";
12
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
13
+ import { ExpressLogistics } from "@kmkf-fe-packages/basic-components";
14
14
  import Express from "../Express";
15
15
  import ExpressCode from "../ExpressCode";
16
16
  import GetFormItem from "../GetFormItem";
@@ -68,52 +68,86 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
68
68
  });
69
69
  _defineProperty(this, "filterConfig", function (item) {
70
70
  return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
71
- subKey: 'returnLogisticsCompany'
71
+ subKey: "returnLogisticsCompany"
72
72
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
73
- subKey: 'returnLogisticsCode'
73
+ subKey: "returnLogisticsCode"
74
74
  }))];
75
75
  });
76
76
  this.name = options.name;
77
77
  this.id = options.id;
78
78
  this.sortField = options.id;
79
79
  this.formField = options.id;
80
- this.type = options.type;
80
+ this.type = "RETURN_LOGISTICS_SELECT";
81
81
  this.showContains = false;
82
- this.dataType = 'string';
82
+ this.dataType = "string";
83
83
  this.componentConfig = options.componentConfig;
84
84
  this.expressDateInstance = ExpressData.getInstance();
85
85
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
86
- name: '退货物流公司',
86
+ name: "退货物流公司",
87
87
  id: "".concat(options.id, "_returnLogisticsCompany")
88
88
  }));
89
89
  this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, options), {}, {
90
- name: '退货物流单号',
90
+ name: "退货物流单号",
91
91
  id: "".concat(options.id, "_returnLogisticsCode")
92
92
  }));
93
93
  this.isCombinationComponent = true;
94
94
  this.canSort = false;
95
- this.dataType = 'object';
95
+ this.dataType = "object";
96
96
  this.children = [this.express, this.expressCode];
97
97
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
98
98
  validator: function validator(_, value) {
99
99
  var _this$componentConfig4;
100
100
  if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isSingle) {
101
101
  var _this$componentConfig5, _this$componentConfig6;
102
- if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) === 'EXPRESS_COMPANY' && !(value !== null && value !== void 0 && value.company)) {
103
- return Promise.reject(new Error('请选择物流公司'));
104
- } else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) === 'EXPRESS_WAYBILL_CODE' && !(value !== null && value !== void 0 && value.order)) {
105
- return Promise.reject(new Error('请输入物流单号'));
102
+ if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) === "EXPRESS_COMPANY" && !(value !== null && value !== void 0 && value.company)) {
103
+ return Promise.reject(new Error("请选择物流公司"));
104
+ } else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) === "EXPRESS_WAYBILL_CODE" && !(value !== null && value !== void 0 && value.order)) {
105
+ return Promise.reject(new Error("请输入物流单号"));
106
106
  }
107
107
  } else {
108
108
  if (!(value !== null && value !== void 0 && value.company)) {
109
- return Promise.reject(new Error('请选择物流公司'));
109
+ return Promise.reject(new Error("请选择物流公司"));
110
110
  }
111
111
  if (!(value !== null && value !== void 0 && value.order)) {
112
- return Promise.reject(new Error('请输入物流单号'));
112
+ return Promise.reject(new Error("请输入物流单号"));
113
113
  }
114
114
  }
115
115
  return Promise.resolve();
116
116
  }
117
117
  }] : [];
118
118
  });
119
+ _defineProperty(ReturnLogistics, "group", "E_COMPONENT");
120
+ _defineProperty(ReturnLogistics, "configSchema", {
121
+ componentConfig: {
122
+ isSingle: false,
123
+ required: false,
124
+ showField: "EXPRESS_COMPANY"
125
+ },
126
+ name: "退货物流",
127
+ uniqueKey: "0qFEv9GEyd",
128
+ schema: {
129
+ required: {
130
+ title: "必填",
131
+ type: "boolean"
132
+ },
133
+ isSingle: {
134
+ title: "仅需",
135
+ type: "boolean"
136
+ },
137
+ showField: {
138
+ widget: "select",
139
+ type: "string",
140
+ props: {
141
+ options: [{
142
+ label: "物流公司",
143
+ value: "EXPRESS_COMPANY"
144
+ }, {
145
+ label: "物流单号",
146
+ value: "EXPRESS_WAYBILL_CODE"
147
+ }]
148
+ }
149
+ }
150
+ }
151
+ });
152
+ _defineProperty(ReturnLogistics, "type", "RETURN_LOGISTICS_SELECT");
119
153
  export default ReturnLogistics;
@@ -11,10 +11,13 @@ declare class BasicSelect implements ComponentInterface {
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
+ suffixKey: string;
14
15
  dataType: ComponentInterface["dataType"];
15
16
  options: ComponentInterface["options"];
17
+ static group: string;
18
+ static configSchema: any;
19
+ static type: string;
16
20
  constructor(options: PickOption);
17
- getKeyByComponentType: (type: string) => any;
18
21
  editRender: (p: any) => React.JSX.Element;
19
22
  renderClient: (record: any) => React.JSX.Element | null;
20
23
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -12,18 +12,6 @@ import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import { SYMBOL } from "../../constant";
15
- var typeMap = {
16
- BUYER_MESSAGE_NOTICE: {
17
- key: "buyerMessageNotice"
18
- },
19
- SELECT: {
20
- key: "select"
21
- },
22
- NEW_PAYMENT_STATUS: {
23
- key: "newPaymentStatus",
24
- placeholder: "自动获取无需填写"
25
- }
26
- };
27
15
  var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
28
16
  var _this = this,
29
17
  _this$componentConfig3;
@@ -38,11 +26,9 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
38
26
  _defineProperty(this, "formField", void 0);
39
27
  _defineProperty(this, "canSort", void 0);
40
28
  _defineProperty(this, "children", void 0);
29
+ _defineProperty(this, "suffixKey", void 0);
41
30
  _defineProperty(this, "dataType", void 0);
42
31
  _defineProperty(this, "options", void 0);
43
- _defineProperty(this, "getKeyByComponentType", function (type) {
44
- return typeMap[type].key || "";
45
- });
46
32
  _defineProperty(this, "editRender", function (p) {
47
33
  var _this$componentConfig, _this$componentConfig2;
48
34
  return /*#__PURE__*/React.createElement(GetFormItem, {
@@ -53,7 +39,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
53
39
  display: p === null || p === void 0 ? void 0 : p.display,
54
40
  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,
55
41
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
56
- placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
42
+ placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
57
43
  showSearch: true,
58
44
  onChange: p === null || p === void 0 ? void 0 : p.onChange
59
45
  }))
@@ -68,30 +54,25 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
68
54
  });
69
55
  _defineProperty(this, "renderPc", function (value, record) {
70
56
  var _record;
71
- var type = _this.type;
72
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record !== void 0 ? _record : "--");
57
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record !== void 0 ? _record : "--");
73
58
  });
74
59
  _defineProperty(this, "renderLog", function (r) {
75
- var type = _this.type;
76
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)])) return null;
60
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)])) return null;
77
61
  return _this.renderPc(undefined, r);
78
62
  });
79
63
  _defineProperty(this, "getComponentValue", function (r) {
80
- var type = _this.type;
81
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)];
64
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
82
65
  });
83
66
  _defineProperty(this, "renderExport", function (value, record) {
84
67
  var _record2;
85
- var type = _this.type;
86
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record2 !== void 0 ? _record2 : "--";
68
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record2 !== void 0 ? _record2 : "--";
87
69
  });
88
70
  _defineProperty(this, "filterConfig", function (item) {
89
71
  var _item$config;
90
- var key = _this.getKeyByComponentType(item.type);
91
72
  return {
92
73
  searchDefaultConditions: SYMBOL.in,
93
74
  type: item.type,
94
- id: "".concat(item.id, "_").concat(key),
75
+ id: "".concat(item.id, "_").concat(_this.suffixKey),
95
76
  // 过滤组件id
96
77
  name: item.name,
97
78
  // 过滤组件名称
@@ -101,16 +82,17 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
101
82
  },
102
83
  filterFn: function filterFn(value) {
103
84
  return function (i) {
104
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, key));
85
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey));
105
86
  };
106
87
  } // 第一个为选中值,第二个参数为表格行记录值
107
88
  };
108
89
  });
109
90
  this.name = options.name;
110
91
  this.id = options.id;
111
- this.sortField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
112
- this.formField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
113
- this.type = options.type;
92
+ this.suffixKey = "select";
93
+ this.sortField = "".concat(options.id, "_").concat(this.suffixKey);
94
+ this.formField = "".concat(options.id, "_").concat(this.suffixKey);
95
+ this.type = "SELECT";
114
96
  this.componentConfig = options.componentConfig;
115
97
  this.rules = [];
116
98
  this.isCombinationComponent = false;
@@ -119,4 +101,24 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
119
101
  this.dataType = "string";
120
102
  this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
121
103
  });
104
+ _defineProperty(BasicSelect, "group", "BASIC_COMPONENT");
105
+ _defineProperty(BasicSelect, "configSchema", {
106
+ componentConfig: {
107
+ mapping: undefined,
108
+ required: false,
109
+ options: []
110
+ },
111
+ name: "下拉单选框",
112
+ schema: {
113
+ required: {
114
+ title: "必填",
115
+ type: "boolean"
116
+ },
117
+ mapping: {
118
+ type: "object",
119
+ widget: "OptionMapping"
120
+ }
121
+ }
122
+ });
123
+ _defineProperty(BasicSelect, "type", "SELECT");
122
124
  export default BasicSelect;
@@ -0,0 +1,54 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class SendGood implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ sortChildField: {
8
+ name: string;
9
+ key: string;
10
+ dataType: string;
11
+ [key: string]: any;
12
+ }[];
13
+ type: string;
14
+ rules: any[];
15
+ componentConfig: ComponentInterface["componentConfig"];
16
+ align: ALignType;
17
+ isCombinationComponent: boolean;
18
+ formField: string;
19
+ canSort: boolean;
20
+ children: ComponentInterface[];
21
+ dataType: ComponentInterface["dataType"];
22
+ suffixKey: string;
23
+ suffixName: string;
24
+ suffixSendId: string;
25
+ suffixSendName: string;
26
+ constructor(options: PickOption);
27
+ getSortChildFields: (type: string, options: PickOption) => any;
28
+ renderClient: (record: Record) => React.JSX.Element | null;
29
+ renderPc: (value: any, record: Record) => React.JSX.Element;
30
+ renderLog: (r: Record) => React.JSX.Element | null;
31
+ getComponentValue: (r: Record) => any;
32
+ renderExport: (value: any, record: any) => any;
33
+ editRender: (p: any) => React.JSX.Element;
34
+ filterConfig: (item: ColumnConfig) => ({
35
+ searchDefaultConditions: "in";
36
+ type: string;
37
+ id: string;
38
+ name: string;
39
+ filterComponentType: "MultipleSelect";
40
+ props: {
41
+ options: any[];
42
+ };
43
+ filterFn: (value: string) => (i: Record) => any;
44
+ } | {
45
+ searchDefaultConditions: "like";
46
+ type: string;
47
+ id: string;
48
+ name: string;
49
+ filterComponentType: "Input";
50
+ filterFn: (value: string) => (i: Record) => any;
51
+ props?: undefined;
52
+ })[];
53
+ }
54
+ export default SendGood;
@@ -0,0 +1,215 @@
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 some from "lodash/some";
11
+ import GetFormItem from "../GetFormItem";
12
+ import { JstGoodImage } from "../Common";
13
+ import { JstGoods } from "@kmkf-fe-packages/basic-components";
14
+ import ItemView from "../../commonComponents/ItemView";
15
+ import { isNull, filterFn as _filterFn, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
16
+ import { SYMBOL } from "../../constant";
17
+ var SendGood = /*#__PURE__*/_createClass(function SendGood(_options) {
18
+ var _this = this,
19
+ _this$componentConfig,
20
+ _this$componentConfig2;
21
+ _classCallCheck(this, SendGood);
22
+ _defineProperty(this, "name", void 0);
23
+ _defineProperty(this, "id", void 0);
24
+ _defineProperty(this, "sortField", void 0);
25
+ _defineProperty(this, "sortChildField", void 0);
26
+ _defineProperty(this, "type", void 0);
27
+ _defineProperty(this, "rules", void 0);
28
+ _defineProperty(this, "componentConfig", void 0);
29
+ _defineProperty(this, "align", void 0);
30
+ _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "formField", void 0);
32
+ _defineProperty(this, "canSort", void 0);
33
+ _defineProperty(this, "children", void 0);
34
+ _defineProperty(this, "dataType", void 0);
35
+ _defineProperty(this, "suffixKey", void 0);
36
+ _defineProperty(this, "suffixName", void 0);
37
+ _defineProperty(this, "suffixSendId", void 0);
38
+ _defineProperty(this, "suffixSendName", void 0);
39
+ _defineProperty(this, "getSortChildFields", function (type, options) {
40
+ if (type === 'all') {
41
+ return [{
42
+ name: "发货仓名称",
43
+ key: "".concat(options.id, "_").concat(_this.suffixSendName),
44
+ dataType: "string"
45
+ }, {
46
+ name: "发货仓编码",
47
+ key: "".concat(options.id, "_").concat(_this.suffixSendId),
48
+ dataType: "string"
49
+ }];
50
+ }
51
+ if (type === 'sendName') {
52
+ return [{
53
+ name: "发货仓名称",
54
+ key: "".concat(options.id, "_").concat(_this.suffixSendName),
55
+ dataType: "string"
56
+ }];
57
+ }
58
+ if (type === 'sendId') {
59
+ return [{
60
+ name: "发货仓编码",
61
+ key: "".concat(options.id, "_").concat(_this.suffixSendId),
62
+ dataType: "string"
63
+ }];
64
+ }
65
+ return [];
66
+ });
67
+ _defineProperty(this, "renderClient", function (record) {
68
+ 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) {
69
+ return !isNull(item);
70
+ }) : false;
71
+ return isShow ? /*#__PURE__*/React.createElement(ItemView, {
72
+ id: _this.id,
73
+ label: _this.name,
74
+ value: /*#__PURE__*/React.createElement(JstGoodImage, {
75
+ list: record === null || record === void 0 ? void 0 : record[_this.id],
76
+ type: 3,
77
+ platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
78
+ })
79
+ }) : null;
80
+ });
81
+ _defineProperty(this, "renderPc", function (value, record) {
82
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
83
+ //兼容多个商品
84
+ return /*#__PURE__*/React.createElement("span", {
85
+ onClick: function onClick(e) {
86
+ return e.stopPropagation();
87
+ }
88
+ }, /*#__PURE__*/React.createElement(JstGoodImage, {
89
+ list: list,
90
+ type: 3,
91
+ platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
92
+ }));
93
+ });
94
+ _defineProperty(this, "renderLog", function (r) {
95
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
96
+ if (isNull(list)) return null;
97
+ return _this.renderPc(undefined, r);
98
+ });
99
+ _defineProperty(this, "getComponentValue", function (r) {
100
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
101
+ });
102
+ _defineProperty(this, "renderExport", function (value, record) {
103
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
104
+ return (list || []).map(function (item) {
105
+ return [item === null || item === void 0 ? void 0 : item.sendId, _this.type === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName) : item === null || item === void 0 ? void 0 : item.sendName].join("/");
106
+ }).join(",");
107
+ });
108
+ _defineProperty(this, "editRender", function (p) {
109
+ return /*#__PURE__*/React.createElement(GetFormItem, {
110
+ title: _this.name,
111
+ name: _this.id,
112
+ rules: _this.rules,
113
+ required: false,
114
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
115
+ display: p === null || p === void 0 ? void 0 : p.display,
116
+ component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
117
+ type: 3,
118
+ platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
119
+ }))
120
+ });
121
+ });
122
+ _defineProperty(this, "filterConfig", function (item) {
123
+ return [_this.type === 'WDT_SEND_GOOD' ? {
124
+ searchDefaultConditions: SYMBOL.in,
125
+ type: item.type,
126
+ id: "".concat(item.id, "_").concat(_this.suffixSendName),
127
+ name: "".concat(_this.name, "\u540D\u79F0"),
128
+ filterComponentType: "MultipleSelect",
129
+ props: {
130
+ options: WdtSendData.getInstance().getWdtSendData() || []
131
+ },
132
+ filterFn: function filterFn(value) {
133
+ return function (i) {
134
+ var _ref;
135
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
136
+ var _String;
137
+ var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
138
+ return sendName;
139
+ });
140
+ };
141
+ }
142
+ } : {
143
+ searchDefaultConditions: SYMBOL.like,
144
+ type: item.type,
145
+ id: "".concat(item.id, "_").concat(_this.suffixSendName),
146
+ name: "".concat(_this.name, "\u540D\u79F0"),
147
+ filterComponentType: "Input",
148
+ filterFn: function filterFn(value) {
149
+ return function (i) {
150
+ var _ref2;
151
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
152
+ var _String2;
153
+ var name = item !== null && item !== void 0 && item.sendName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
154
+ return name;
155
+ });
156
+ };
157
+ }
158
+ }, {
159
+ searchDefaultConditions: SYMBOL.like,
160
+ type: item.type,
161
+ id: "".concat(item.id, "_").concat(_this.suffixSendId),
162
+ name: "".concat(_this.name, "\u7F16\u7801"),
163
+ filterComponentType: "Input",
164
+ filterFn: function filterFn(value) {
165
+ return function (i) {
166
+ var _ref3;
167
+ return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
168
+ var _String3;
169
+ var id = item !== null && item !== void 0 && item.sendId ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
170
+ return id;
171
+ });
172
+ };
173
+ }
174
+ }];
175
+ });
176
+ this.name = _options.name;
177
+ this.id = _options.id;
178
+ this.suffixKey = '';
179
+ this.suffixName = '';
180
+ this.suffixSendId = '';
181
+ this.suffixSendName = '';
182
+ this.sortField = "".concat(_options.id, "_").concat(this.suffixKey);
183
+ this.formField = "".concat(_options.id, "_").concat(this.suffixKey);
184
+ this.componentConfig = _options.componentConfig;
185
+ this.sortChildField = this.getSortChildFields(((_this$componentConfig = this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showField) || '', _options);
186
+ this.type = _options.type;
187
+ this.dataType = "object";
188
+ this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
189
+ required: true,
190
+ validator: function validator(_, value) {
191
+ if (!value || !value.length) {
192
+ return Promise.reject(new Error("请选择宝贝"));
193
+ }
194
+ var hasNo = (value || []).some(function (item) {
195
+ var _this$componentConfig3, _this$componentConfig4;
196
+ if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "")) {
197
+ return item.sendName;
198
+ } else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || "")) {
199
+ return item.sendId;
200
+ } else {
201
+ return item.sendId && item.sendName;
202
+ }
203
+ });
204
+ if (!hasNo) {
205
+ return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u53D1\u8D27\u4ED3\u4FE1\u606F"));
206
+ }
207
+ return Promise.resolve();
208
+ }
209
+ }] : [];
210
+ this.align = "left";
211
+ this.isCombinationComponent = false;
212
+ this.canSort = false;
213
+ this.children = [];
214
+ });
215
+ export default SendGood;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type';
1
+ import React from "react";
2
+ import { ComponentInterface, ColumnConfig, Record, PickOption } from "../../type";
3
3
  declare class ShopInput implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,9 +11,11 @@ declare class ShopInput implements ComponentInterface {
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface['dataType'];
15
- options: ComponentInterface['options'];
16
- format: ComponentInterface['format'];
14
+ dataType: ComponentInterface["dataType"];
15
+ options: ComponentInterface["options"];
16
+ format: ComponentInterface["format"];
17
+ static group: string;
18
+ static type: string;
17
19
  constructor(options: PickOption);
18
20
  renderPc: (shopName: unknown, record: any) => React.JSX.Element;
19
21
  renderLog: (record: Record) => any;
@@ -5,9 +5,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5
5
  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; }
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  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); }
8
- import React from 'react';
8
+ import React from "react";
9
9
  import PlatformAvatar from "../../commonComponents/PlatformAvatar";
10
- import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
+ import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
11
  import { SYMBOL } from "../../constant";
12
12
  var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
13
13
  var _this = this,
@@ -43,7 +43,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
43
43
  });
44
44
  _defineProperty(this, "renderExport", function (value, record) {
45
45
  var _record;
46
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
46
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
47
47
  });
48
48
  _defineProperty(this, "renderClient", function () {
49
49
  return null;
@@ -60,10 +60,10 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
60
60
  // 过滤组件id
61
61
  name: item.name,
62
62
  // 过滤组件名称
63
- filterComponentType: 'ShopList',
63
+ filterComponentType: "ShopList",
64
64
  props: {
65
65
  shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || [],
66
- mode: 'multiple'
66
+ mode: "multiple"
67
67
  },
68
68
  filterFn: function filterFn(value) {
69
69
  return function (i) {
@@ -72,7 +72,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
72
72
  return value === null || value === void 0 ? void 0 : value.includes(item.shopId);
73
73
  })) === null || _this$effects2$shopLi2 === void 0 ? void 0 : (_this$effects2$shopLi3 = _this$effects2$shopLi2.map(function (item) {
74
74
  return item.shopId;
75
- })) === null || _this$effects2$shopLi3 === void 0 ? void 0 : _this$effects2$shopLi3.includes(_filterFn.filterTableListItemColumnValue(i, 'shopId', ''));
75
+ })) === null || _this$effects2$shopLi3 === void 0 ? void 0 : _this$effects2$shopLi3.includes(_filterFn.filterTableListItemColumnValue(i, "shopId", ""));
76
76
  };
77
77
  },
78
78
  formatFilterValue: function formatFilterValue(shopList) {
@@ -95,8 +95,10 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
95
95
  this.isCombinationComponent = false;
96
96
  this.canSort = true;
97
97
  this.children = [];
98
- this.dataType = 'string';
98
+ this.dataType = "string";
99
99
  this.options = this === null || this === void 0 ? void 0 : (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList;
100
- this.format = 'shopInput';
100
+ this.format = "shopInput";
101
101
  });
102
+ _defineProperty(ShopInput, "group", "BASIC_FIELD");
103
+ _defineProperty(ShopInput, "type", "SHOP_INPUT");
102
104
  export default ShopInput;