@kmkf-fe-packages/services-components 2.1.10 → 2.1.12

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 (33) hide show
  1. package/dist/esm/components/AfterSalesOrderId/index.d.ts +10 -4
  2. package/dist/esm/components/AfterSalesOrderId/index.js +13 -10
  3. package/dist/esm/components/BS/BsLogistics/index.d.ts +6 -0
  4. package/dist/esm/components/BS/common/expressCode.d.ts +10 -4
  5. package/dist/esm/components/BS/common/expressCode.js +22 -19
  6. package/dist/esm/components/BuyerNick/index.d.ts +17 -7
  7. package/dist/esm/components/BuyerNick/index.js +24 -11
  8. package/dist/esm/components/CommonMultiStatus/index.d.ts +8 -4
  9. package/dist/esm/components/CommonMultiStatus/index.js +79 -78
  10. package/dist/esm/components/Input/index.d.ts +14 -5
  11. package/dist/esm/components/Input/index.js +24 -18
  12. package/dist/esm/components/Picture/index.d.ts +5 -5
  13. package/dist/esm/components/Picture/index.js +19 -19
  14. package/dist/esm/components/PicturePro/PictureUrl.d.ts +4 -4
  15. package/dist/esm/components/PicturePro/PictureUrl.js +7 -7
  16. package/dist/esm/components/ReceiverName/index.d.ts +3 -3
  17. package/dist/esm/components/ReceiverName/index.js +8 -8
  18. package/dist/esm/components/Remark/index.d.ts +16 -6
  19. package/dist/esm/components/Remark/index.js +29 -16
  20. package/dist/esm/components/ShopName/index.d.ts +13 -3
  21. package/dist/esm/components/ShopName/index.js +16 -3
  22. package/dist/esm/components/TextArea/index.d.ts +16 -6
  23. package/dist/esm/components/TextArea/index.js +23 -10
  24. package/dist/esm/constant.d.ts +9 -0
  25. package/dist/esm/constant.js +38 -14
  26. package/dist/esm/factory.d.ts +1 -1
  27. package/dist/esm/type.d.ts +1 -1
  28. package/package.json +4 -4
  29. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  30. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  31. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  32. package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
  33. package/dist/esm/components/Common/dist/index.js +0 -1019
@@ -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 AfterSalesOrderId 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
  workOrderUniqueKey?: string;
17
17
  suffixKey: string;
@@ -28,6 +28,12 @@ declare class AfterSalesOrderId implements ComponentInterface {
28
28
  id: string;
29
29
  name: string;
30
30
  filterComponentType: "SelectInput";
31
+ props: {
32
+ filterOptions: {
33
+ label: string;
34
+ value: string;
35
+ }[];
36
+ };
31
37
  filterFn: (value: string) => (i: Record) => boolean;
32
38
  formatFilterValue: (value: any) => any;
33
39
  };
@@ -6,12 +6,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
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
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
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 { ApaasInput } from "@kmkf-fe-packages/basic-components";
9
+ import React from 'react';
10
+ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
- import { SYMBOL, batchInput } from "../../constant";
13
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { SYMBOL, batchInput, SEARCH_OPTIONS_V2 } from "../../constant";
15
15
  var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(options) {
16
16
  var _this = this;
17
17
  _classCallCheck(this, AfterSalesOrderId);
@@ -31,7 +31,7 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
31
31
  _defineProperty(this, "suffixKey", void 0);
32
32
  _defineProperty(this, "renderPc", function (value, record) {
33
33
  var _record;
34
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record !== void 0 ? _record : "--");
34
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record !== void 0 ? _record : '--');
35
35
  });
36
36
  _defineProperty(this, "renderLog", function (r) {
37
37
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)])) return null;
@@ -42,7 +42,7 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
42
42
  });
43
43
  _defineProperty(this, "renderExport", function (value, record) {
44
44
  var _record2;
45
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record2 !== void 0 ? _record2 : "--";
45
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record2 !== void 0 ? _record2 : '--';
46
46
  });
