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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/esm/Hooks/index.d.ts +2 -0
  2. package/dist/esm/Hooks/index.js +2 -0
  3. package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
  4. package/dist/esm/Hooks/useColumnsConfig.js +243 -0
  5. package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
  6. package/dist/esm/Hooks/useGoodsSourceFormat.js +437 -0
  7. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  8. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -3
  9. package/dist/esm/commonComponents/GlobalContext/index.js +61 -23
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
  13. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  14. package/dist/esm/commonComponents/OperationLog/index.js +4 -4
  15. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
  16. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
  17. package/dist/esm/commonComponents/ShopList/index.js +3 -1
  18. package/dist/esm/components/BS/BsGoods/index.js +0 -1
  19. package/dist/esm/components/BS/BsLogistics/index.d.ts +2 -0
  20. package/dist/esm/components/BS/BsLogistics/index.js +50 -9
  21. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  22. package/dist/esm/components/BS/BsSystemOrder/index.js +62 -9
  23. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
  24. package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
  25. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  26. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  27. package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
  28. package/dist/esm/components/BS/common/BsMemo.js +5 -1
  29. package/dist/esm/components/BS/common/BsType.js +5 -1
  30. package/dist/esm/components/BS/common/SystemOrderNo.js +5 -1
  31. package/dist/esm/components/BS/common/expressCode.js +6 -0
  32. package/dist/esm/components/BS/common/expressCompany.js +20 -1
  33. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  34. package/dist/esm/components/Cascader/index.d.ts +8 -6
  35. package/dist/esm/components/Cascader/index.js +26 -22
  36. package/dist/esm/components/Common/constants/bs.js +2 -2
  37. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  38. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  39. package/dist/esm/components/Common/constants/wdt.js +104 -0
  40. package/dist/esm/components/Common/index.d.ts +2 -2
  41. package/dist/esm/components/Common/index.js +45 -24
  42. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  43. package/dist/esm/components/CommonDataTime/index.js +2 -2
  44. package/dist/esm/components/CommonHeaderGood/index.js +1417 -110
  45. package/dist/esm/components/CommonInput/index.js +11 -3
  46. package/dist/esm/components/CommonMultiStatus/index.js +96 -36
  47. package/dist/esm/components/CommonSystemOrder/index.js +7 -0
  48. package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
  49. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  50. package/dist/esm/components/ErpTradeId/index.js +7 -4
  51. package/dist/esm/components/File/index.d.ts +6 -6
  52. package/dist/esm/components/File/index.js +9 -10
  53. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  54. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  55. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  56. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  57. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  58. package/dist/esm/components/Input/index.d.ts +4 -4
  59. package/dist/esm/components/Input/index.js +35 -31
  60. package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
  61. package/dist/esm/components/JST/JstSendGood/index.js +66 -18
  62. package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
  63. package/dist/esm/components/KM/KmExchange/index.js +136 -0
  64. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  65. package/dist/esm/components/Logistics/index.d.ts +1 -0
  66. package/dist/esm/components/Logistics/index.js +10 -0
  67. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  68. package/dist/esm/components/LogisticsInterception/index.d.ts +21 -0
  69. package/dist/esm/components/LogisticsInterception/index.js +30 -7
  70. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
  71. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
  72. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  73. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  74. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  75. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
  76. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  77. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  78. package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
  79. package/dist/esm/components/OrderSubForm/index.js +18 -1
  80. package/dist/esm/components/Payment/index.d.ts +13 -12
  81. package/dist/esm/components/Payment/index.js +31 -11
  82. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  83. package/dist/esm/components/Picture/index.d.ts +5 -5
  84. package/dist/esm/components/Picture/index.js +20 -20
  85. package/dist/esm/components/PicturePro/PictureName.js +1 -3
  86. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  87. package/dist/esm/components/PicturePro/index.js +43 -28
  88. package/dist/esm/components/PostIng/index.d.ts +5 -0
  89. package/dist/esm/components/PostIng/index.js +42 -8
  90. package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
  91. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  92. package/dist/esm/components/Public/Goods/index.js +46 -2
  93. package/dist/esm/components/Public/ReissueGoods/index.js +80 -4
  94. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  95. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  96. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  97. package/dist/esm/components/ReceiverAddress/index.js +43 -30
  98. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  99. package/dist/esm/components/Remark/index.d.ts +18 -2
  100. package/dist/esm/components/Remark/index.js +37 -2
  101. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  102. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  103. package/dist/esm/components/Select/index.d.ts +1 -0
  104. package/dist/esm/components/Select/index.js +18 -11
  105. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  106. package/dist/esm/components/ShopInput/index.js +12 -9
  107. package/dist/esm/components/StatusSelect/index.js +22 -2
  108. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  109. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  110. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  111. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  112. package/dist/esm/components/SubForm/index.js +78 -6
  113. package/dist/esm/components/TradeId/index.d.ts +6 -5
  114. package/dist/esm/components/TradeId/index.js +31 -15
  115. package/dist/esm/components/WDT/WdtGoods/index.js +2 -1
  116. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  117. package/dist/esm/factory.d.ts +2 -2
  118. package/dist/esm/factory.js +40 -10
  119. package/dist/esm/index.d.ts +4 -0
  120. package/dist/esm/index.js +6 -1
  121. package/dist/esm/service/api.d.ts +3 -0
  122. package/dist/esm/service/api.js +41 -14
  123. package/dist/esm/service/request.js +1 -4
  124. package/dist/esm/type.d.ts +43 -3
  125. package/package.json +4 -4
  126. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  127. package/dist/esm/components/Common/constants/gy.js +0 -219
@@ -0,0 +1,180 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
+ import React from "react";
10
+ import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
11
+ import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
12
+ import GetFormItem from "../GetFormItem";
13
+ import get from "lodash/get";
14
+ import { SYMBOL } from "../../constant";
15
+ // 节点状态
16
+ var FlowOverallStatusSelect = /*#__PURE__*/_createClass(function FlowOverallStatusSelect(options) {
17
+ var _this = this,
18
+ _Object$keys2;
19
+ _classCallCheck(this, FlowOverallStatusSelect);
20
+ _defineProperty(this, "name", void 0);
21
+ _defineProperty(this, "id", void 0);
22
+ _defineProperty(this, "sortField", void 0);
23
+ _defineProperty(this, "type", void 0);
24
+ _defineProperty(this, "rules", void 0);
25
+ _defineProperty(this, "componentConfig", void 0);
26
+ _defineProperty(this, "effects", void 0);
27
+ _defineProperty(this, "workOrderStatus", void 0);
28
+ _defineProperty(this, "isCombinationComponent", void 0);
29
+ _defineProperty(this, "formField", void 0);
30
+ _defineProperty(this, "canSort", void 0);
31
+ _defineProperty(this, "children", void 0);
32
+ _defineProperty(this, "dataType", void 0);
33
+ _defineProperty(this, "options", void 0);
34
+ _defineProperty(this, "renderPc", function (value, record) {
35
+ var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
36
+ return status ?
37
+ /*#__PURE__*/
38
+ // <Dropdown overlay={this.renderMenu(record)}>
39
+ React.createElement("span", {
40
+ style: {
41
+ color: status.color
42
+ }
43
+ }, status === null || status === void 0 ? void 0 : status.label) :
44
+ /*#__PURE__*/
45
+ // </Dropdown>
46
+ React.createElement("span", null, "--");
47
+ });
48
+ _defineProperty(this, "renderLog", function (r) {
49
+ var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
50
+ if (!status) return null;
51
+ return _this.renderPc(undefined, r);
52
+ });
53
+ _defineProperty(this, "getComponentValue", function (r) {
54
+ var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
55
+ return status;
56
+ });
57
+ _defineProperty(this, "renderExport", function (value, record) {
58
+ var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
59
+ return status ? status === null || status === void 0 ? void 0 : status.label : "--";
60
+ });
61
+ _defineProperty(this, "renderClient", function () {
62
+ return null;
63
+ });
64
+ _defineProperty(this, "editRender", function (p) {
65
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
66
+ return /*#__PURE__*/React.createElement(GetFormItem, {
67
+ title: _this.name,
68
+ name: _this.id,
69
+ rules: _this.rules,
70
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
71
+ display: p === null || p === void 0 ? void 0 : p.display,
72
+ required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
73
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
74
+ component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
75
+ placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
76
+ showSearch: true
77
+ }))
78
+ });
79
+ });
80
+ _defineProperty(this, "filterConfig", function (item) {
81
+ var _Object$keys, _Object$keys$filter;
82
+ return {
83
+ searchDefaultConditions: SYMBOL.in,
84
+ type: item.type,
85
+ id: item.id,
86
+ // 过滤组件id
87
+ name: item.name,
88
+ // 过滤组件名称
89
+ filterComponentType: "MultipleSelect",
90
+ props: {
91
+ options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : (_Object$keys$filter = _Object$keys.filter(function (key) {
92
+ return key !== "HANDLING";
93
+ })) === null || _Object$keys$filter === void 0 ? void 0 : _Object$keys$filter.map(function (item) {
94
+ return {
95
+ label: _this.workOrderStatus[item].label,
96
+ value: item
97
+ };
98
+ })
99
+ },
100
+ filterFn: function filterFn(value) {
101
+ return function (i) {
102
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
103
+ };
104
+ }
105
+ };
106
+ });
107
+ this.name = options.name;
108
+ this.id = options.id;
109
+ this.sortField = options.id;
110
+ this.formField = options.id;
111
+ this.type = options.type;
112
+ this.componentConfig = options.componentConfig;
113
+ this.effects = options.effects;
114
+ this.rules = [];
115
+ this.isCombinationComponent = false;
116
+ this.canSort = true;
117
+ this.children = [];
118
+ this.workOrderStatus = {
119
+ PROCESSING: {
120
+ label: "处理中",
121
+ color: "#1890ff",
122
+ bgColor: "#1890ff"
123
+ },
124
+ STOPPING: {
125
+ label: "暂停中",
126
+ color: "#ff4d4f",
127
+ bgColor: "#ff4d4f"
128
+ },
129
+ COMPLETED: {
130
+ label: "已完成",
131
+ color: "#73d13d",
132
+ bgColor: "#73d13d"
133
+ },
134
+ CLOSED: {
135
+ label: "已关闭",
136
+ color: "rgba(0, 0, 0, 0.65)",
137
+ bgColor: "rgba(0, 0, 0, 0.04);"
138
+ },
139
+ FLOWING: {
140
+ label: "流转中",
141
+ color: "#1890ff",
142
+ bgColor: "#1890ff"
143
+ },
144
+ RETURNING: {
145
+ label: "回退中",
146
+ color: "#1890ff",
147
+ bgColor: "#1890ff"
148
+ },
149
+ BUSINESS_SUCCESS_BUT_FLOW_FAIL: {
150
+ label: "业务执行完毕但流转异常",
151
+ color: "#73d13d",
152
+ bgColor: "#73d13d"
153
+ }
154
+ };
155
+ this.dataType = "string";
156
+ this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
157
+ return {
158
+ label: _this.workOrderStatus[item].label,
159
+ value: item
160
+ };
161
+ });
162
+ }
163
+ // renderMenu = (record: Record) => {
164
+ // const menu = (
165
+ // <Menu
166
+ // onClick={({ key }) => {
167
+ // typeof this?.effects?.handleChangeSingleWorkOrderStatus === 'function' && this?.effects?.handleChangeSingleWorkOrderStatus(key, record)
168
+ // }}
169
+ // >
170
+ // <Menu.Item key="HANDLING">处理中</Menu.Item>
171
+ // <Menu.Item key="STOPPING">暂停中</Menu.Item>
172
+ // <Menu.Item key="COMPLETED">已完成</Menu.Item>
173
+ // <Menu.Item key="WAITING">待处理</Menu.Item>
174
+ // </Menu>
175
+ // );
176
+ // return menu;
177
+ // };
178
+ );
179
+
180
+ export default FlowOverallStatusSelect;
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
+ import { useGoodsSourceFormat } from "../../../Hooks";
19
20
  var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
20
21
  var _this = this,
21
22
  _this$componentConfig6;
@@ -64,7 +65,7 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
64
65
  return null;
65
66
  });
66
67
  _defineProperty(this, "editRender", function (p) {
67
- var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
68
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3, _this$effects4, _this$effects5;
68
69
  return /*#__PURE__*/React.createElement(GetFormItem, {
69
70
  title: _this.name,
70
71
  name: _this.id,
@@ -74,10 +75,13 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
74
75
  display: p === null || p === void 0 ? void 0 : p.display,
75
76
  tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
76
77
  component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
78
+ useGoodsSourceFormat: useGoodsSourceFormat,
77
79
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
78
80
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
79
81
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
80
82
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
83
+ form: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.form,
84
+ templateDetail: (_this$effects5 = _this.effects) === null || _this$effects5 === void 0 ? void 0 : _this$effects5.templateDetail,
81
85
  type: _this.type,
82
86
  width: "90%"
83
87
  }))
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
17
17
  import { BsGoodsTable } from "../../Common/index";
18
18
  import { BsType, BsMemo, SystemOrderNo } from "../../BS/common/index";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ import { useGoodsSourceFormat } from "../../../Hooks";
20
21
  var typeMap = {
21
22
  GY_REISSUE_GOODS: {
22
23
  key: "gyReissueGoods",
@@ -94,7 +95,7 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
94
95
  return null;
95
96
  });
96
97
  _defineProperty(this, "editRender", function (p) {
97
- var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
98
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3, _this$effects4, _this$effects5;
98
99
  return /*#__PURE__*/React.createElement(GetFormItem, {
99
100
  title: _this.name,
100
101
  name: _this.id,
@@ -105,10 +106,13 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
105
106
  tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
106
107
  isGyReissue: true,
107
108
  component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
109
+ useGoodsSourceFormat: useGoodsSourceFormat,
108
110
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
109
111
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
110
112
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
111
113
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
114
+ form: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.form,
115
+ templateDetail: (_this$effects5 = _this.effects) === null || _this$effects5 === void 0 ? void 0 : _this$effects5.templateDetail,
112
116
  width: "90%",
113
117
  type: _this.type
114
118
  }))
@@ -17,6 +17,7 @@ import { BsGoodsTable } from "../../Common";
17
17
  import CommonHeaderGoods from "../../CommonHeaderGood";
18
18
  import { GyReturn as Return, erpFormValidator } from "@kmkf-fe-packages/basic-components";
19
19
  import { BsType, SystemOrderNo } from "../../BS/common/index";
20
+ import { useGoodsSourceFormat } from "../../../Hooks";
20
21
  var typeMap = {
21
22
  GY_RETURN_GOODS: {
22
23
  key: "gyReturnGoods",
@@ -91,7 +92,7 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
91
92
  return null;
92
93
  });
93
94
  _defineProperty(this, "editRender", function (p) {
94
- var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
95
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3, _this$effects4, _this$effects5;
95
96
  return /*#__PURE__*/React.createElement(GetFormItem, {
96
97
  title: _this.name,
97
98
  name: _this.id,
@@ -101,10 +102,13 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
101
102
  display: p === null || p === void 0 ? void 0 : p.display,
102
103
  tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
103
104
  component: /*#__PURE__*/React.createElement(Return, _extends({}, _this.componentConfig, {
105
+ useGoodsSourceFormat: useGoodsSourceFormat,
104
106
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
105
107
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
106
108
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
107
109
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
110
+ form: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.form,
111
+ templateDetail: (_this$effects5 = _this.effects) === null || _this$effects5 === void 0 ? void 0 : _this$effects5.templateDetail,
108
112
  width: "90%",
109
113
  type: _this.type
110
114
  }))
@@ -1,17 +1,17 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class BasicInput implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface['componentConfig'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
10
  isCombinationComponent: boolean;
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface['dataType'];
14
+ dataType: ComponentInterface["dataType"];
15
15
  templateId?: string;
16
16
  flowTemplateKey?: string;
17
17
  workOrderUniqueKey?: string;
@@ -9,11 +9,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
9
9
  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; }
10
10
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
11
11
  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); }
12
- import React from 'react';
13
- import { ApaasInput } from '@kmkf-fe-packages/basic-components';
12
+ import React from "react";
13
+ import { ApaasInput } from "@kmkf-fe-packages/basic-components";
14
14
  import GetFormItem from "../GetFormItem";
15
15
  import ItemView from "../../commonComponents/ItemView";
16
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { SYMBOL, batchInput, SEARCH_OPTIONS } from "../../constant";
18
18
  import { replaceCheck } from "../../service/api";
19
19
  var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
@@ -36,7 +36,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
36
36
  _defineProperty(this, "workOrderUniqueKey", void 0);
37
37
  _defineProperty(this, "renderPc", function (value, record) {
38
38
  var _record;
39
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : '--');
39
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : "--");
40
40
  });
41
41
  _defineProperty(this, "renderLog", function (r) {
42
42
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_input")])) return null;
@@ -48,7 +48,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
48
48
  _defineProperty(this, "renderExport", function (value, record) {
49
49
  var _this$componentConfig;
50
50
  if (!(record !== null && record !== void 0 && record["".concat(_this.id, "_input")])) {
51
- return '--';
51
+ return "--";
52
52
  }
53
53
  return (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.isNumber ? Number(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) : record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")];
54
54
  });
@@ -67,14 +67,18 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
67
67
  rules: _this.rules,
68
68
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
69
69
  display: p === null || p === void 0 ? void 0 : p.display,
70
- validateTrigger: ['onBlur', 'onChange'],
70
+ validateTrigger: ["onBlur", "onChange"],
71
71
  required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
72
- tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : '',
72
+ tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : "",
73
73
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
74
74
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
75
75
  onChange: function onChange(e) {
76
76
  var _this$componentConfig6, _e$target;
77
77
  return p === null || p === void 0 ? void 0 : p.onChange((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
78
+ },
79
+ onBlur: function onBlur(e) {
80
+ var _this$componentConfig7, _e$target2;
81
+ return p === null || p === void 0 ? void 0 : p.onBlur((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value, "input");
78
82
  }
79
83
  }))
80
84
  });
@@ -90,17 +94,17 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
90
94
  // 过滤组件id
91
95
  name: item.name,
92
96
  // 过滤组件名称
93
- filterComponentType: 'SelectInput',
97
+ filterComponentType: "SelectInput",
94
98
  props: {
95
99
  filterOptions: SEARCH_OPTIONS
96
100
  },
97
101
  filterFn: function filterFn(value) {
98
102
  return function (i) {
99
- return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'input')).includes(value);
103
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "input")).includes(value);
100
104
  };
