@kmkf-fe-packages/services-components 0.21.6-alpha.4 → 0.21.6-alpha.6

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 (30) hide show
  1. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +7 -6
  2. package/dist/esm/components/BS/BsSystemOrder/index.js +22 -19
  3. package/dist/esm/components/BS/DeliveryNo/index.d.ts +6 -5
  4. package/dist/esm/components/BS/DeliveryNo/index.js +15 -12
  5. package/dist/esm/components/CommonMultiStatus/index.d.ts +6 -5
  6. package/dist/esm/components/CommonMultiStatus/index.js +58 -51
  7. package/dist/esm/components/CommonSystemOrder/index.d.ts +6 -5
  8. package/dist/esm/components/CommonSystemOrder/index.js +29 -26
  9. package/dist/esm/components/Input/index.d.ts +3 -2
  10. package/dist/esm/components/Input/index.js +10 -3
  11. package/dist/esm/components/JST/JstLogistics/index.d.ts +11 -0
  12. package/dist/esm/components/JST/JstLogistics/index.js +18 -4
  13. package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +12 -2
  14. package/dist/esm/components/LogisticsMoreTrajectory/index.js +7 -14
  15. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.d.ts +7 -7
  16. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.js +18 -37
  17. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.d.ts +8 -8
  18. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.js +16 -29
  19. package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.d.ts +6 -6
  20. package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.js +15 -30
  21. package/dist/esm/components/Payment/index.d.ts +12 -12
  22. package/dist/esm/components/Payment/index.js +11 -12
  23. package/dist/esm/components/PostIng/index.js +1 -1
  24. package/dist/esm/components/TradeId/index.d.ts +1 -1
  25. package/dist/esm/components/TradeId/index.js +2 -2
  26. package/dist/esm/constant.d.ts +1 -0
  27. package/dist/esm/constant.js +3 -0
  28. package/dist/esm/factory.d.ts +1 -1
  29. package/dist/esm/type.d.ts +14 -14
  30. package/package.json +4 -4
@@ -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 BsSystemOrder 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
- dataType: ComponentInterface["dataType"];
14
+ dataType: ComponentInterface['dataType'];
15
15
  children: ComponentInterface[];
16
16
  constructor(options: PickOption);
17
17
  renderClient: (record: any) => React.JSX.Element | null;
@@ -21,11 +21,12 @@ declare class BsSystemOrder implements ComponentInterface {
21
21
  renderExport: () => null;
22
22
  editRender: (p: any) => React.JSX.Element;
23
23
  filterConfig: (item: ColumnConfig) => {
24
- searchDefaultConditions: "like";
24
+ searchDefaultConditions: "in";
25
25
  type: string;
26
26
  id: string;
27
27
  name: string;
28
28
  filterComponentType: "Input";
29
+ formatFilterValue: (input: string) => string | string[];
29
30
  }[];
30
31
  }
31
32
  export default BsSystemOrder;
@@ -8,28 +8,28 @@ 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";
11
+ import React from 'react';
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
15
- import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
14
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
18
- import { SYMBOL } from "../../../constant";
18
+ import { SYMBOL, batchInput } from "../../../constant";
19
19
  var typeMap = {
20
20
  BS_SYSTEM_ORDER: {
21
- key: "bsSystemShowOrder",
22
- name: "bs",
23
- typeName: "单据类型",
24
- tagName: "标签",
25
- selectId: "bsSystemSelectIds"
21
+ key: 'bsSystemShowOrder',
22
+ name: 'bs',
23
+ typeName: '单据类型',
24
+ tagName: '标签',
25
+ selectId: 'bsSystemSelectIds'
26
26
  },
27
27
  WLN_SYSTEM_ORDER: {
28
- key: "wlnSystemShowOrder",
29
- name: "万里牛",
30
- typeName: "订单类型",
31
- tagName: "标记",
32
- selectId: "wlnSystemSelectIds"
28
+ key: 'wlnSystemShowOrder',
29
+ name: '万里牛',
30
+ typeName: '订单类型',
31
+ tagName: '标记',
32
+ selectId: 'wlnSystemSelectIds'
33
33
  }
34
34
  };
