@kmkf-fe-packages/services-components 0.7.3-alpha.7 → 0.7.3-alpha.9

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.
@@ -61,7 +61,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
61
61
  return {
62
62
  searchDefaultConditions: SYMBOL.between,
63
63
  type: item.type,
64
- id: item.id,
64
+ id: "".concat(item.id, "_actualPayment"),
65
65
  // 过滤组件id
66
66
  name: item.name,
67
67
  // 过滤组件名称
@@ -31,7 +31,6 @@ declare class Address implements ComponentInterface {
31
31
  type: string;
32
32
  id: string;
33
33
  name: string;
34
- filterKey: string;
35
34
  filterComponentType: "Cascader";
36
35
  props: {
37
36
  options: any;
@@ -89,11 +89,10 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
89
89
  return {
90
90
  searchDefaultConditions: SYMBOL.eq,
91
91
  type: item.type,
92
- id: item.id,
92
+ id: "".concat(item.id, "_basicDistrict"),
93
93
  // 过滤组件id
94
94
  name: item.name,
95
95
  // 过滤组件名称
96
- filterKey: "".concat(item.id, "_basicDistrict"),
97
96
  filterComponentType: 'Cascader',
98
97
  props: {
99
98
  options: _this.addressDateInstance.addressOptions || [],
@@ -23,7 +23,7 @@ declare class BasicCascader implements ComponentInterface {
23
23
  renderExport: (value: any, record: Record) => string;
24
24
  editRender: () => React.JSX.Element;
25
25
  filterConfig: (item: ColumnConfig) => {
26
- searchDefaultConditions: "in";
26
+ searchDefaultConditions: "eq";
27
27
  type: string;
28
28
  id: string;
29
29
  name: string;
@@ -89,9 +89,9 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
89
89
  _defineProperty(this, "filterConfig", function (item) {
90
90
  var _item$config;
91
91
  return {
92
- searchDefaultConditions: SYMBOL.in,
92
+ searchDefaultConditions: SYMBOL.eq,
93
93
  type: item.type,
94
- id: item.id,
94
+ id: "".concat(item.id, "_multSelect"),
95
95
  // 过滤组件id
96
96
  name: item.name,
97
97
  // 过滤组件名称
@@ -89,7 +89,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
89
89
  return {
90
90
  searchDefaultConditions: SYMBOL.in,
91
91
  type: item.type,
92
- id: item.id,
92
+ id: "".concat(item.id, "_checkbox"),
93
93
  // 过滤组件id
94
94
  name: item.name,
95
95
  // 过滤组件名称
@@ -85,7 +85,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
85
85
  return {
86
86
  searchDefaultConditions: SYMBOL.between,
87
87
  type: item.type,
88
- id: item.id,
88
+ id: "".concat(item.id, "_dateTime"),
89
89
  // 过滤组件id
90
90
  name: item.name,
91
91
  // 过滤组件名称
@@ -77,7 +77,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
77
77
  return {
78
78
  searchDefaultConditions: SYMBOL.like,
79
79
  type: item.type,
80
- id: item.id,
80
+ id: "".concat(item.id, "_itemList"),
81
81
  // 过滤组件id
82
82
  name: item.name,
83
83
  // 过滤组件名称
@@ -78,7 +78,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
78
78
  return {
79
79
  searchDefaultConditions: SYMBOL.like,
80
80
  type: item.type,
81
- id: item.id,
81
+ id: "".concat(item.id, "_itemList"),
82
82
  // 过滤组件id
83
83
  name: item.name,
84
84
  // 过滤组件名称
@@ -58,7 +58,7 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
58
58
  return {
59
59
  searchDefaultConditions: SYMBOL.in,
60
60
  type: item.type,
61
- id: item.id,
61
+ id: "".concat(item.id, "_tradeId"),
62
62
  // 过滤组件id
63
63
  name: item.name,
64
64
  // 过滤组件名称
@@ -62,7 +62,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
62
62
  return {
63
63
  searchDefaultConditions: SYMBOL.like,
64
64
  type: item.type,
65
- id: item.id,
65
+ id: "".concat(item.id, "_input"),
66
66
  // 过滤组件id
67
67
  name: item.name,
68
68
  // 过滤组件名称
@@ -70,7 +70,7 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
70
70
  return {
71
71
  searchDefaultConditions: SYMBOL.in,
72
72
  type: item.type,
73
- id: item.id,
73
+ id: "".concat(item.id, "_basicMultSelect"),
74
74
  // 过滤组件id
75
75
  name: item.name,
76
76
  // 过滤组件名称
@@ -72,7 +72,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
72
72
  return {
73
73
  searchDefaultConditions: SYMBOL.in,
74
74
  type: item.type,
75
- id: item.id,
75
+ id: "".concat(item.id, "_radio"),
76
76
  // 过滤组件id
77
77
  name: item.name,
78
78
  // 过滤组件名称
@@ -72,7 +72,7 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
72
72
  return {
73
73
  searchDefaultConditions: SYMBOL.eq,
74
74
  type: item.type,
75
- id: item.id,
75
+ id: "".concat(item.id, "_receiveMobile"),
76
76
  // 过滤组件id
77
77
  name: item.name,
78
78
  // 过滤组件名称
@@ -69,7 +69,7 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
69
69
  return {
70
70
  searchDefaultConditions: SYMBOL.eq,
71
71
  type: item.type,
72
- id: item.id,
72
+ id: "".concat(item.id, "_receiveName"),
73
73
  // 过滤组件id
74
74
  name: item.name,
75
75
  // 过滤组件名称
@@ -88,7 +88,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
88
88
  return {
89
89
  searchDefaultConditions: SYMBOL.like,
90
90
  type: item.type,
91
- id: item.id,
91
+ id: "".concat(item.id, "_remark"),
92
92
  // 过滤组件id
93
93
  name: item.name,
94
94
  // 过滤组件名称
@@ -63,7 +63,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
63
63
  return {
64
64
  searchDefaultConditions: SYMBOL.in,
65
65
  type: item.type,
66
- id: item.id,
66
+ id: "".concat(item.id, "_select"),
67
67
  // 过滤组件id
68
68
  name: item.name,
69
69
  // 过滤组件名称
@@ -27,6 +27,7 @@ declare class ShopInput implements ComponentInterface {
27
27
  mode: string;
28
28
  };
29
29
  filterFn: (value: string) => (i: Record) => boolean | undefined;
30
+ formatFilterValue: (shopList: Array<string>) => any[];
30
31
  };
31
32
  }
32
33
  export default ShopInput;
@@ -68,6 +68,15 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
68
68
  return item.shopName;
69
69
  })) === null || _this$effects2$shopLi3 === void 0 ? void 0 : _this$effects2$shopLi3.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
70
70
  };
71
+ },
72
+ formatFilterValue: function formatFilterValue(shopList) {
73
+ return shopList === null || shopList === void 0 ? void 0 : shopList.map(function (shopId) {
74
+ var _ref, _ref$find, _this$effects3;
75
+ var shopUniqueKey = (_ref = (_this === null || _this === void 0 ? void 0 : (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList) || []) === null || _ref === void 0 ? void 0 : (_ref$find = _ref.find(function (item) {
76
+ return item.shopId === shopId;
77
+ })) === null || _ref$find === void 0 ? void 0 : _ref$find.uniqueKey;
78
+ return shopUniqueKey !== null && shopUniqueKey !== void 0 ? shopUniqueKey : shopId;
79
+ });
71
80
  }
72
81
  };
73
82
  });
@@ -61,7 +61,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
61
61
  return {
62
62
  searchDefaultConditions: SYMBOL.like,
63
63
  type: item.type,
64
- id: item.id,
64
+ id: "".concat(item.id, "_shopName"),
65
65
  // 过滤组件id
66
66
  name: item.name,
67
67
  // 过滤组件名称
@@ -62,7 +62,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
62
62
  return {
63
63
  searchDefaultConditions: SYMBOL.in,
64
64
  type: item.type,
65
- id: item.id,
65
+ id: "".concat(item.id, "_systemOrderNo"),
66
66
  // 过滤组件id
67
67
  name: item.name,
68
68
  // 过滤组件名称
@@ -61,7 +61,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
61
61
  return {
62
62
  searchDefaultConditions: SYMBOL.like,
63
63
  type: item.type,
64
- id: item.id,
64
+ id: "".concat(item.id, "_textarea"),
65
65
  // 过滤组件id
66
66
  name: item.name,
67
67
  // 过滤组件名称
@@ -80,7 +80,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
80
80
  return {
81
81
  searchDefaultConditions: SYMBOL.like,
82
82
  type: item.type,
83
- id: item.id,
83
+ id: "".concat(item.id, "_itemList"),
84
84
  // 过滤组件id
85
85
  name: item.name,
86
86
  // 过滤组件名称
@@ -92,17 +92,17 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
92
92
  }
93
93
  });
94
94
  _defineProperty(this, "filterConfig", function (item) {
95
+ var key = _this.getKeyByComponentType(item.type);
95
96
  return {
96
97
  searchDefaultConditions: SYMBOL.between,
97
98
  type: item.type,
98
- id: item.id,
99
+ id: "".concat(item.id, "_").concat(key),
99
100
  // 过滤组件id
100
101
  name: item.name,
101
102
  // 过滤组件名称
102
103
  filterComponentType: 'Date',
103
104
  filterFn: function filterFn(value) {
104
105
  return function (i) {
105
- var key = _this.getKeyByComponentType(item.type);
106
106
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
107
107
  return _filterFn.filterDateFn(value, recordDateTime);
108
108
  };
@@ -75,7 +75,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
75
75
  return {
76
76
  searchDefaultConditions: SYMBOL.in,
77
77
  type: item.type,
78
- id: item.id,
78
+ id: "".concat(item.id, "_tradeId"),
79
79
  // 过滤组件id
80
80
  name: item.name,
81
81
  // 过滤组件名称
@@ -16,7 +16,6 @@ export declare type FilterConfigType = {
16
16
  props?: Record;
17
17
  filterFn?: (p: any) => (r: Record) => unknown;
18
18
  formatFilterValue?: (p: any) => any;
19
- filterKey?: string;
20
19
  };
21
20
  export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate";
22
21
  export interface ComponentInterface {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.3-alpha.7",
3
+ "version": "0.7.3-alpha.9",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "e8cf9f0eecbcdcfcb23cc53d7af2b2fd3ff6c8be"
43
+ "gitHead": "2f2867dc713f228fc45cb182d8b36702deba1a0c"
44
44
  }