@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,243 +1,65 @@
1
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
2
  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
3
  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
4
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
6
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6
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; }
7
13
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
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); }
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 typeMap = {
18
- JST_SEND_GOOD: {
19
- key: "jstItemList",
20
- name: "jst",
21
- sendId: "sendId",
22
- sendName: "sendName"
23
- },
24
- BS_SEND_GOOD: {
25
- key: "bsSendGood",
26
- name: "bs",
27
- sendId: "bsSendId",
28
- sendName: "bsSendName"
29
- },
30
- WLN_SEND_GOOD: {
31
- key: "wlnSendGood",
32
- name: "wln",
33
- sendId: "wlnSendId",
34
- sendName: "wlnSendName"
35
- },
36
- WDT_SEND_GOOD: {
37
- key: "wdtSendGood",
38
- name: "wdt",
39
- sendId: "wdtSendId",
40
- sendName: "wdtSendName"
15
+ import SendGood from "../../SendGood";
16
+ var JstSendGood = /*#__PURE__*/function (_SendGood) {
17
+ _inherits(JstSendGood, _SendGood);
18
+ var _super = _createSuper(JstSendGood);
19
+ function JstSendGood(options) {
20
+ var _this;
21
+ _classCallCheck(this, JstSendGood);
22
+ _this = _super.call(this, options);
23
+ _this.type = "JST_SEND_GOOD";
24
+ _this.suffixKey = "jstItemList";
25
+ _this.suffixName = "jst";
26
+ _this.suffixSendId = "sendId";
27
+ _this.suffixSendName = "sendName";
28
+ return _this;
41
29
  }
42
- };
43
- var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
44
- var _this = this,
45
- _typeMap$_options$typ,
46
- _typeMap$_options$typ2,
47
- _this$componentConfig,
48
- _this$componentConfig2;
49
- _classCallCheck(this, JstSendGood);
50
- _defineProperty(this, "name", void 0);
51
- _defineProperty(this, "id", void 0);
52
- _defineProperty(this, "sortField", void 0);
53
- _defineProperty(this, "sortChildField", void 0);
54
- _defineProperty(this, "type", void 0);
55
- _defineProperty(this, "rules", void 0);
56
- _defineProperty(this, "componentConfig", void 0);
57
- _defineProperty(this, "align", void 0);
58
- _defineProperty(this, "isCombinationComponent", void 0);
59
- _defineProperty(this, "formField", void 0);
60
- _defineProperty(this, "canSort", void 0);
61
- _defineProperty(this, "children", void 0);
62
- _defineProperty(this, "dataType", void 0);
63
- _defineProperty(this, "getSortChildFields", function (type, options) {
64
- if (type === 'all') {
65
- var _typeMap$options$type, _typeMap$options$type2;
66
- return [{
67
- name: "发货仓名称",
68
- key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
69
- dataType: "string"
70
- }, {
71
- name: "发货仓编码",
72
- key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
73
- dataType: "string"
74
- }];
75
- }
76
- if (type === 'sendName') {
77
- var _typeMap$options$type3;
78
- return [{
79
- name: "发货仓名称",
80
- key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.sendName),
81
- dataType: "string"
82
- }];
83
- }
84
- if (type === 'sendId') {
85
- var _typeMap$options$type4;
86
- return [{
87
- name: "发货仓编码",
88
- key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.sendId),
89
- dataType: "string"
90
- }];
91
- }
92
- return [];
93
- });
94
- _defineProperty(this, "renderClient", function (record) {
95
- 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) {
96
- return !isNull(item);
97
- }) : false;
98
- return isShow ? /*#__PURE__*/React.createElement(ItemView, {
99
- id: _this.id,
100
- label: _this.name,
101
- value: /*#__PURE__*/React.createElement(JstGoodImage, {
102
- list: record === null || record === void 0 ? void 0 : record[_this.id],
103
- type: 3,
104
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
105
- })
106
- }) : null;
107
- });
108
- _defineProperty(this, "renderPc", function (value, record) {
109
- var _typeMap$_this$type;
110
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
111
- //兼容多个商品
112
- return /*#__PURE__*/React.createElement("span", {
113
- onClick: function onClick(e) {
114
- return e.stopPropagation();
115
- }
116
- }, /*#__PURE__*/React.createElement(JstGoodImage, {
117
- list: list,
118
- type: 3,
119
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
120
- }));
121
- });
122
- _defineProperty(this, "renderLog", function (r) {
123
- var _typeMap$_this$type2;
124
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
125
- if (isNull(list)) return null;
126
- return _this.renderPc(undefined, r);
127
- });
128
- _defineProperty(this, "getComponentValue", function (r) {
129
- var _typeMap$_this$type3;
130
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
131
- });
132
- _defineProperty(this, "renderExport", function (value, record) {
133
- var _typeMap$_this$type4;
134
- 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)];
135
- return (list || []).map(function (item) {
136
- 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("/");
137
- }).join(",");
138
- });
139
- _defineProperty(this, "editRender", function (p) {
140
- return /*#__PURE__*/React.createElement(GetFormItem, {
141
- title: _this.name,
142
- name: _this.id,
143
- rules: _this.rules,
144
- required: false,
145
- hidden: p === null || p === void 0 ? void 0 : p.hidden,
146
- display: p === null || p === void 0 ? void 0 : p.display,
147
- component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
148
- type: 3,
149
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
150
- }))
151
- });
152
- });
153
- _defineProperty(this, "filterConfig", function (item) {
154
- var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type8;
155
- return [_this.type === 'WDT_SEND_GOOD' ? {
156
- searchDefaultConditions: SYMBOL.in,
157
- type: item.type,
158
- id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.sendName),
159
- name: "".concat(_this.name, "\u540D\u79F0"),
160
- filterComponentType: "MultipleSelect",
30
+ return _createClass(JstSendGood);
31
+ }(SendGood);
32
+ _defineProperty(JstSendGood, "group", "THIRD_COMPONENT");
33
+ _defineProperty(JstSendGood, "configSchema", {
34
+ componentConfig: {
35
+ showField: "all",
36
+ maxLength: 20,
37
+ required: false
38
+ },
39
+ name: "jst发货仓编码/名称",
40
+ uniqueKey: "2Dguw8jw6Z",
41
+ schema: {
42
+ required: {
43
+ title: "必填",
44
+ type: "boolean"
45
+ },
46
+ showField: {
47
+ type: "string",
48
+ widget: "select",
161
49
  props: {
162
- options: WdtSendData.getInstance().getWdtSendData() || []
163
- },
164
- filterFn: function filterFn(value) {
165
- return function (i) {
166
- var _ref;
167
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
168
- var _String;
169
- var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
170
- return sendName;
171
- });
172
- };
173
- }
174
- } : {
175
- searchDefaultConditions: SYMBOL.like,
176
- type: item.type,
177
- id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.sendName),
178
- name: "".concat(_this.name, "\u540D\u79F0"),
179
- filterComponentType: "Input",
180
- filterFn: function filterFn(value) {
181
- return function (i) {
182
- var _ref2, _typeMap$_this$type7;
183
- return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.key) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
184
- var _String2;
185
- 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;
186
- return name;
187
- });
188
- };
189
- }
190
- }, {
191
- searchDefaultConditions: SYMBOL.like,
192
- type: item.type,
193
- id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendId),
194
- name: "".concat(_this.name, "\u7F16\u7801"),
195
- filterComponentType: "Input",
196
- filterFn: function filterFn(value) {
197
- return function (i) {
198
- var _ref3, _typeMap$_this$type9;
199
- return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
200
- var _String3;
201
- 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;
202
- return id;
203
- });
204
- };
50
+ options: [{
51
+ label: "全部",
52
+ value: "all"
53
+ }, {
54
+ label: "发货仓名称",
55
+ value: "sendName"
56
+ }, {
57
+ label: "发货仓编码",
58
+ value: "sendId"
59
+ }]
205
60
  }