35
35
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
@@ -92,13 +92,16 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
92
92
  });
93
93
  _defineProperty(this, "filterConfig", function (item) {
94
94
  return [{
95
- searchDefaultConditions: SYMBOL.like,
95
+ searchDefaultConditions: SYMBOL.in,
96
96
  type: item.type,
97
- id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
97
+ id: "".concat(item.id, "_").concat(typeMap[_this.type].selectId),
98
98
  // 过滤组件id
99
99
  name: item.name,
100
100
  // 过滤组件名称
101
- filterComponentType: "Input"
101
+ filterComponentType: 'Input',
102
+ formatFilterValue: function formatFilterValue(input) {
103
+ return batchInput(input);
104
+ }
102
105
  }];
103
106
  });
104
107
  this.name = options.name;
@@ -114,7 +117,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
114
117
  id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billType"),
115
118
  width: 150
116
119
  })), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
117
- name: "系统订单号",
120
+ name: '系统订单号',
118
121
  id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billNo"),
119
122
  width: 150
120
123
  })), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
@@ -133,6 +136,6 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
133
136
  return Promise.resolve();
134
137
  }
135
138
  }] : [];
136
- this.dataType = "object";
139
+ this.dataType = 'object';
137
140
  });
138
141
  export default BsSystemOrder;
@@ -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 DeliveryNo 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
  constructor(options: PickOption);
17
17
  renderClient: (record: any) => React.JSX.Element | null;
18
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -21,12 +21,13 @@ declare class DeliveryNo implements ComponentInterface {
21
21
  renderExport: (value: any, record: any) => any;
22
22
  editRender: (p: any) => React.JSX.Element;
23
23
  filterConfig: (item: ColumnConfig) => {
24
- searchDefaultConditions: "like";
24
+ searchDefaultConditions: "in";
25
25
  type: string;
26
26
  id: string;
27
27
  name: string;
28
28
  filterComponentType: "Input";
29
29
  filterFn: (value: string) => (i: Record) => boolean;
30
+ formatFilterValue: (input: string) => string | string[];
30
31
  }[];
31
32
  }
32
33
  export default DeliveryNo;
@@ -6,18 +6,18 @@ 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 some from "lodash/some";
9
+ import React from 'react';
10
+ import some from 'lodash/some';
11
11
  import GetFormItem from "../../GetFormItem";
12
12
  import { CommonOrderContent } from "../../Common";
13
- import { CommonSystemOrder } from "@kmkf-fe-packages/basic-components";
13
+ import { CommonSystemOrder } from '@kmkf-fe-packages/basic-components';
14
14
  import ItemView from "../../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
- import { SYMBOL } from "../../../constant";
15
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { SYMBOL, batchInput } from "../../../constant";
17
17
  var typeMap = {
18
18
  BS_DELIVERY_NO: {
19
- key: "deliveryNoList",
20
- code: "deliveryNoIds"
19
+ key: 'deliveryNoList',
20
+ code: 'deliveryNoIds'
21
21
  }
22
22
  };
23
23
  var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
@@ -79,7 +79,7 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
79
79
  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)];
80
80
  return (list || []).map(function (item) {
81
81
  return item === null || item === void 0 ? void 0 : item.deliveryNo;
82
- }).join(",");
82
+ }).join(',');
83
83
  });
84
84
  _defineProperty(this, "editRender", function (p) {
85
85
  var _this$componentConfig, _this$componentConfig2;
@@ -97,16 +97,19 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
97
97
  _defineProperty(this, "filterConfig", function (item) {
98
98
  var _typeMap$_this$type5;
99
99
  return [{
100
- searchDefaultConditions: SYMBOL.like,
100
+ searchDefaultConditions: SYMBOL.in,
101
101
  type: item.type,
102
102
  id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.code),
103
103
  name: "".concat(_this.name),
104
- filterComponentType: "Input",
104
+ filterComponentType: 'Input',
105
105
  filterFn: function filterFn(value) {
106
106
  return function (i) {
107
107
  var _typeMap$_this$type6;
108
108
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.code), value);
109
109
  };
110
+ },
111
+ formatFilterValue: function formatFilterValue(input) {
112
+ return batchInput(input);
110
113
  }
111
114
  }];
112
115
  });
