@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
@@ -8,78 +8,59 @@ 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 some from 'lodash/some';
11
+ import React from "react";
12
+ import some from "lodash/some";
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import { CommonOrderContent } from "../Common";
15
- import { CommonMultiStatus as Status } from '@kmkf-fe-packages/basic-components';
15
+ import { CommonMultiStatus as Status } from "@kmkf-fe-packages/basic-components";
16
16
  import ItemView from "../../commonComponents/ItemView";
17
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { SYMBOL } from "../../constant";
19
- var typeMap = {
20
- RETURN_GOODS_STATUS: {
21
- options: [{
22
- value: '成功',
23
- label: '成功',
24
- color: '#52c41a'
25
- }, {
26
- value: '失败',
27
- label: '失败',
28
- color: '#ff4d4f'
29
- }],
30
- key: 'returnGoodsStatusList',
31
- code: 'returnGoodsStatusValue',
32
- name: '退货状态',
33
- type: 1,
34
- valueKey: 'status',
35
- idKey: 'systemOrderId',
36
- failValue: '失败'
37
- },
38
- EXCHANGE_STATUS: {
39
- options: [{
40
- value: '成功',
41
- label: '成功',
42
- color: '#52c41a'
43
- }, {
44
- value: '失败',
45
- label: '失败',
46
- color: '#ff4d4f'
47
- }],
48
- key: 'exchangeReason',
49
- code: 'exchangeStatusValue',
50
- name: '换货状态',
51
- type: 1,
52
- valueKey: 'status',
53
- idKey: 'systemOrderId',
54
- failValue: '失败'
55
- },
56
- WAREHOUSING_STATUS: {
57
- options: [{
58
- value: '2',
59
- label: '已入库',
60
- color: '#52c41a'
61
- }, {
62
- value: '1',
63
- label: '部分入库',
64
- color: '#e7780f'
65
- }, {
66
- value: '0',
67
- label: '未入库',
68
- color: '#ff4d4f'
69
- }],
70
- key: 'inStockStatusItemList',
71
- code: 'inStockStatusList',
72
- name: '商品入库状态(勿填)',
73
- type: 2,
74
- valueKey: 'status',
75
- idKey: 'systemOrderId',
76
- failValue: '失败'
77
- }
78
- };
19
+
20
+ // const typeMap: Record = {
21
+ // RETURN_GOODS_STATUS: {
22
+ // options: [
23
+ // { value: '成功', label: '成功', color: '#52c41a' },
24
+ // { value: '失败', label: '失败', color: '#ff4d4f' },
25
+ // ],
26
+ // key: 'returnGoodsStatusList',
27
+ // code: 'returnGoodsStatusValue',
28
+ // name: '退货状态',
29
+ // type: 1,
30
+ // valueKey: 'status',
31
+ // idKey: 'systemOrderId',
32
+ // failValue: '失败',
33
+ // },
34
+ // EXCHANGE_STATUS: {
35
+ // options: [
36
+ // { value: '成功', label: '成功', color: '#52c41a' },
37
+ // { value: '失败', label: '失败', color: '#ff4d4f' },
38
+ // ],
39
+ // key: 'exchangeReason',
40
+ // code: 'exchangeStatusValue',
41
+ // name: '换货状态',
42
+ // type: 1,
43
+ // valueKey: 'status',
44
+ // idKey: 'systemOrderId',
45
+ // failValue: '失败',
46
+ // },
47
+ // WAREHOUSING_STATUS: {
48
+ // options: [
49
+ // { value: '2', label: '已入库', color: '#52c41a' },
50
+ // { value: '1', label: '部分入库', color: '#e7780f' },
51
+ // { value: '0', label: '未入库', color: '#ff4d4f' },
52
+ // ],
53
+ // key: 'inStockStatusItemList',
54
+ // code: 'inStockStatusList',
55
+ // name: '商品入库状态(勿填)',
56
+ // type: 2,
57
+ // valueKey: 'status',
58
+ // idKey: 'systemOrderId',
59
+ // failValue: '失败',
60
+ // },
61
+ // };
79
62
  var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
80
63
  var _this = this,
81
- _typeMap$options$type,
82
- _typeMap$options$type2,
83
64
  _this$componentConfig3;
84
65
  _classCallCheck(this, CommonMultiStatus);
85
66
  _defineProperty(this, "name", void 0);
@@ -94,8 +75,15 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
94
75
  _defineProperty(this, "canSort", void 0);
95
76
  _defineProperty(this, "children", void 0);
96
77
  _defineProperty(this, "dataType", void 0);
78
+ _defineProperty(this, "suffixKey", void 0);
79
+ _defineProperty(this, "suffixCode", void 0);
80
+ _defineProperty(this, "suffixName", void 0);
81
+ _defineProperty(this, "suffixType", void 0);
82
+ _defineProperty(this, "suffixValueKey", void 0);
83
+ _defineProperty(this, "suffixIdKey", void 0);
84
+ _defineProperty(this, "suffixFailValue", void 0);
85
+ _defineProperty(this, "suffixOptions", void 0);
97
86
  _defineProperty(this, "renderClient", function (record) {
98
- var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
99
87
  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) {
100
88
  return !isNull(item);
101
89
  }) : false;
@@ -104,15 +92,14 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
104
92
  label: _this.name,
105
93
  value: /*#__PURE__*/React.createElement(CommonOrderContent, {
106
94
  list: record === null || record === void 0 ? void 0 : record[_this.id],
107
- valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
108
- failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
109
- options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options
95
+ valueKey: _this.suffixValueKey,
96
+ failValue: _this.suffixFailValue,
97
+ options: _this.suffixOptions
110
98
  })
111
99
  }) : null;
112
100
  });
113
101
  _defineProperty(this, "renderPc", function (value, record) {
114
- var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
115
- 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)];
102
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
116
103
  //兼容多个商品
117
104
  return /*#__PURE__*/React.createElement("span", {
118
105
  onClick: function onClick(e) {
@@ -120,35 +107,31 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
120
107
  }
121
108
  }, /*#__PURE__*/React.createElement(CommonOrderContent, {
122
109
  list: list,
123
- valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
124
- failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
125
- options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options
110
+ valueKey: _this.suffixValueKey,
111
+ failValue: _this.suffixFailValue,
112
+ options: _this.suffixOptions
126
113
  }));
127
114
  });
128
115
  _defineProperty(this, "renderLog", function (r) {
129
- var _typeMap$_this$type8;
130
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)];
116
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
131
117
  if (isNull(list)) return null;
132
118
  return _this.renderPc(undefined, r);
133
119
  });
134
120
  _defineProperty(this, "getComponentValue", function (r) {
135
- var _typeMap$_this$type9;
136
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)];
121
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
137
122
  });
138
123
  _defineProperty(this, "renderExport", function (value, record) {
139
- var _typeMap$_this$type10;
140
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
124
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
141
125
  return (list || []).map(function (item) {
142
- var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13, _typeMap$_this$type15, _typeMap$_this$type16;
143
- var currentOption = (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : (_typeMap$_this$type12 = _typeMap$_this$type11.options) === null || _typeMap$_this$type12 === void 0 ? void 0 : (_typeMap$_this$type13 = _typeMap$_this$type12.find) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.call(_typeMap$_this$type12, function (option) {
144
- var _typeMap$_this$type14;
145
- return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
126
+ var _this$suffixOptions, _this$suffixOptions$f;
127
+ var currentOption = (_this$suffixOptions = _this.suffixOptions) === null || _this$suffixOptions === void 0 ? void 0 : (_this$suffixOptions$f = _this$suffixOptions.find) === null || _this$suffixOptions$f === void 0 ? void 0 : _this$suffixOptions$f.call(_this$suffixOptions, function (option) {
128
+ return item[_this.suffixValueKey] === option.value;
146
129
  });
147
- return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey]) || '');
148
- }).join(',');
130
+ return "".concat(item === null || item === void 0 ? void 0 : item[_this.suffixIdKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[_this.suffixValueKey]) || "");
131
+ }).join(",");
149
132
  });
150
133
  _defineProperty(this, "editRender", function (p) {
151
- var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type17;
134
+ var _this$componentConfig, _this$componentConfig2;
152
135
  return /*#__PURE__*/React.createElement(GetFormItem, {
153
136
  title: _this.name,
154
137
  name: _this.id,
@@ -157,34 +140,33 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
157
140
  display: p === null || p === void 0 ? void 0 : p.display,
158
141
  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,
159
142
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
160
- type: (_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.type,
161
- failValue: typeMap[_this.type].failValue
143
+ type: _this.suffixType,
144
+ failValue: _this.suffixFailValue
162
145
  }))
163
146
  });
164
147
  });