206
- }];
207
- });
208
- this.name = _options.name;
209
- this.id = _options.id;
210
- this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
211
- this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
212
- this.componentConfig = _options.componentConfig;
213
- this.sortChildField = this.getSortChildFields(((_this$componentConfig = this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showField) || '', _options);
214
- this.type = _options.type;
215
- this.dataType = "object";
216
- this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
217
- required: true,
218
- validator: function validator(_, value) {
219
- if (!value || !value.length) {
220
- return Promise.reject(new Error("请选择宝贝"));
221
- }
222
- var hasNo = (value || []).some(function (item) {
223
- var _this$componentConfig3, _this$componentConfig4;
224
- if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "")) {
225
- return item.sendName;
226
- } 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) || "")) {
227
- return item.sendId;
228
- } else {
229
- return item.sendId && item.sendName;
230
- }
231
- });
232
- if (!hasNo) {
233
- return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u53D1\u8D27\u4ED3\u4FE1\u606F"));
234
- }
235
- return Promise.resolve();
236
61
  }
237
- }] : [];
238
- this.align = "left";
239
- this.isCombinationComponent = false;
240
- this.canSort = false;
241
- this.children = [];
62
+ }
242
63
  });
64
+ _defineProperty(JstSendGood, "type", "JST_SEND_GOOD");
243
65
  export default JstSendGood;