47
47
  _defineProperty(this, "renderClient", function (record) {
48
48
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -59,7 +59,7 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
59
59
  rules: _this.rules,
60
60
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
61
61
  display: p === null || p === void 0 ? void 0 : p.display,
62
- validateTrigger: ["onBlur", "onChange"],
62
+ validateTrigger: ['onBlur', 'onChange'],
63
63
  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,
64
64
  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 : '',
65
65
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
@@ -75,14 +75,17 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
75
75
  // 过滤组件id
76
76
  name: item.name,
77
77
  // 过滤组件名称
78
- filterComponentType: "SelectInput",
78
+ filterComponentType: 'SelectInput',
79
+ props: {
80
+ filterOptions: SEARCH_OPTIONS_V2
81
+ },
79
82
  filterFn: function filterFn(value) {
80
83
  return function (i) {
81
84
  return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey)).includes(value);
82
85
  };
83
86
  },
84
87
  formatFilterValue: function formatFilterValue(value) {
85
- if (value.type === "keywords") {
88
+ if (value.type === 'in') {
86
89
  return batchInput(value.keywords);
87
90
  } else {
88
91
  return value;
@@ -103,6 +106,6 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
103
106
  this.isCombinationComponent = false;
104
107
  this.canSort = true;
105
108
  this.children = [];
106
- this.dataType = "string";
109
+ this.dataType = 'string';
107
110
  });
108
111
  export default AfterSalesOrderId;
@@ -49,6 +49,12 @@ declare class BsLogistics implements ComponentInterface {
49
49
  id: string;
50
50
  name: string;
51
51
  filterComponentType: "SelectInput";
52
+ props: {
53
+ filterOptions: {
54
+ label: string;
55
+ value: string;
56
+ }[];
57
+ };
52
58
  filterFn: (value: string) => (i: Record) => boolean;
53
59
  formatFilterValue: (value: any) => any;
54
60
  })[];
@@ -1,19 +1,19 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
2
+ import React from 'react';
3
3
  declare class ExpressCode 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
  align: ALignType;
11
11
  width: number;
12
12
  isCombinationComponent: boolean;
13
13
  formField: string;
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
- dataType: ComponentInterface["dataType"];
16
+ dataType: ComponentInterface['dataType'];
17
17
  parentName: string;
18
18
  constructor(options: PickOption);
19
19
  renderClient: () => null;
@@ -28,6 +28,12 @@ declare class ExpressCode implements ComponentInterface {
28
28
  id: string;
29
29
  name: string;
30
30
  filterComponentType: "SelectInput";
31
+ props: {
32
+ filterOptions: {
33
+ label: string;
34
+ value: string;
35
+ }[];
36
+ };
31
37
  filterFn: (value: string) => (i: Record) => boolean;
32
38
  formatFilterValue: (value: any) => any;
33
39
  };
@@ -11,31 +11,31 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  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; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  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); }
14
- import React from "react";
14
+ import React from 'react';
15
15
  import { BsExpressRender } from "../../Common";
16
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
- import { SYMBOL, batchInput } from "../../../constant";
16
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { SEARCH_OPTIONS_V2, SYMBOL, batchInput } from "../../../constant";
18
18
  var typeMap = {
19
19
  BS_LOGISTICS: {
20
- key: "bsLogisticsItem"
20
+ key: 'bsLogisticsItem'
21
21
  },
22
22
  BS_E3_LOGISTICS: {
23
- key: "bsE3LogisticsItem"
23
+ key: 'bsE3LogisticsItem'
24
24
  },
25
25
  WLN_LOGISTICS: {
26
- key: "wlnLogisticsItem"
26
+ key: 'wlnLogisticsItem'
27
27
  },
28
28
  WDT_LOGISTICS: {
29
- key: "wdtLogisticsItem"
29
+ key: 'wdtLogisticsItem'
30
30
  },
31
31
  JST_LOGISTICS: {
32
- key: "jstLogisticsItem"
32
+ key: 'jstLogisticsItem'
33
33
  },
34
34
  KM_LOGISTICS: {
35
- key: "kmLogisticsItem"
35
+ key: 'kmLogisticsItem'
36
36
  },
37
37
  GY_LOGISTICS: {
38
- key: "gyLogisticsItem"
38
+ key: 'gyLogisticsItem'
39
39
  }
40
40
  };
41
41
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
@@ -60,7 +60,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
60
60
  return null;
61
61
  });
62
62
  _defineProperty(this, "renderPc", function (value, record) {
63
- var _this$id$split = _this.id.split("_"),
63
+ var _this$id$split = _this.id.split('_'),
64
64
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
65
65
  key = _this$id$split2[0],
66
66
  parentKey = _this$id$split2[1],
@@ -70,7 +70,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
70
70
  }
71
71
  return /*#__PURE__*/React.createElement(BsExpressRender, {
72
72
  list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)],
73
- showField: "code"
73
+ showField: 'code'
74
74
  });
75
75
  });
76
76
  _defineProperty(this, "renderLog", function (r) {
@@ -82,7 +82,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
82
82
  });
83
83
  _defineProperty(this, "renderExport", function (value, record) {
84
84
  var _record;
85
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
85
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
86
86
  });
87
87
  _defineProperty(this, "editRender", function () {
88
88
  return null;
@@ -94,14 +94,17 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
94
94
  type: item.type,
95
95
  id: "".concat(item.id, "_").concat(subKey),
96
96
  name: "".concat(_this.parentName, "-\u7269\u6D41\u5355\u53F7"),
97
- filterComponentType: "SelectInput",
97
+ filterComponentType: 'SelectInput',
98
+ props: {
99
+ filterOptions: SEARCH_OPTIONS_V2
100
+ },
98
101
  filterFn: function filterFn(value) {
99
102
  return function (i) {
100
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
103
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
101
104
  };
102
105
  },
103
106
  formatFilterValue: function formatFilterValue(value) {
104
- if (value.type === "keywords") {
107
+ if (value.type === 'in') {
105
108
  return batchInput(value.keywords);
106
109
  } else {
107
110
  return value;
@@ -120,14 +123,14 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
120
123
  if (/^[0-9a-zA-Z]*$/.test(value)) {
121
124
  return Promise.resolve();
122
125
  }
123
- return Promise.reject(new Error("只能输入数字和字母"));
126
+ return Promise.reject(new Error('只能输入数字和字母'));
124
127
  }
125
128
  }] : [];
126
- this.align = "left";
129
+ this.align = 'left';
127
130
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 150;
128
131
  this.isCombinationComponent = false;
129
132
  this.canSort = false;
130
- this.dataType = "string";
133
+ this.dataType = 'string';
131
134
  this.children = [];
132
135
  this.parentName = options === null || options === void 0 ? void 0 : options.parentName;
133
136
  });
@@ -1,18 +1,18 @@
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 EBuyerNick 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"];
10
- effects: ComponentInterface["effects"];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
+ effects: ComponentInterface['effects'];
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface["dataType"];
15
+ dataType: ComponentInterface['dataType'];
16
16
  constructor(options: PickOption);
17
17
  renderTaoBaoWangWang: (record: any, params: any) => React.JSX.Element;
18
18
  renderClient: (record: any, params: any) => React.JSX.Element | null;
@@ -25,12 +25,22 @@ declare class EBuyerNick implements ComponentInterface {
25
25
  renderExport: (value: any, record: any) => any;
26
26
  editRender: (p: any) => React.JSX.Element;
27
27
  filterConfig: (item: ColumnConfig) => {
28
- searchDefaultConditions: "like";
28
+ searchDefaultConditions: {
29
+ in: "in";
30
+ anylike: "anylike";
31
+ };
29
32
  type: string;
30
33
  id: string;
31
34
  name: string;
32
- filterComponentType: "Input";
35
+ filterComponentType: "SelectInput";
36
+ props: {
37
+ filterOptions: {
38
+ label: string;
39
+ value: string;
40
+ }[];
41
+ };
33
42
  filterFn: (value: string) => (i: Record) => boolean;
43
+ formatFilterValue: (value: any) => any;
34
44
  };
35
45
  }
36
46
  export default EBuyerNick;