165
148
  _defineProperty(this, "filterConfig", function (item) {
166
- var _typeMap$_this$type18, _item$templateConfig;
149
+ var _item$templateConfig;
167
150
  return {
168
- searchDefaultConditions: _this.type === 'WAREHOUSING_STATUS' ? SYMBOL.in : SYMBOL.like,
151
+ searchDefaultConditions: _this.type === "WAREHOUSING_STATUS" ? SYMBOL.in : SYMBOL.like,
169
152
  type: item.type,
170
- id: "".concat(item.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.code),
153
+ id: "".concat(item.id, "_").concat(_this.suffixCode),
171
154
  name: "".concat(_this.name),
172
- filterComponentType: _this.type === 'WAREHOUSING_STATUS' ? 'MultipleSelect' : 'SelectInput',
155
+ filterComponentType: _this.type === "WAREHOUSING_STATUS" ? "MultipleSelect" : "SelectInput",
173
156
  props: {
174
157
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
175
158
  fieldNames: {
176
- label: 'label',
177
- value: 'value'
159
+ label: "label",
160
+ value: "value"
178
161
  }
179
162
  },
180
163
  filterFn: function filterFn(value) {
181
164
  return function (i) {
182
- var _typeMap$_this$type19;
183
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code), value);
165
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixCode), value);
184
166
  };
185
167
  },
186
- formatFilterValue: _this.type === 'WAREHOUSING_STATUS' ? null : function (value) {
187
- if (value.type === 'keywords') {
168
+ formatFilterValue: _this.type === "WAREHOUSING_STATUS" ? null : function (value) {
169
+ if (value.type === "keywords") {
188
170
  return value.keywords;
189
171
  } else {
190
172
  return value;
@@ -194,30 +176,38 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
194
176
  });
195
177
  this.name = options.name;
196
178
  this.id = options.id;
197
- this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
198
- this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
179
+ this.suffixKey = "";
180
+ this.suffixCode = "";
181
+ this.suffixName = "";
182
+ this.suffixType = 0;
183
+ this.suffixValueKey = "";
184
+ this.suffixIdKey = "";
185
+ this.suffixFailValue = "";
186
+ this.suffixOptions = [];
187
+ this.sortField = "".concat(options.id, "_").concat(this.suffixKey);
188
+ this.formField = "".concat(options.id, "_").concat(this.suffixKey);
199
189
  this.type = options.type;
200
190
  this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
201
- options: typeMap[options.type].options
191
+ options: this.suffixOptions
202
192
  });
203
193
  this.isCombinationComponent = false;
204
194
  this.canSort = false;
205
195
  this.children = [];
206
- this.dataType = 'object';
196
+ this.dataType = "object";
207
197
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
208
198
  required: true,
209
199
  validator: function validator(_, value) {
210
200
  var hasNo = (value || []).some(function (item) {
211
- var _typeMap$_this$type20;
212
- return item[(_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.valueKey];
201
+ return item[_this.suffixValueKey];
213
202
  });
214
203
  if (!hasNo) {
215
- var _typeMap$_this$type21;
216
- return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.name)));
204
+ return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat(_this.suffixName)));
217
205
  }
218
206
  return Promise.resolve();
219
207
  }
220
208
  }] : [];
221
- this.align = 'left';
209
+ this.align = "left";
222
210
  });
211
+ _defineProperty(CommonMultiStatus, "group", "BASIC_COMPONENT");
212
+ _defineProperty(CommonMultiStatus, "configSchema", {});
223
213
  export default CommonMultiStatus;