@@ -119,7 +122,7 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
119
122
  this.isCombinationComponent = false;
120
123
  this.canSort = false;
121
124
  this.children = [];
122
- this.dataType = "object";
125
+ this.dataType = 'object';
123
126
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
124
127
  required: true,
125
128
  validator: function validator(_, value) {
@@ -132,6 +135,6 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
132
135
  return Promise.resolve();
133
136
  }
134
137
  }] : [];
135
- this.align = "left";
138
+ this.align = 'left';
136
139
  });
137
140
  export default DeliveryNo;
@@ -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
  constructor(options: PickOption);
17
17
  renderClient: (record: any) => React.JSX.Element | null;
18
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -25,7 +25,7 @@ declare class CommonMultiStatus implements ComponentInterface {
25
25
  type: string;
26
26
  id: string;
27
27
  name: string;
28
- filterComponentType: "MultipleSelect" | "Input";
28
+ filterComponentType: "MultipleSelect" | "SelectInput";
29
29
  props: {
30
30
  options: any[] | undefined;
31
31
  fieldNames: {
@@ -34,6 +34,7 @@ declare class CommonMultiStatus implements ComponentInterface {
34
34
  };
35
35
  };
36
36
  filterFn: (value: string) => (i: Record) => boolean;
37
+ formatFilterValue: ((value: any) => any) | null;
37
38
  };
38
39
  }
39
40
  export default CommonMultiStatus;
@@ -8,72 +8,72 @@ 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
19
  var typeMap = {
20
20
  RETURN_GOODS_STATUS: {
21
21
  options: [{
22
- value: "成功",
23
- label: "成功",
24
- color: "#52c41a"
22
+ value: '成功',
23
+ label: '成功',
24
+ color: '#52c41a'
25
25
  }, {
26
- value: "失败",
27
- label: "失败",
28
- color: "#ff4d4f"
26
+ value: '失败',
27
+ label: '失败',
28
+ color: '#ff4d4f'
29
29
  }],
30
- key: "returnGoodsStatusList",
31
- code: "returnGoodsStatusValue",
32
- name: "退货状态",
30
+ key: 'returnGoodsStatusList',
31
+ code: 'returnGoodsStatusValue',
32
+ name: '退货状态',
33
33
  type: 1,
34
- valueKey: "status",
35
- idKey: "systemOrderId",
36
- failValue: "失败"
34
+ valueKey: 'status',
35
+ idKey: 'systemOrderId',
36
+ failValue: '失败'
37
37
  },
38
38
  EXCHANGE_STATUS: {
39
39
  options: [{
40
- value: "成功",
41
- label: "成功",
42
- color: "#52c41a"
40
+ value: '成功',
41
+ label: '成功',
42
+ color: '#52c41a'
43
43
  }, {
44
- value: "失败",
45
- label: "失败",
46
- color: "#ff4d4f"
44
+ value: '失败',
45
+ label: '失败',
46
+ color: '#ff4d4f'
47
47
  }],
48
- key: "exchangeReason",
49
- code: "exchangeStatusValue",
50
- name: "退货状态",
48
+ key: 'exchangeReason',
49
+ code: 'exchangeStatusValue',
50
+ name: '换货状态',
51
51
  type: 1,
52
- valueKey: "status",
53
- idKey: "systemOrderId",
54
- failValue: "失败"
52
+ valueKey: 'status',
53
+ idKey: 'systemOrderId',
54
+ failValue: '失败'
55
55
  },
56
56
  WAREHOUSING_STATUS: {
57
57
  options: [{
58
- value: "2",
59
- label: "已入库",
60
- color: "#52c41a"
58
+ value: '2',
59
+ label: '已入库',
60
+ color: '#52c41a'
61
61
  }, {
62
- value: "1",
63
- label: "部分入库",
64
- color: "#e7780f"
62
+ value: '1',
63
+ label: '部分入库',
64
+ color: '#e7780f'
65
65
  }, {
66
- value: "0",
67
- label: "未入库",
68
- color: "#ff4d4f"
66
+ value: '0',
67
+ label: '未入库',
68
+ color: '#ff4d4f'
69
69
  }],
70
- key: "inStockStatusItemList",
71
- code: "inStockStatusList",
72
- name: "退货入库状态",
70
+ key: 'inStockStatusItemList',
71
+ code: 'inStockStatusList',
72
+ name: '商品入库状态(勿填)',
73
73
  type: 2,
74
- valueKey: "status",
75
- idKey: "systemOrderId",
76
- failValue: "失败"
74
+ valueKey: 'status',
75
+ idKey: 'systemOrderId',
76
+ failValue: '失败'
77
77
  }
78
78
  };