@@ -13,6 +13,33 @@ declare class JstSupply implements ComponentInterface {
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface["dataType"];
16
+ static group: string;
17
+ static configSchema: {
18
+ componentConfig: {
19
+ showField: string;
20
+ maxLength: number;
21
+ required: boolean;
22
+ };
23
+ name: string;
24
+ uniqueKey: string;
25
+ schema: {
26
+ required: {
27
+ title: string;
28
+ type: string;
29
+ };
30
+ showField: {
31
+ type: string;
32
+ widget: string;
33
+ props: {
34
+ options: {
35
+ label: string;
36
+ value: string;
37
+ }[];
38
+ };
39
+ };
40
+ };
41
+ };
42
+ static type: string;
16
43
  constructor(options: PickOption);
17
44
  renderClient: (record: Record) => React.JSX.Element | null;
18
45
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -121,7 +121,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
121
121
  this.id = options.id;
122
122
  this.sortField = "".concat(options.id, "_jstItemList");
123
123
  this.formField = "".concat(options.id, "_jstItemList");
124
- this.type = options.type;
124
+ this.type = "JST_SUPPLY";
125
125
  this.componentConfig = options.componentConfig;
126
126
  this.isCombinationComponent = false;
127
127
  this.canSort = false;
@@ -152,4 +152,37 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
152
152
  }] : [];
153
153
  this.align = "left";
154
154
  });
155
+ _defineProperty(JstSupply, "group", "THIRD_COMPONENT");
156
+ _defineProperty(JstSupply, "configSchema", {
157
+ componentConfig: {
158
+ showField: "all",
159
+ maxLength: 20,
160
+ required: false
161
+ },
162
+ name: "jst供销商编码/名称",
163
+ uniqueKey: "Gcyr6vUd4C",
164
+ schema: {
165
+ required: {
166
+ title: "必填",
167
+ type: "boolean"
168
+ },
169
+ showField: {
170
+ type: "string",
171
+ widget: "select",
172
+ props: {
173
+ options: [{
174
+ label: "全部",
175
+ value: "all"
176
+ }, {
177
+ label: "供销商名称",
178
+ value: "supplyName"
179
+ }, {
180
+ label: "供销商编码",
181
+ value: "supplyId"
182
+ }]
183
+ }
184
+ }
185
+ }
186
+ });
187
+ _defineProperty(JstSupply, "type", "JST_SUPPLY");
155
188
  export default JstSupply;
@@ -0,0 +1,76 @@
1
+ import JstLogistics from "../JstLogistics";
2
+ import { PickOption, ColumnConfig, Record } from "../../../type";
3
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class ReissueLogistics extends JstLogistics {
5
+ sortChildField: {
6
+ name: string;
7
+ key: string;
8
+ dataType: string;
9
+ [key: string]: any;
10
+ }[];
11
+ type: string;
12
+ expressDateInstance: InstanceType<typeof ExpressData>;
13
+ suffixKey: string;
14
+ static group: string;
15
+ static configSchema: {
16
+ componentConfig: {
17
+ required: boolean;
18
+ logistics: string;
19
+ };
20
+ belongs: string[];
21
+ name: string;
22
+ uniqueKey: string;
23
+ schema: {
24
+ required: {
25
+ title: string;
26
+ type: string;
27
+ };
28
+ status: {
29
+ widget: string;
30
+ type: string;
31
+ default: {
32
+ created: number;
33
+ upgrade: number;
34
+ };
35
+ };
36
+ logistics: {
37
+ type: string;
38
+ widget: string;
39
+ props: {
40
+ style: {
41
+ width: number;
42
+ };
43
+ options: {
44
+ label: string;
45
+ value: string;
46
+ }[];
47
+ };
48
+ };
49
+ };
50
+ };
51
+ static type: string;
52
+ constructor(options: PickOption);
53
+ getSortChildFields: (type: string, options: PickOption) => any;
54
+ filterConfig: (item: ColumnConfig) => ({
55
+ searchDefaultConditions: "in";
56
+ type: string;
57
+ id: string;
58
+ name: string;
59
+ filterComponentType: "MultipleSelect";
60
+ props: {
61
+ options: any[];
62
+ };
63
+ filterFn: (value: string) => (i: Record) => any;
64
+ formatFilterValue?: undefined;
65
+ } | {
66
+ searchDefaultConditions: "in";
67
+ type: string;
68
+ id: string;
69
+ name: string;
70
+ filterComponentType: "Input";
71
+ filterFn: (value: string) => (i: Record) => boolean;
72
+ formatFilterValue: (input: string) => string | string[];
73
+ props?: undefined;
74
+ })[];
75
+ }
76
+ export default ReissueLogistics;
@@ -0,0 +1,147 @@
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 _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); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
6
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
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
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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 JstLogistics from "../JstLogistics";
16
+ import { SHOW_WRITE } from "../../../constant";
17
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
18
+ import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
19
+ import { SYMBOL, batchInput } from "../../../constant";
20
+ var ReissueLogistics = /*#__PURE__*/function (_JstLogistics) {
21
+ _inherits(ReissueLogistics, _JstLogistics);
22
+ var _super = _createSuper(ReissueLogistics);
23
+ function ReissueLogistics(_options) {
24
+ var _this$componentConfig, _this$componentConfig2;
25
+ var _this;
26
+ _classCallCheck(this, ReissueLogistics);
27
+ _this = _super.call(this, _options);
28
+ _defineProperty(_assertThisInitialized(_this), "sortChildField", void 0);
29
+ _defineProperty(_assertThisInitialized(_this), "type", void 0);
30
+ _defineProperty(_assertThisInitialized(_this), "expressDateInstance", void 0);
31
+ _defineProperty(_assertThisInitialized(_this), "suffixKey", void 0);
32
+ _defineProperty(_assertThisInitialized(_this), "getSortChildFields", function (type, options) {
33
+ if (!type) {
34
+ return [{
35
+ name: "物流公司",
36
+ key: "".concat(options.id, "_reissueLogisticsCompany"),
37
+ options: _this.expressDateInstance.getExpressData(),
38
+ dataType: "string"
39
+ }, {
40
+ name: "物流单号",
41
+ key: "".concat(options.id, "_reissueLogisticsCode"),
42
+ dataType: "string"
43
+ }];
44
+ }
45
+ if (type === "logisticsCompany") {
46
+ return [{
47
+ name: "物流公司",
48
+ key: "".concat(options.id, "_reissueLogisticsCompany"),
49
+ options: _this.expressDateInstance.getExpressData(),
50
+ dataType: "string"
51
+ }];
52
+ }
53
+ if (type === "logisticsCode") {
54
+ return [{
55
+ name: "物流单号",
56
+ key: "".concat(options.id, "_reissueLogisticsCode"),
57
+ dataType: "string"
58
+ }];
59
+ }
60
+ return [];
61
+ });
62
+ _defineProperty(_assertThisInitialized(_this), "filterConfig", function (item) {
63
+ return [{
64
+ searchDefaultConditions: SYMBOL.in,
65
+ type: item.type,
66
+ id: "".concat(item.id, "_reissueLogisticsCompany"),
67
+ name: "".concat(_this.name, "\u7269\u6D41\u516C\u53F8"),
68
+ filterComponentType: "MultipleSelect",
69
+ props: {
70
+ options: _this.expressDateInstance.getExpressData() || []
71
+ },
72
+ filterFn: function filterFn(value) {
73
+ return function (i) {
74
+ var _ref;
75
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCompany").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
76
+ var _String;
77
+ var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
78
+ return logisticsCompany;
79
+ });
80
+ };
81
+ }
82
+ }, {
83
+ searchDefaultConditions: SYMBOL.in,
84
+ type: item.type,
85
+ id: "".concat(item.id, "_reissueLogisticsCode"),
86
+ name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
87
+ filterComponentType: "Input",
88
+ filterFn: function filterFn(value) {
89
+ return function (i) {
90
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
91
+ };
92
+ },
93
+ formatFilterValue: function formatFilterValue(input) {
94
+ return batchInput(input);
95
+ }
96
+ }];
97
+ });
98
+ _this.suffixKey = "reissueLogisticsList";
99
+ _this.type = "REISSUE_LOGISTICS";
100
+ _this.expressDateInstance = ExpressData.getInstance((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.logistics);
101
+ _this.sortChildField = _this.getSortChildFields(((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showField) || "", _options);
102
+ return _this;
103
+ }
104
+ return _createClass(ReissueLogistics);
105
+ }(JstLogistics);
106
+ _defineProperty(ReissueLogistics, "group", "THIRD_SPECIAL_COMPONENT");
107
+ _defineProperty(ReissueLogistics, "configSchema", {
108
+ componentConfig: {
109
+ required: false,
110
+ logistics: 'default'
111
+ },
112
+ belongs: ['bs', 'wdt'],
113
+ name: '补发物流信息(单号勿填)',
114
+ uniqueKey: 'd04d1d30a3',
115
+ schema: {
116
+ required: {
117
+ title: '必填',
118
+ type: 'boolean'
119
+ },
120
+ status: {
121
+ widget: 'StatusConfig',
122
+ type: 'object',
123
+ default: {
124
+ created: SHOW_WRITE,
125
+ upgrade: SHOW_WRITE
126
+ }
127
+ },
128
+ logistics: {
129
+ type: 'string',
130
+ widget: 'select',
131
+ props: {
132
+ style: {
133
+ width: 120
134
+ },
135
+ options: [{
136
+ label: '系统物流',
137
+ value: 'default'
138
+ }, {
139
+ label: '旺店通物流',
140
+ value: 'wdt'
141
+ }]
142
+ }
143
+ }
144
+ }
145
+ });
146
+ _defineProperty(ReissueLogistics, "type", "REISSUE_LOGISTICS");
147
+ export default ReissueLogistics;
@@ -15,6 +15,31 @@ declare class Label implements ComponentInterface {
15
15
  dataType: ComponentInterface["dataType"];
16
16
  options: ComponentInterface["options"];
17
17
  labelDateInstance: InstanceType<typeof LabelData>;
18
+ static type: string;
19
+ static group: string;
20
+ static configSchema: {
21
+ componentConfig: {
22
+ status: {
23
+ created: number;
24
+ upgrade: number;
25
+ };
26
+ };
27
+ name: string;
28
+ uniqueKey: string;
29
+ schema: {
30
+ status: {
31
+ widget: string;
32
+ type: string;
33
+ default: {
34
+ created: number;
35
+ upgrade: number;
36
+ };
37
+ props: {
38
+ showOptionsKey: number[];
39
+ };
40
+ };
41
+ };
42
+ };
18
43
  constructor(options: PickOption);
19
44
  getComponentValue: (r: Record) => any;
20
45
  editRender: (p: any) => React.JSX.Element;