@@ -6,13 +6,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
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
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
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 { BuyerNick } from "@kmkf-fe-packages/basic-components";
9
+ import React from 'react';
10
+ import { BuyerNick } from '@kmkf-fe-packages/basic-components';
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
13
  import PlatBuyer from "../../commonComponents/PlatBuyer";
14
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
- import { SYMBOL } from "../../constant";
14
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { SYMBOL, batchInput, SEARCH_OPTIONS } from "../../constant";
16
16
  import wangImg from "../../commonComponents/Wangwang/img/wang.gif";
17
17
  var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
18
18
  var _this = this,
@@ -35,7 +35,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
35
35
  return /*#__PURE__*/React.createElement("span", {
36
36
  onClick: function onClick() {
37
37
  var _record$_this$id, _record$_this$id2;
38
- typeof params.openWangWang === "function" && params.openWangWang(record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.buyerNick, record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.buyerOpenUid);
38
+ typeof params.openWangWang === 'function' && params.openWangWang(record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.buyerNick, record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.buyerOpenUid);
39
39
  }
40
40
  }, /*#__PURE__*/React.createElement("img", {
41
41
  alt: "\u8BF7\u70B9\u51FB\u76F4\u63A5\u8BBF\u95EE",
@@ -49,7 +49,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
49
49
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
50
50
  id: _this.id,
51
51
  label: _this.name,
52
- value: (params === null || params === void 0 ? void 0 : params.platform) === "tb" ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.buyerNick
52
+ value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.buyerNick
53
53
  }) : null;
54
54
  });
55
55
  _defineProperty(this, "renderPc", function (value, record) {
@@ -103,17 +103,30 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
103
103
  });
104
104
  _defineProperty(this, "filterConfig", function (item) {
105
105
  return {
106
- searchDefaultConditions: SYMBOL.like,
106
+ searchDefaultConditions: {
107
+ in: SYMBOL.in,
108
+ anylike: SYMBOL.anylike
109
+ },
107
110
  type: item.type,
108
111
  id: "".concat(item.id, "_buyerNick"),
109
112
  // 过滤组件id
110
113
  name: item.name,
111
114
  // 过滤组件名称
112
- filterComponentType: "Input",
115
+ filterComponentType: 'SelectInput',
116
+ props: {
117
+ filterOptions: SEARCH_OPTIONS
118
+ },
113
119
  filterFn: function filterFn(value) {
114
120
  return function (i) {
115
- return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "buyerNick")).includes(value);
121
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'buyerNick')).includes(value);
116
122
  };
123
+ },
124
+ formatFilterValue: function formatFilterValue(value) {
125
+ if (['in', 'anylike'].includes(value.type)) {
126
+ return batchInput(value.keywords);
127
+ } else {
128
+ return value;
129
+ }
117
130
  }
118
131
  };
119
132
  });
@@ -125,13 +138,13 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
125
138
  this.isCombinationComponent = false;
126
139
  this.canSort = true;
127
140
  this.children = [];
128
- this.dataType = "string";
141
+ this.dataType = 'string';
129
142
  this.componentConfig = options.componentConfig;
130
143
  this.effects = options.effects;
131
144
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
132
145
  validator: function validator(_, value) {
133
146
  if (!(value !== null && value !== void 0 && value.buyerNick)) {
134
- return Promise.reject(new Error("请输入买家昵称"));
147
+ return Promise.reject(new Error('请输入买家昵称'));
135
148
  }
136
149
  return Promise.resolve();
137
150
  }
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class CommonMultiStatus 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
  align: ALignType;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface["dataType"];
15
+ dataType: ComponentInterface['dataType'];
16
16
  isSingleValue: boolean;
17
17
  constructor(options: PickOption);
18
18
  renderClient: (record: any) => React.JSX.Element | null;
@@ -33,6 +33,10 @@ declare class CommonMultiStatus implements ComponentInterface {
33
33
  label: string;
34
34
  value: string;
35
35
  };
36
+ filterOptions: {
37
+ label: string;
38
+ value: string;
39
+ }[];
36
40
  };
37
41
  filterFn: (value: string) => (i: Record) => boolean;
38
42
  formatFilterValue: ((value: any) => any) | null;