79
79
  var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
@@ -144,8 +144,8 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
144
144
  var _typeMap$_this$type14;
145
145
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
146
146
  });
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(",");
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(',');
149
149
  });
150
150
  _defineProperty(this, "editRender", function (p) {
151
151
  var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type17;
@@ -164,16 +164,16 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
164
164
  _defineProperty(this, "filterConfig", function (item) {
165
165
  var _typeMap$_this$type18, _item$templateConfig;
166
166
  return {
167
- searchDefaultConditions: _this.type === "WAREHOUSING_STATUS" ? SYMBOL.in : SYMBOL.like,
167
+ searchDefaultConditions: _this.type === 'WAREHOUSING_STATUS' ? SYMBOL.in : SYMBOL.like,
168
168
  type: item.type,
169
169
  id: "".concat(item.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.code),
170
170
  name: "".concat(_this.name),
171
- filterComponentType: _this.type === "WAREHOUSING_STATUS" ? "MultipleSelect" : "Input",
171
+ filterComponentType: _this.type === 'WAREHOUSING_STATUS' ? 'MultipleSelect' : 'SelectInput',
172
172
  props: {
173
173
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
174
174
  fieldNames: {
175
- label: "label",
176
- value: "value"
175
+ label: 'label',
176
+ value: 'value'
177
177
  }
178
178
  },
179
179
  filterFn: function filterFn(value) {
@@ -181,6 +181,13 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
181
181
  var _typeMap$_this$type19;
182
182
  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);
183
183
  };
184
+ },
185
+ formatFilterValue: _this.type === 'WAREHOUSING_STATUS' ? null : function (value) {
186
+ if (value.type === 'keywords') {
187
+ return value.keywords;
188
+ } else {
189
+ return value;
190
+ }
184
191
  }
185
192
  };
186
193
  });
@@ -195,7 +202,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
195
202
  this.isCombinationComponent = false;
196
203
  this.canSort = false;
197
204
  this.children = [];
198
- this.dataType = "object";
205
+ this.dataType = 'object';
199
206
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
200
207
  required: true,
201
208
  validator: function validator(_, value) {
@@ -210,6 +217,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
210
217
  return Promise.resolve();
211
218
  }
212
219
  }] : [];
213
- this.align = "left";
220
+ this.align = 'left';
214
221
  });
215
222
  export default CommonMultiStatus;
@@ -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 CommonSystemOrder 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
  constructor(options: PickOption);
17
17
  renderClient: (record: any) => React.JSX.Element | null;
18
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -21,12 +21,13 @@ declare class CommonSystemOrder implements ComponentInterface {
21
21
  renderExport: (value: any, record: any) => any;
22
22
  editRender: (p: any) => React.JSX.Element;
23
23
  filterConfig: (item: ColumnConfig) => {
24
- searchDefaultConditions: "like";
24
+ searchDefaultConditions: "in";
25
25
  type: string;
26
26
  id: string;
27
27
  name: string;
28
28
  filterComponentType: "Input";
29
29
  filterFn: (value: string) => (i: Record) => boolean;
30
+ formatFilterValue: (input: string) => string | string[];
30
31
  };
31
32
  }
32
33
  export default CommonSystemOrder;
@@ -6,42 +6,42 @@ 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 some from "lodash/some";
9
+ import React from 'react';
10
+ import some from 'lodash/some';
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import { CommonOrderContent } from "../Common";
13
- import { CommonSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
13
+ import { CommonSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
14
14
  import ItemView from "../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
- import { SYMBOL } from "../../constant";
15
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { SYMBOL, batchInput } from "../../constant";
17
17
  var typeMap = {
18
18
  BS_DELIVERY_NO: {
19
- key: "deliveryNoList",
20
- code: "deliveryNoIds",
21
- name: "出库单",
19
+ key: 'deliveryNoList',
20
+ code: 'deliveryNoIds',
21
+ name: '出库单',
22
22
  type: 1,
23
- valueKey: "deliveryNo"
23
+ valueKey: 'deliveryNo'
24
24
  },
25
25
  RETURN_GOODS_TRADE_ID: {
26
- key: "returnGoodsTradeItemList",
27
- code: "returnGoodsTradeIdList",
28
- name: "退货单id",
26
+ key: 'returnGoodsTradeItemList',
27
+ code: 'returnGoodsTradeIdList',
28
+ name: '退货单id',
29
29
  type: 2,
30
- valueKey: "returnGoodsTradeId"
30
+ valueKey: 'returnGoodsTradeId'
31
31
  },
32
32
  REISSUE_TRADE_ID: {
33
- key: "tradeItemList",
34
- code: "tradeIdList",
35
- name: "补发单id",
33
+ key: 'tradeItemList',
34
+ code: 'tradeIdList',
35
+ name: '补发单id',
36
36
  type: 3,
37
- valueKey: "billNo"
37
+ valueKey: 'billNo'
38
38
  },
39
39
  EXCHANGE_TRADE_ID: {
40
- key: "tradeItemList",
41
- code: "tradeIdList",
42
- name: "换货单id",
40
+ key: 'tradeItemList',
41
+ code: 'tradeIdList',
42
+ name: '换货单id',
43
43
  type: 4,
44
- valueKey: "billNo"
44
+ valueKey: 'billNo'
45
45
  }
46
46
  };
47
47
  var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
@@ -106,7 +106,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
106
106
  return (list || []).map(function (item) {
107
107
  var _typeMap$_this$type8;
108
108
  return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.valueKey];
109
- }).join(",");
109
+ }).join(',');
110
110
  });
111
111
  _defineProperty(this, "editRender", function (p) {
112
112
  var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type9;
@@ -124,16 +124,19 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
124
124
  _defineProperty(this, "filterConfig", function (item) {
125
125
  var _typeMap$_this$type10;
126
126
  return {
127
- searchDefaultConditions: SYMBOL.like,
127
+ searchDefaultConditions: SYMBOL.in,
128
128
  type: item.type,
129
129
  id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code),
130
130
  name: "".concat(_this.name),
131
- filterComponentType: "Input",
131
+ filterComponentType: 'Input',
132
132
  filterFn: function filterFn(value) {
133
133
  return function (i) {
134
134
  var _typeMap$_this$type11;
135
135
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.code), value);
136
136
  };
137
+ },
138
+ formatFilterValue: function formatFilterValue(input) {
139
+ return batchInput(input);
137
140
  }
138
141
  };
139
142
  });
@@ -146,7 +149,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
146
149
  this.isCombinationComponent = false;
147
150
  this.canSort = false;
148
151
  this.children = [];
149
- this.dataType = "object";
152
+ this.dataType = 'object';
150
153
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
151
154
  required: true,
152
155
  validator: function validator(_, value) {
@@ -161,6 +164,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
161
164
  return Promise.resolve();
162
165
  }
163
166
  }] : [];
164
- this.align = "left";
167
+ this.align = 'left';
165
168
  });
166
169
  export default CommonSystemOrder;
@@ -22,12 +22,13 @@ declare class BasicInput implements ComponentInterface {
22
22
  renderClient: (record: Record) => React.JSX.Element | null;
23
23
  editRender: (p: any) => React.JSX.Element;
24
24
  filterConfig: (item: ColumnConfig) => {
25
- searchDefaultConditions: "like";
25
+ searchDefaultConditions: "in";
26
26
  type: string;
27
27
  id: string;
28
28
  name: string;
29
- filterComponentType: "Input";
29
+ filterComponentType: "SelectInput";
30
30
  filterFn: (value: string) => (i: Record) => boolean;
31
+ formatFilterValue: (value: any) => any;
31
32
  };
32
33
  }
33
34
  export default BasicInput;