101
105
  },
102
106
  formatFilterValue: function formatFilterValue(value) {
103
- if (['in', 'anylike'].includes(value.type)) {
107
+ if (["in", "anylike"].includes(value.type)) {
104
108
  return batchInput(value.keywords);
105
109
  } else {
106
110
  return value;
@@ -119,7 +123,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
119
123
  this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
120
124
  this.rules = [{
121
125
  validator: function validator(_, value) {
122
- var _this$componentConfig7, _this$componentConfig8, _this$componentConfig9, _this$componentConfig10, _this$componentConfig11, _this$componentConfig12;
126
+ var _this$componentConfig8, _this$componentConfig9, _this$componentConfig10, _this$componentConfig11, _this$componentConfig12, _this$componentConfig13;
123
127
  if (!value) {
124
128
  return Promise.resolve();
125
129
  }
@@ -127,23 +131,23 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
127
131
  var mail = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9]+(\.[a-zA-Z0-9-]+)*\.([a-zA-Z]{2,})$/;
128
132
  var phone = /^1\d{10}$/;
129
133
  var testList = [];
130
- ((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.isNumber) && testList.push(number);
131
- ((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.isMail) && testList.push(mail);
132
- ((_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.isPhone) && testList.push(phone);
134
+ ((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.isNumber) && testList.push(number);
135
+ ((_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.isMail) && testList.push(mail);
136
+ ((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.isPhone) && testList.push(phone);
133
137
  var isTest = testList.some(function (item) {
134
138
  return item.test(value);
135
139
  });
136
140
  if (testList.length && !isTest) {
137
- return Promise.reject(new Error('请填写正确的格式'));
141
+ return Promise.reject(new Error("请填写正确的格式"));
138
142
  }
139
- if ((_this$componentConfig10 = _this.componentConfig) !== null && _this$componentConfig10 !== void 0 && _this$componentConfig10.isNumber && value > Number.MAX_SAFE_INTEGER) {
140
- return Promise.reject(new Error('输入数值超出最大数字上限,请使用文本框替代当前数字输入框组件'));
143
+ if ((_this$componentConfig11 = _this.componentConfig) !== null && _this$componentConfig11 !== void 0 && _this$componentConfig11.isNumber && value > Number.MAX_SAFE_INTEGER) {
144
+ return Promise.reject(new Error("输入数值超出最大数字上限,请使用文本框替代当前数字输入框组件"));
141
145
  }
142
- if ((_this$componentConfig11 = _this.componentConfig) !== null && _this$componentConfig11 !== void 0 && (_this$componentConfig12 = _this$componentConfig11.rulesOptions) !== null && _this$componentConfig12 !== void 0 && _this$componentConfig12.length) {
143
- var _this$componentConfig13;
144
- var rulesList = (_this$componentConfig13 = _this.componentConfig) === null || _this$componentConfig13 === void 0 ? void 0 : _this$componentConfig13.rulesOptions.filter(function (item) {
145
- var _this$componentConfig14;
146
- return (((_this$componentConfig14 = _this.componentConfig) === null || _this$componentConfig14 === void 0 ? void 0 : _this$componentConfig14.selectRules) || []).includes(item.id);
146
+ if ((_this$componentConfig12 = _this.componentConfig) !== null && _this$componentConfig12 !== void 0 && (_this$componentConfig13 = _this$componentConfig12.rulesOptions) !== null && _this$componentConfig13 !== void 0 && _this$componentConfig13.length) {
147
+ var _this$componentConfig14;
148
+ var rulesList = (_this$componentConfig14 = _this.componentConfig) === null || _this$componentConfig14 === void 0 ? void 0 : _this$componentConfig14.rulesOptions.filter(function (item) {
149
+ var _this$componentConfig15;
150
+ return (((_this$componentConfig15 = _this.componentConfig) === null || _this$componentConfig15 === void 0 ? void 0 : _this$componentConfig15.selectRules) || []).includes(item.id);
147
151
  });
148
152
  if (!rulesList.length) {
149
153
  return Promise.resolve();
@@ -163,11 +167,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
163
167
  return Promise.resolve();
164
168
  }
165
169
  }, {
166
- validateTrigger: 'onBlur',
170
+ validateTrigger: "onBlur",
167
171
  validator: function () {
168
172
  var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
169
- var _this$componentConfig15;
170
- var _resultList$, params, _yield$replaceCheck, resultList, _this$componentConfig16, _this$componentConfig17, _this$componentConfig18, messageMap;
173
+ var _this$componentConfig16;
174
+ var _resultList$, params, _yield$replaceCheck, resultList, _this$componentConfig17, _this$componentConfig18, _this$componentConfig19, messageMap;
171
175
  return _regeneratorRuntime().wrap(function _callee$(_context) {
172
176
  while (1) switch (_context.prev = _context.next) {
173
177
  case 0:
@@ -177,7 +181,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
177
181
  }
178
182
  return _context.abrupt("return", Promise.resolve());
179
183
  case 2:
180
- if (!((_this$componentConfig15 = _this.componentConfig) !== null && _this$componentConfig15 !== void 0 && _this$componentConfig15.replaceWarn)) {
184
+ if (!((_this$componentConfig16 = _this.componentConfig) !== null && _this$componentConfig16 !== void 0 && _this$componentConfig16.replaceWarn)) {
181
185
  _context.next = 11;
182
186
  break;
183
187
  }
@@ -200,11 +204,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
200
204
  break;
201
205
  }
202
206
  messageMap = {
203
- currWorkOrder: '数据已存在本模版同节点中,不能重复提交',
204
- currFlow: '数据已存在本模版中,不能重复提交',
205
- allWorkOrder: '数据已存在其他模版中,不能重复提交'
207
+ currWorkOrder: "数据已存在本模版同节点中,不能重复提交",
208
+ currFlow: "数据已存在本模版中,不能重复提交",
209
+ allWorkOrder: "数据已存在其他模版中,不能重复提交"
206
210
  };
207
- return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$componentConfig16 = (_this$componentConfig17 = _this.componentConfig) === null || _this$componentConfig17 === void 0 ? void 0 : (_this$componentConfig18 = _this$componentConfig17.repeatConfig) === null || _this$componentConfig18 === void 0 ? void 0 : _this$componentConfig18.repeatRange) !== null && _this$componentConfig16 !== void 0 ? _this$componentConfig16 : ''] || '内容已存在,不能重复提交')));
211
+ return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$componentConfig17 = (_this$componentConfig18 = _this.componentConfig) === null || _this$componentConfig18 === void 0 ? void 0 : (_this$componentConfig19 = _this$componentConfig18.repeatConfig) === null || _this$componentConfig19 === void 0 ? void 0 : _this$componentConfig19.repeatRange) !== null && _this$componentConfig17 !== void 0 ? _this$componentConfig17 : ""] || "内容已存在,不能重复提交")));
208
212
  case 11:
209
213
  case "end":
210
214
  return _context.stop();
@@ -220,6 +224,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
220
224
  this.isCombinationComponent = false;
221
225
  this.canSort = true;
222
226
  this.children = [];
223
- this.dataType = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? 'number' : 'string';
227
+ this.dataType = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? "number" : "string";
224
228
  });
225
229
  export default BasicInput;
@@ -29,6 +29,16 @@ declare class JstSendGood implements ComponentInterface {
29
29
  renderExport: (value: any, record: any) => any;
30
30
  editRender: (p: any) => React.JSX.Element;
31
31
  filterConfig: (item: ColumnConfig) => ({
32
+ searchDefaultConditions: "like";
33
+ type: string;
34
+ id: string;
35
+ name: string;
36
+ filterComponentType: "TagsSelect";
37
+ props: {
38
+ options: any[];
39
+ };
40
+ filterFn: (value: string) => (i: Record) => any;
41
+ } | {
32
42
  searchDefaultConditions: "in";
33
43
  type: string;
34
44
  id: string;
@@ -1,4 +1,9 @@
1
+ var _excluded = ["label", "value"];
1
2
  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); }
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
7
  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
8
  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
9
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -44,7 +49,7 @@ var typeMap = {
44
49
  name: "wln",
45
50
  sendId: "wlnSendId",
46
51
  sendName: "wlnSendName",
47
- platformType: "default",
52
+ platformType: "wln",
48
53
  dataType: "arrayObject"
49
54
  },
50
55
  KM_SEND_GOOD: {
@@ -70,6 +75,22 @@ var typeMap = {
70
75
  sendName: "gySendName",
71
76
  platformType: "gy",
72
77
  dataType: "weakenArray"
78
+ },
79
+ JY_SEND_GOOD: {
80
+ key: "jySendGood",
81
+ name: "jy",
82
+ sendId: "jySendId",
83
+ sendName: "jySendName",
84
+ platformType: "jy",
85
+ dataType: "weakenArray"
86
+ },
87
+ JKY_SEND_GOOD: {
88
+ key: "jkySendGood",
89
+ name: "jky",
90
+ sendId: "jkySendId",
91
+ sendName: "jkySendName",
92
+ platformType: "jky",
93
+ dataType: "weakenArray"
73
94
  }
74
95
  };
75
96
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
@@ -175,38 +196,65 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
175
196
  });
176
197
  });
177
198
  _defineProperty(this, "filterConfig", function (item) {
178
- var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
179
- return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
180
- searchDefaultConditions: SYMBOL.in,
199
+ var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type12;
200
+ return [["WLN_SEND_GOOD"].includes(_this.type) ? {
201
+ searchDefaultConditions: SYMBOL.like,
181
202
  type: item.type,
182
203
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
183
204
  name: "".concat(_this.name, "-\u540D\u79F0"),
184
- filterComponentType: "MultipleSelect",
205
+ filterComponentType: "TagsSelect",
185
206
  props: {
186
- options: SendDataCenter.getInstance(item.type).getSendData()
207
+ options: SendDataCenter.getInstance(item.type).getSendData().map(function (_ref) {
208
+ var label = _ref.label,
209
+ value = _ref.value,
210
+ other = _objectWithoutProperties(_ref, _excluded);
211
+ return _objectSpread(_objectSpread({}, other), {}, {
212
+ label: label,
213
+ value: label
214
+ });
215
+ })
187
216
  },
188
217
  filterFn: function filterFn(value) {
189
218
  return function (i) {
190
- var _ref;
191
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
219
+ var _ref2;
220
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
192
221
  var _String;
193
222
  var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
194
223
  return sendName;
195
224
  });
196
225
  };
197
226
  }
227
+ } : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
228
+ searchDefaultConditions: SYMBOL.in,
229
+ type: item.type,
230
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
231
+ name: "".concat(_this.name, "-\u540D\u79F0"),
232
+ filterComponentType: "MultipleSelect",
233
+ props: {
234
+ options: SendDataCenter.getInstance(item.type).getSendData()
235
+ },
236
+ filterFn: function filterFn(value) {
237
+ return function (i) {
238
+ var _ref3;
239
+ return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
240
+ var _String2;
241
+ var sendName = item ? (_String2 = String(item)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
242
+ return sendName;
243
+ });
244
+ };
245
+ }
198
246
  } : {
199
247
  searchDefaultConditions: SYMBOL.like,
200
248
  type: item.type,
201
- id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
249
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.sendName),
202
250
  name: "".concat(_this.name, "-\u540D\u79F0"),
203
251
  filterComponentType: "Input",
204
252
  filterFn: function filterFn(value) {
205
253
  return function (i) {
206
- var _ref2, _typeMap$_this$type10;
207
- return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
208
- var _String2;
209
- 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;
254
+ var _ref4, _typeMap$_this$type11;
255
+ return (_ref4 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.key) || []) === null || _ref4 === void 0 ? void 0 : _ref4.some(function (item) {
256
+ var _String3;
257
+ var name = item !== null && item !== void 0 && item.sendName ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
210
258
  return name;
211
259
  });
212
260
  };
@@ -214,15 +262,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
214
262
  }, {
215
263
  searchDefaultConditions: SYMBOL.like,
216
264
  type: item.type,
217
- id: "".concat(item.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.sendId),
265
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.sendId),
218
266
  name: "".concat(_this.name, "-\u7F16\u7801"),
219
267
  filterComponentType: "Input",
220
268
  filterFn: function filterFn(value) {
221
269
  return function (i) {
222
- var _ref3, _typeMap$_this$type12;
223
- return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.key) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
224
- var _String3;
225
- 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;
270
+ var _ref5, _typeMap$_this$type13;
271
+ return (_ref5 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.key) || []) === null || _ref5 === void 0 ? void 0 : _ref5.some(function (item) {
272
+ var _String4;
273
+ var id = item !== null && item !== void 0 && item.sendId ? (_String4 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String4 === void 0 ? void 0 : _String4.includes(value) : false;
226
274
  return id;
227
275
  });
228
276
  };