@@ -0,0 +1,21 @@
1
+ import SystemOrder from "./index";
2
+ import { PickOption } from "../../type";
3
+ declare class DeliveryNoList extends SystemOrder {
4
+ static group: string;
5
+ static configSchema: {
6
+ componentConfig: {
7
+ required: boolean;
8
+ };
9
+ name: string;
10
+ uniqueKey: string;
11
+ schema: {
12
+ required: {
13
+ title: string;
14
+ type: string;
15
+ };
16
+ };
17
+ };
18
+ static type: string;
19
+ constructor(options: PickOption);
20
+ }
21
+ export default DeliveryNoList;
@@ -0,0 +1,48 @@
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 SystemOrder from "./index";
16
+ var DeliveryNoList = /*#__PURE__*/function (_SystemOrder) {
17
+ _inherits(DeliveryNoList, _SystemOrder);
18
+ var _super = _createSuper(DeliveryNoList);
19
+ function DeliveryNoList(options) {
20
+ var _this;
21
+ _classCallCheck(this, DeliveryNoList);
22
+ _this = _super.call(this, options);
23
+ _this.suffixKey = "deliveryNoList";
24
+ _this.suffixCode = "deliveryNoIds";
25
+ _this.suffixName = "出库单";
26
+ _this.suffixType = 1;
27
+ _this.suffixValueKey = "deliveryNo";
28
+ _this.type = "BS_DELIVERY_NO";
29
+ return _this;
30
+ }
31
+ return _createClass(DeliveryNoList);
32
+ }(SystemOrder);
33
+ _defineProperty(DeliveryNoList, "group", "THIRD_COMPONENT");
34
+ _defineProperty(DeliveryNoList, "configSchema", {
35
+ componentConfig: {
36
+ required: false
37
+ },
38
+ name: "bs出库单编号",
39
+ uniqueKey: "Ul84M4FKvZ",
40
+ schema: {
41
+ required: {
42
+ title: "必填",
43
+ type: "boolean"
44
+ }
45
+ }
46
+ });
47
+ _defineProperty(DeliveryNoList, "type", "BS_DELIVERY_NO");
48
+ export default DeliveryNoList;
@@ -0,0 +1,22 @@
1
+ import SystemOrder from "./index";
2
+ import { PickOption } from "../../type";
3
+ declare class ExchangeTradeId extends SystemOrder {
4
+ static group: string;
5
+ static configSchema: {
6
+ componentConfig: {
7
+ required: boolean;
8
+ };
9
+ name: string;
10
+ belongs: string[];
11
+ uniqueKey: string;
12
+ schema: {
13
+ required: {
14
+ title: string;
15
+ type: string;
16
+ };
17
+ };
18
+ };
19
+ static type: string;
20
+ constructor(options: PickOption);
21
+ }
22
+ export default ExchangeTradeId;
@@ -0,0 +1,49 @@
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 SystemOrder from "./index";
16
+ var ExchangeTradeId = /*#__PURE__*/function (_SystemOrder) {
17
+ _inherits(ExchangeTradeId, _SystemOrder);
18
+ var _super = _createSuper(ExchangeTradeId);
19
+ function ExchangeTradeId(options) {
20
+ var _this;
21
+ _classCallCheck(this, ExchangeTradeId);
22
+ _this = _super.call(this, options);
23
+ _this.suffixKey = "tradeItemList";
24
+ _this.suffixCode = "tradeIdList";
25
+ _this.suffixName = "换货单id";
26
+ _this.suffixType = 4;
27
+ _this.suffixValueKey = "billNo";
28
+ _this.type = "EXCHANGE_TRADE_ID";
29
+ return _this;
30
+ }
31
+ return _createClass(ExchangeTradeId);
32
+ }(SystemOrder);
33
+ _defineProperty(ExchangeTradeId, "group", "THIRD_SPECIAL_COMPONENT");
34
+ _defineProperty(ExchangeTradeId, "configSchema", {
35
+ componentConfig: {
36
+ required: false
37
+ },
38
+ name: "换货单id",
39
+ belongs: ["bs"],
40
+ uniqueKey: "549c837b31",
41
+ schema: {
42
+ required: {
43
+ title: "必填",
44
+ type: "boolean"
45
+ }
46
+ }
47
+ });
48
+ _defineProperty(ExchangeTradeId, "type", "EXCHANGE_TRADE_ID");
49
+ export default ExchangeTradeId;
@@ -0,0 +1,32 @@
1
+ import SystemOrder from "./index";
2
+ import { PickOption } from "../../type";
3
+ declare class ReturnGoodsTradeItemList extends SystemOrder {
4
+ static group: string;
5
+ static configSchema: {
6
+ componentConfig: {
7
+ required: boolean;
8
+ };
9
+ belongs: string[];
10
+ name: string;
11
+ workOrderComponentGroup: string;
12
+ workOrderComponentType: string;
13
+ uniqueKey: string;
14
+ schema: {
15
+ required: {
16
+ title: string;
17
+ type: string;
18
+ };
19
+ status: {
20
+ widget: string;
21
+ type: string;
22
+ default: {
23
+ created: number;
24
+ upgrade: number;
25
+ };
26
+ };
27
+ };
28
+ };
29
+ static type: string;
30
+ constructor(options: PickOption);
31
+ }
32
+ export default ReturnGoodsTradeItemList;
@@ -0,0 +1,60 @@
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 SystemOrder from "./index";
16
+ import { SHOW_WRITE } from "../../constant";
17
+ var ReturnGoodsTradeItemList = /*#__PURE__*/function (_SystemOrder) {
18
+ _inherits(ReturnGoodsTradeItemList, _SystemOrder);
19
+ var _super = _createSuper(ReturnGoodsTradeItemList);
20
+ function ReturnGoodsTradeItemList(options) {
21
+ var _this;
22
+ _classCallCheck(this, ReturnGoodsTradeItemList);
23
+ _this = _super.call(this, options);
24
+ _this.suffixKey = "returnGoodsTradeItemList";
25
+ _this.suffixCode = "returnGoodsTradeIdList";
26
+ _this.suffixName = "退货单id";
27
+ _this.suffixType = 2;
28
+ _this.suffixValueKey = "returnGoodsTradeId";
29
+ _this.type = "RETURN_GOODS_TRADE_ID";
30
+ return _this;
31
+ }
32
+ return _createClass(ReturnGoodsTradeItemList);
33
+ }(SystemOrder);
34
+ _defineProperty(ReturnGoodsTradeItemList, "group", "THIRD_SPECIAL_COMPONENT");
35
+ _defineProperty(ReturnGoodsTradeItemList, "configSchema", {
36
+ componentConfig: {
37
+ required: false
38
+ },
39
+ belongs: ["bs"],
40
+ name: "退货单id(勿填)",
41
+ workOrderComponentGroup: "THIRD_SPECIAL_COMPONENT",
42
+ workOrderComponentType: "RETURN_GOODS_TRADE_ID",
43
+ uniqueKey: "6UdrMM8WCx",
44
+ schema: {
45
+ required: {
46
+ title: "必填",
47
+ type: "boolean"
48
+ },
49
+ status: {
50
+ widget: "StatusConfig",
51
+ type: "object",
52
+ default: {
53
+ created: SHOW_WRITE,
54
+ upgrade: SHOW_WRITE
55
+ }
56
+ }
57
+ }
58
+ });
59
+ _defineProperty(ReturnGoodsTradeItemList, "type", "RETURN_GOODS_TRADE_ID");
60
+ export default ReturnGoodsTradeItemList;
@@ -0,0 +1,23 @@
1
+ import SystemOrder from "./index";
2
+ import { PickOption } from "../../type";
3
+ declare class TradeItemList extends SystemOrder {
4
+ static group: string;
5
+ static configSchema: {
6
+ componentConfig: {
7
+ required: boolean;
8
+ };
9
+ belongs: string[];
10
+ name: string;
11
+ isThird: boolean;
12
+ uniqueKey: string;
13
+ schema: {
14
+ required: {
15
+ title: string;
16
+ type: string;
17
+ };
18
+ };
19
+ };
20
+ static type: string;
21
+ constructor(options: PickOption);
22
+ }
23
+ export default TradeItemList;
@@ -0,0 +1,50 @@
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 SystemOrder from "./index";
16
+ var TradeItemList = /*#__PURE__*/function (_SystemOrder) {
17
+ _inherits(TradeItemList, _SystemOrder);
18
+ var _super = _createSuper(TradeItemList);
19
+ function TradeItemList(options) {
20
+ var _this;
21
+ _classCallCheck(this, TradeItemList);
22
+ _this = _super.call(this, options);
23
+ _this.suffixKey = "tradeItemList";
24
+ _this.suffixCode = "tradeIdList";
25
+ _this.suffixName = "补发单id";
26
+ _this.suffixType = 3;
27
+ _this.suffixValueKey = "billNo";
28
+ _this.type = "REISSUE_TRADE_ID";
29
+ return _this;
30
+ }
31
+ return _createClass(TradeItemList);
32
+ }(SystemOrder);
33
+ _defineProperty(TradeItemList, "group", "THIRD_SPECIAL_COMPONENT");
34
+ _defineProperty(TradeItemList, "configSchema", {
35
+ componentConfig: {
36
+ required: false
37
+ },
38
+ belongs: ["bs", "wdt"],
39
+ name: "补发单id",
40
+ isThird: true,
41
+ uniqueKey: "769940c2ba",
42
+ schema: {
43
+ required: {
44
+ title: "必填",
45
+ type: "boolean"
46
+ }
47
+ }
48
+ });
49
+ _defineProperty(TradeItemList, "type", "REISSUE_TRADE_ID");
50
+ export default TradeItemList;