@kmkf-fe-packages/services-components 2.2.44-beta.82 → 2.2.44-beta.83

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.
@@ -28,13 +28,24 @@ declare class ReturnWarehouse implements ComponentInterface {
28
28
  getComponentValue: (r: Record) => any;
29
29
  renderExport: (value: any, record: any) => any;
30
30
  editRender: (p: any) => React.JSX.Element;
31
- filterConfig: (item: ColumnConfig) => {
31
+ filterConfig: (item: ColumnConfig) => ({
32
+ searchDefaultConditions: "in";
33
+ type: string;
34
+ id: string;
35
+ name: string;
36
+ filterComponentType: "MultipleSelect";
37
+ props: {
38
+ options: any[];
39
+ };
40
+ filterFn: (value: string) => (i: Record) => any;
41
+ } | {
32
42
  searchDefaultConditions: "like";
33
43
  type: string;
34
44
  id: string;
35
45
  name: string;
36
46
  filterComponentType: "Input";
37
47
  filterFn: (value: string) => (i: Record) => any;
38
- }[];
48
+ props?: undefined;
49
+ })[];
39
50
  }
40
51
  export default ReturnWarehouse;
@@ -128,33 +128,41 @@ var ReturnWarehouse = /*#__PURE__*/_createClass(function ReturnWarehouse(_option
128
128
  });
129
129
  });
130
130
  _defineProperty(this, "filterConfig", function (item) {
131
- var _typeMap$_this$type8, _typeMap$_this$type10;
131
+ var _typeMap$_this$type8, _typeMap$_this$type9;
132
132
  return [{
133
- searchDefaultConditions: SYMBOL.like,
133
+ searchDefaultConditions: SYMBOL.in,
134
134
  type: item.type,
135
135
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.returnWarehouseName),
136
136
  name: "".concat(_this.name, "-\u540D\u79F0"),
137
- filterComponentType: "Input",
137
+ filterComponentType: "MultipleSelect",
138
+ props: {
139
+ options: SendDataCenter.getInstance(item.type).getSendData().map(function (item) {
140
+ return {
141
+ label: item.label,
142
+ value: item.label
143
+ };
144
+ })
145
+ },
138
146
  filterFn: function filterFn(value) {
139
147
  return function (i) {
140
- var _ref, _typeMap$_this$type9;
141
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key) || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
148
+ var _ref;
149
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "returnWarehouseName").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
142
150
  var _String;
143
- var name = item !== null && item !== void 0 && item.returnWarehouseName ? (_String = String(item === null || item === void 0 ? void 0 : item.returnWarehouseName)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
144
- return name;
151
+ var returnWarehouseName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
152
+ return returnWarehouseName;
145
153
  });
146
154
  };
147
155
  }
148
156
  }, {
149
157
  searchDefaultConditions: SYMBOL.like,
150
158
  type: item.type,
151
- id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.returnWarehouseId),
159
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.returnWarehouseId),
152
160
  name: "".concat(_this.name, "-\u7F16\u7801"),
153
161
  filterComponentType: "Input",
154
162
  filterFn: function filterFn(value) {
155
163
  return function (i) {
156
- var _ref2, _typeMap$_this$type11;
157
- return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.key) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
164
+ var _ref2, _typeMap$_this$type10;
165
+ 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) {
158
166
  var _String2;
159
167
  var id = item !== null && item !== void 0 && item.returnWarehouseId ? (_String2 = String(item === null || item === void 0 ? void 0 : item.returnWarehouseId)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
160
168
  return id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.2.44-beta.82",
3
+ "version": "2.2.44-beta.83",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "f132d919770a3cd98eebf67c7ddc7915b125043a",
44
+ "gitHead": "3f91ff39cbb5445649f0459097cac1d468ad3fcc",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }