@kmkf-fe-packages/services-components 0.7.3-alpha.6 → 0.7.3-alpha.8

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 (70) hide show
  1. package/dist/esm/components/Address/index.d.ts +2 -0
  2. package/dist/esm/components/Address/index.js +6 -0
  3. package/dist/esm/components/AlipayAccount/index.d.ts +1 -1
  4. package/dist/esm/components/AlipayAccount/index.js +1 -1
  5. package/dist/esm/components/AlipayName/index.d.ts +1 -1
  6. package/dist/esm/components/AlipayName/index.js +1 -1
  7. package/dist/esm/components/BuyerNick/index.d.ts +1 -1
  8. package/dist/esm/components/BuyerNick/index.js +1 -1
  9. package/dist/esm/components/Cascader/index.d.ts +2 -1
  10. package/dist/esm/components/Cascader/index.js +6 -1
  11. package/dist/esm/components/CommonDataTime/index.d.ts +1 -0
  12. package/dist/esm/components/CommonDataTime/index.js +7 -0
  13. package/dist/esm/components/DataTime/index.d.ts +1 -0
  14. package/dist/esm/components/DataTime/index.js +7 -0
  15. package/dist/esm/components/EItemEnCode/index.d.ts +1 -1
  16. package/dist/esm/components/EItemEnCode/index.js +1 -1
  17. package/dist/esm/components/EItemId/index.d.ts +1 -1
  18. package/dist/esm/components/EItemId/index.js +1 -1
  19. package/dist/esm/components/ErpTradeId/index.d.ts +1 -0
  20. package/dist/esm/components/ErpTradeId/index.js +3 -0
  21. package/dist/esm/components/Input/index.d.ts +1 -1
  22. package/dist/esm/components/Input/index.js +1 -1
  23. package/dist/esm/components/JstItemSelect/index.d.ts +1 -1
  24. package/dist/esm/components/JstItemSelect/index.js +2 -2
  25. package/dist/esm/components/JstLogistics/index.d.ts +1 -1
  26. package/dist/esm/components/JstLogistics/index.js +1 -1
  27. package/dist/esm/components/JstSendGood/index.d.ts +1 -1
  28. package/dist/esm/components/JstSendGood/index.js +2 -2
  29. package/dist/esm/components/JstSupply/index.d.ts +1 -1
  30. package/dist/esm/components/JstSupply/index.js +2 -2
  31. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +1 -1
  32. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +1 -1
  33. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +1 -1
  34. package/dist/esm/components/Ordinary/OrdinaryHeader.js +1 -1
  35. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +1 -1
  36. package/dist/esm/components/Ordinary/OrdinarySerial.js +1 -1
  37. package/dist/esm/components/Payment/AlipayNick.d.ts +1 -1
  38. package/dist/esm/components/Payment/AlipayNick.js +1 -1
  39. package/dist/esm/components/Payment/AlipayNo.d.ts +1 -1
  40. package/dist/esm/components/Payment/AlipayNo.js +1 -1
  41. package/dist/esm/components/Payment/AlipayTime.d.ts +1 -0
  42. package/dist/esm/components/Payment/AlipayTime.js +7 -0
  43. package/dist/esm/components/Payment/BuyerNick.d.ts +1 -1
  44. package/dist/esm/components/Payment/BuyerNick.js +1 -1
  45. package/dist/esm/components/Payment/PaymentTid.d.ts +1 -0
  46. package/dist/esm/components/Payment/PaymentTid.js +3 -0
  47. package/dist/esm/components/ReceiverMobile/index.d.ts +1 -1
  48. package/dist/esm/components/ReceiverMobile/index.js +1 -1
  49. package/dist/esm/components/ReceiverName/index.d.ts +1 -1
  50. package/dist/esm/components/ReceiverName/index.js +1 -1
  51. package/dist/esm/components/Remark/index.d.ts +1 -1
  52. package/dist/esm/components/Remark/index.js +1 -1
  53. package/dist/esm/components/ShopInput/index.d.ts +1 -0
  54. package/dist/esm/components/ShopInput/index.js +9 -0
  55. package/dist/esm/components/ShopName/index.d.ts +1 -1
  56. package/dist/esm/components/ShopName/index.js +1 -1
  57. package/dist/esm/components/SystemOrderNo/index.d.ts +1 -0
  58. package/dist/esm/components/SystemOrderNo/index.js +3 -0
  59. package/dist/esm/components/TextArea/index.d.ts +1 -1
  60. package/dist/esm/components/TextArea/index.js +1 -1
  61. package/dist/esm/components/ThirdItemSelect/index.d.ts +1 -1
  62. package/dist/esm/components/ThirdItemSelect/index.js +1 -1
  63. package/dist/esm/components/TradeDateTime/index.d.ts +1 -0
  64. package/dist/esm/components/TradeDateTime/index.js +8 -0
  65. package/dist/esm/components/TradeId/index.d.ts +1 -0
  66. package/dist/esm/components/TradeId/index.js +3 -0
  67. package/dist/esm/components/WorkOrderId/index.d.ts +1 -1
  68. package/dist/esm/components/WorkOrderId/index.js +1 -1
  69. package/dist/esm/type.d.ts +2 -0
  70. package/package.json +2 -2
@@ -31,6 +31,7 @@ declare class Address implements ComponentInterface {
31
31
  type: string;
32
32
  id: string;
33
33
  name: string;
34
+ filterKey: string;
34
35
  filterComponentType: "Cascader";
35
36
  props: {
36
37
  options: any;
@@ -41,6 +42,7 @@ declare class Address implements ComponentInterface {
41
42
  };
42
43
  };
43
44
  filterFn: (value: string) => (i: Record) => boolean;
45
+ formatFilterValue: (val: Array<number>) => number | undefined;
44
46
  };
45
47
  }
46
48
  export default Address;
@@ -93,6 +93,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
93
93
  // 过滤组件id
94
94
  name: item.name,
95
95
  // 过滤组件名称
96
+ filterKey: "".concat(item.id, "_basicDistrict"),
96
97
  filterComponentType: 'Cascader',
97
98
  props: {
98
99
  options: _this.addressDateInstance.addressOptions || [],
@@ -106,6 +107,11 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
106
107
  return function (i) {
107
108
  return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
108
109
  };
110
+ },
111
+ formatFilterValue: function formatFilterValue(val) {
112
+ if ((val === null || val === void 0 ? void 0 : val.length) > 2) {
113
+ return val === null || val === void 0 ? void 0 : val[2];
114
+ }
109
115
  }
110
116
  };
111
117
  });
@@ -20,7 +20,7 @@ declare class EAlipayAccount implements ComponentInterface {
20
20
  renderExport: (value?: string) => string;
21
21
  editRender: () => React.JSX.Element;
22
22
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "eq";
24
24
  type: string;
25
25
  id: string;
26
26
  name: string;
@@ -67,7 +67,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
67
67
  });
68
68
  _defineProperty(this, "filterConfig", function (item) {
69
69
  return {
70
- searchDefaultConditions: SYMBOL.in,
70
+ searchDefaultConditions: SYMBOL.eq,
71
71
  type: item.type,
72
72
  id: "".concat(item.id, "_alipayAccount"),
73
73
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
@@ -20,7 +20,7 @@ declare class EAlipayAccount implements ComponentInterface {
20
20
  renderExport: (value?: string) => string;
21
21
  editRender: () => React.JSX.Element;
22
22
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "eq";
24
24
  type: string;
25
25
  id: string;
26
26
  name: string;
@@ -67,7 +67,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
67
67
  });
68
68
  _defineProperty(this, "filterConfig", function (item) {
69
69
  return {
70
- searchDefaultConditions: SYMBOL.in,
70
+ searchDefaultConditions: SYMBOL.eq,
71
71
  type: item.type,
72
72
  id: "".concat(item.id, "_alipayName"),
73
73
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
@@ -21,7 +21,7 @@ declare class EBuyerNick implements ComponentInterface {
21
21
  renderExport: (value: any, record: any) => any;
22
22
  editRender: (value: any) => React.JSX.Element;
23
23
  filterConfig: (item: ColumnConfig) => {
24
- searchDefaultConditions: "in";
24
+ searchDefaultConditions: "like";
25
25
  type: string;
26
26
  id: string;
27
27
  name: string;
@@ -78,7 +78,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
78
78
  });
79
79
  _defineProperty(this, "filterConfig", function (item) {
80
80
  return {
81
- searchDefaultConditions: SYMBOL.in,
81
+ searchDefaultConditions: SYMBOL.like,
82
82
  type: item.type,
83
83
  id: "".concat(item.id, "_buyerNick"),
84
84
  // 过滤组件id
@@ -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: "eq";
26
+ searchDefaultConditions: "in";
27
27
  type: string;
28
28
  id: string;
29
29
  name: string;
@@ -37,6 +37,7 @@ declare class BasicCascader implements ComponentInterface {
37
37
  };
38
38
  };
39
39
  filterFn: (value: string) => (i: Record) => boolean;
40
+ formatFilterValue: (val: Array<string>) => string | undefined;
40
41
  };
41
42
  }
42
43
  export default BasicCascader;
@@ -89,7 +89,7 @@ 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.eq,
92
+ searchDefaultConditions: SYMBOL.in,
93
93
  type: item.type,
94
94
  id: item.id,
95
95
  // 过滤组件id
@@ -108,6 +108,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
108
108
  return function (i) {
109
109
  return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
110
110
  };
111
+ },
112
+ formatFilterValue: function formatFilterValue(val) {
113
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
114
+ return val[val.length - 1];
115
+ }
111
116
  }
112
117
  };
113
118
  });
@@ -27,6 +27,7 @@ declare class CommonDataTime implements ComponentInterface {
27
27
  name: string;
28
28
  filterComponentType: "Date";
29
29
  filterFn: (value: string[]) => (i: Record) => boolean;
30
+ formatFilterValue: (val: Array<any>) => number[] | undefined;
30
31
  };
31
32
  }
32
33
  export default CommonDataTime;
@@ -71,6 +71,13 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
71
71
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, '');
72
72
  return _filterFn.filterDateFn(value, recordDateTime);
73
73
  };
74
+ },
75
+ formatFilterValue: function formatFilterValue(val) {
76
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
77
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
78
+ return moment(v).valueOf();
79
+ });
80
+ }
74
81
  }
75
82
  };
76
83
  });
@@ -29,6 +29,7 @@ declare class BasicDataTime implements ComponentInterface {
29
29
  options: any[];
30
30
  };
31
31
  filterFn: (value: string[]) => (i: Record) => boolean;
32
+ formatFilterValue: (val: Array<any>) => number[] | undefined;
32
33
  };
33
34
  }
34
35
  export default BasicDataTime;
@@ -98,6 +98,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
98
98
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'dateTime');
99
99
  return _filterFn.filterDateFn(value, recordDateTime);
100
100
  };
101
+ },
102
+ formatFilterValue: function formatFilterValue(val) {
103
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
104
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
105
+ return moment(v).valueOf();
106
+ });
107
+ }
101
108
  }
102
109
  };
103
110
  });
@@ -18,7 +18,7 @@ declare class EItemEncode implements ComponentInterface {
18
18
  renderExport: (value: unknown, record: Record) => any;
19
19
  editRender: () => React.JSX.Element;
20
20
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "like";
22
22
  type: string;
23
23
  id: string;
24
24
  name: string;
@@ -75,7 +75,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
75
75
  });
76
76
  _defineProperty(this, "filterConfig", function (item) {
77
77
  return {
78
- searchDefaultConditions: SYMBOL.in,
78
+ searchDefaultConditions: SYMBOL.like,
79
79
  type: item.type,
80
80
  id: item.id,
81
81
  // 过滤组件id
@@ -18,7 +18,7 @@ declare class EItemId implements ComponentInterface {
18
18
  renderExport: (value: any, record: any) => any;
19
19
  editRender: () => React.JSX.Element;
20
20
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "like";
22
22
  type: string;
23
23
  id: string;
24
24
  name: string;
@@ -76,7 +76,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
76
76
  });
77
77
  _defineProperty(this, "filterConfig", function (item) {
78
78
  return {
79
- searchDefaultConditions: SYMBOL.in,
79
+ searchDefaultConditions: SYMBOL.like,
80
80
  type: item.type,
81
81
  id: item.id,
82
82
  // 过滤组件id
@@ -23,6 +23,7 @@ declare class ErpTradeId implements ComponentInterface {
23
23
  name: string;
24
24
  filterComponentType: "Input";
25
25
  filterFn: (value: string) => (i: Record) => boolean;
26
+ formatFilterValue: (input: string) => string[];
26
27
  };
27
28
  }
28
29
  export default ErpTradeId;
@@ -67,6 +67,9 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
67
67
  return function (i) {
68
68
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
69
69
  };
70
+ },
71
+ formatFilterValue: function formatFilterValue(input) {
72
+ return input.split(/[,|,]/);
70
73
  }
71
74
  };
72
75
  });
@@ -17,7 +17,7 @@ declare class BasicInput implements ComponentInterface {
17
17
  renderClient: (record: Record) => React.JSX.Element | null;
18
18
  editRender: () => React.JSX.Element;
19
19
  filterConfig: (item: ColumnConfig) => {
20
- searchDefaultConditions: "in";
20
+ searchDefaultConditions: "like";
21
21
  type: string;
22
22
  id: string;
23
23
  name: string;
@@ -60,7 +60,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
60
60
  });
61
61
  _defineProperty(this, "filterConfig", function (item) {
62
62
  return {
63
- searchDefaultConditions: SYMBOL.in,
63
+ searchDefaultConditions: SYMBOL.like,
64
64
  type: item.type,
65
65
  id: item.id,
66
66
  // 过滤组件id
@@ -20,7 +20,7 @@ declare class JstItemSelect implements ComponentInterface {
20
20
  renderExport: (value: any, record: any) => any;
21
21
  editRender: () => React.JSX.Element;
22
22
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "like";
24
24
  type: string;
25
25
  id: string;
26
26
  name: string;
@@ -73,7 +73,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
73
73
  });
74
74
  _defineProperty(this, "filterConfig", function (item) {
75
75
  return [{
76
- searchDefaultConditions: SYMBOL.in,
76
+ searchDefaultConditions: SYMBOL.like,
77
77
  type: item.type,
78
78
  id: "".concat(item.id, "_itemId"),
79
79
  name: "jst\u4F9B\u5E94\u5546\u7F16\u7801",
@@ -89,7 +89,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
89
89
  };
90
90
  }
91
91
  }, {
92
- searchDefaultConditions: SYMBOL.in,
92
+ searchDefaultConditions: SYMBOL.like,
93
93
  type: item.type,
94
94
  id: "".concat(item.id, "_supplierName"),
95
95
  name: "jst\u4F9B\u5E94\u5546\u540D\u79F0",
@@ -20,7 +20,7 @@ declare class JstLogistics implements ComponentInterface {
20
20
  renderExport: (value: any, record: any) => any;
21
21
  editRender: () => React.JSX.Element;
22
22
  filterConfig: (item: ColumnConfig) => ({
23
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "like";
24
24
  type: string;
25
25
  id: string;
26
26
  name: string;
@@ -79,7 +79,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
79
79
  });
80
80
  _defineProperty(this, "filterConfig", function (item) {
81
81
  return [{
82
- searchDefaultConditions: SYMBOL.in,
82
+ searchDefaultConditions: SYMBOL.like,
83
83
  type: item.type,
84
84
  id: "".concat(item.id, "_logisticsCode"),
85
85
  name: "jst\u7269\u6D41\u5355\u53F7",
@@ -18,7 +18,7 @@ declare class JstSendGood implements ComponentInterface {
18
18
  renderExport: (value: any, record: any) => any;
19
19
  editRender: () => React.JSX.Element;
20
20
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "like";
22
22
  type: string;
23
23
  id: string;
24
24
  name: string;
@@ -75,7 +75,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
75
75
  });
76
76
  _defineProperty(this, "filterConfig", function (item) {
77
77
  return [{
78
- searchDefaultConditions: SYMBOL.in,
78
+ searchDefaultConditions: SYMBOL.like,
79
79
  type: item.type,
80
80
  id: "".concat(item.id, "_sendName"),
81
81
  name: "jst\u53D1\u8D27\u4ED3\u540D\u79F0",
@@ -91,7 +91,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
91
91
  };
92
92
  }
93
93
  }, {
94
- searchDefaultConditions: SYMBOL.in,
94
+ searchDefaultConditions: SYMBOL.like,
95
95
  type: item.type,
96
96
  id: "".concat(item.id, "_sendId"),
97
97
  name: "jst\u53D1\u8D27\u4ED3\u7F16\u7801",
@@ -18,7 +18,7 @@ declare class JstSupply implements ComponentInterface {
18
18
  renderExport: (value: any, record: any) => any;
19
19
  editRender: () => React.JSX.Element;
20
20
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "like";
22
22
  type: string;
23
23
  id: string;
24
24
  name: string;
@@ -75,7 +75,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
75
75
  });
76
76
  _defineProperty(this, "filterConfig", function (item) {
77
77
  return [{
78
- searchDefaultConditions: SYMBOL.in,
78
+ searchDefaultConditions: SYMBOL.like,
79
79
  type: item.type,
80
80
  id: "".concat(item.id, "_supplyName"),
81
81
  name: "jst\u4F9B\u9500\u5546\u540D\u79F0",
@@ -91,7 +91,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
91
91
  };
92
92
  }
93
93
  }, {
94
- searchDefaultConditions: SYMBOL.in,
94
+ searchDefaultConditions: SYMBOL.like,
95
95
  type: item.type,
96
96
  id: "".concat(item.id, "_supplyId"),
97
97
  name: "jst\u4F9B\u9500\u5546\u7F16\u7801",
@@ -21,7 +21,7 @@ declare class InterceptSenderMobile implements ComponentInterface {
21
21
  renderExport: (value: any, record: Record) => any;
22
22
  editRender: () => null;
23
23
  filterConfig: (item: ColumnConfig) => {
24
- searchDefaultConditions: "in";
24
+ searchDefaultConditions: "like";
25
25
  type: string;
26
26
  id: string;
27
27
  name: string;
@@ -50,7 +50,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
50
50
  });
51
51
  _defineProperty(this, "filterConfig", function (item) {
52
52
  return {
53
- searchDefaultConditions: SYMBOL.in,
53
+ searchDefaultConditions: SYMBOL.like,
54
54
  type: item.type,
55
55
  id: "".concat(item.id, "_interceptSenderMobile"),
56
56
  name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
@@ -20,7 +20,7 @@ declare class OrdinaryHeader implements ComponentInterface {
20
20
  renderExport: (value: any) => any;
21
21
  editRender: () => React.JSX.Element;
22
22
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "like";
24
24
  type: string;
25
25
  id: string;
26
26
  name: string;
@@ -65,7 +65,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
65
65
  });
66
66
  _defineProperty(this, "filterConfig", function (item) {
67
67
  return {
68
- searchDefaultConditions: SYMBOL.in,
68
+ searchDefaultConditions: SYMBOL.like,
69
69
  type: item.type,
70
70
  id: "".concat(item.id, "_ordinaryTaitou"),
71
71
  name: "".concat(item.name, "-\u53D1\u7968\u62AC\u5934"),
@@ -25,7 +25,7 @@ declare class OrdinarySerial implements ComponentInterface {
25
25
  renderExport: (value: any) => any;
26
26
  editRender: () => React.JSX.Element;
27
27
  filterConfig: (item: ColumnConfig) => {
28
- searchDefaultConditions: "in";
28
+ searchDefaultConditions: "like";
29
29
  type: string;
30
30
  id: string;
31
31
  name: string;
@@ -63,7 +63,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
63
63
  });
64
64
  _defineProperty(this, "filterConfig", function (item) {
65
65
  return {
66
- searchDefaultConditions: SYMBOL.in,
66
+ searchDefaultConditions: SYMBOL.like,
67
67
  type: item.type,
68
68
  id: "".concat(item.id, "_ordinarySerial"),
69
69
  name: "".concat(item.name, "-\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7"),
@@ -20,7 +20,7 @@ declare class PaymentTid implements ComponentInterface {
20
20
  renderExport: (value: any, record: Record) => any;
21
21
  editRender: () => React.JSX.Element;
22
22
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "eq";
24
24
  type: string;
25
25
  id: string;
26
26
  name: string;
@@ -67,7 +67,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
67
67
  });
68
68
  _defineProperty(this, "filterConfig", function (item) {
69
69
  return {
70
- searchDefaultConditions: SYMBOL.in,
70
+ searchDefaultConditions: SYMBOL.eq,
71
71
  type: item.type,
72
72
  id: "".concat(item.id, "_enterprisePaymentAlipayNick"),
73
73
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u59D3\u540D"),
@@ -20,7 +20,7 @@ declare class AlipayNo implements ComponentInterface {
20
20
  renderExport: (value: any, record: Record) => any;
21
21
  editRender: () => React.JSX.Element;
22
22
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "eq";
24
24
  type: string;
25
25
  id: string;
26
26
  name: string;
@@ -67,7 +67,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
67
67
  });
68
68
  _defineProperty(this, "filterConfig", function (item) {
69
69
  return {
70
- searchDefaultConditions: SYMBOL.in,
70
+ searchDefaultConditions: SYMBOL.eq,
71
71
  type: item.type,
72
72
  id: "".concat(item.id, "_enterprisePaymentAlipayNo"),
73
73
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
@@ -25,6 +25,7 @@ declare class AlipayTime implements ComponentInterface {
25
25
  name: string;
26
26
  filterComponentType: "Date";
27
27
  filterFn: (value: string[]) => (i: Record) => boolean;
28
+ formatFilterValue: (val: Array<any>) => number[] | undefined;
28
29
  };
29
30
  }
30
31
  export default AlipayTime;
@@ -72,6 +72,13 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
72
72
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTime');
73
73
  return _filterFn.filterDateFn(value, recordDateTime);
74
74
  };
75
+ },
76
+ formatFilterValue: function formatFilterValue(val) {
77
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
78
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
79
+ return moment(v).valueOf();
80
+ });
81
+ }
75
82
  }
76
83
  };
77
84
  });
@@ -20,7 +20,7 @@ declare class BuyerNick implements ComponentInterface {
20
20
  getComponentValue: (r: Record) => any;
21
21
  renderExport: (value: string) => string;
22
22
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "like";
24
24
  type: string;
25
25
  id: string;
26
26
  name: string;
@@ -84,7 +84,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
84
84
  });
85
85
  _defineProperty(this, "filterConfig", function (item) {
86
86
  return {
87
- searchDefaultConditions: SYMBOL.in,
87
+ searchDefaultConditions: SYMBOL.like,
88
88
  type: item.type,
89
89
  id: "".concat(item.id, "_enterprisePaymentBuyerNick"),
90
90
  name: "".concat(item.name, "-\u4E70\u5BB6\u6635\u79F0"),
@@ -25,6 +25,7 @@ declare class PaymentTid implements ComponentInterface {
25
25
  name: string;
26
26
  filterComponentType: "Input";
27
27
  filterFn: (value: string) => (i: Record) => boolean;
28
+ formatFilterValue: (input: string) => string[];
28
29
  };
29
30
  }
30
31
  export default PaymentTid;
@@ -66,6 +66,9 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
66
66
  return function (i) {
67
67
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTid'), value);
68
68
  };
69
+ },
70
+ formatFilterValue: function formatFilterValue(input) {
71
+ return input.split(/[,|,]/);
69
72
  }
70
73
  };
71
74
  });
@@ -18,7 +18,7 @@ declare class ReceiverMobile implements ComponentInterface {
18
18
  renderExport: (value: any, record: Record) => any;
19
19
  editRender: (value: any) => React.JSX.Element;
20
20
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "eq";
22
22
  type: string;
23
23
  id: string;
24
24
  name: string;
@@ -70,7 +70,7 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
70
70
  });
71
71
  _defineProperty(this, "filterConfig", function (item) {
72
72
  return {
73
- searchDefaultConditions: SYMBOL.in,
73
+ searchDefaultConditions: SYMBOL.eq,
74
74
  type: item.type,
75
75
  id: item.id,
76
76
  // 过滤组件id
@@ -18,7 +18,7 @@ declare class ReceiverName implements ComponentInterface {
18
18
  renderExport: (value: any, record: Record) => any;
19
19
  editRender: () => React.JSX.Element;
20
20
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "eq";
22
22
  type: string;
23
23
  id: string;
24
24
  name: string;
@@ -67,7 +67,7 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
67
67
  });
68
68
  _defineProperty(this, "filterConfig", function (item) {
69
69
  return {
70
- searchDefaultConditions: SYMBOL.in,
70
+ searchDefaultConditions: SYMBOL.eq,
71
71
  type: item.type,
72
72
  id: item.id,
73
73
  // 过滤组件id
@@ -27,7 +27,7 @@ declare class ERemark implements ComponentInterface {
27
27
  renderExport: (value: unknown, record: Record) => any;
28
28
  editRender: () => React.JSX.Element;
29
29
  filterConfig: (item: ColumnConfig) => {
30
- searchDefaultConditions: "in";
30
+ searchDefaultConditions: "like";
31
31
  type: string;
32
32
  id: string;
33
33
  name: string;
@@ -86,7 +86,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
86
86
  });
87
87
  _defineProperty(this, "filterConfig", function (item) {
88
88
  return {
89
- searchDefaultConditions: SYMBOL.in,
89
+ searchDefaultConditions: SYMBOL.like,
90
90
  type: item.type,
91
91
  id: item.id,
92
92
  // 过滤组件id
@@ -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
  });
@@ -17,7 +17,7 @@ declare class BasicInput implements ComponentInterface {
17
17
  renderExport: (value: any, record: Record) => any;
18
18
  editRender: () => React.JSX.Element;
19
19
  filterConfig: (item: ColumnConfig) => {
20
- searchDefaultConditions: "in";
20
+ searchDefaultConditions: "like";
21
21
  type: string;
22
22
  id: string;
23
23
  name: string;
@@ -59,7 +59,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
59
59
  });
60
60
  _defineProperty(this, "filterConfig", function (item) {
61
61
  return {
62
- searchDefaultConditions: SYMBOL.in,
62
+ searchDefaultConditions: SYMBOL.like,
63
63
  type: item.type,
64
64
  id: item.id,
65
65
  // 过滤组件id
@@ -24,6 +24,7 @@ declare class SystemOrderNo implements ComponentInterface {
24
24
  name: string;
25
25
  filterComponentType: "Input";
26
26
  filterFn: (value: string) => (i: Record) => boolean;
27
+ formatFilterValue: (input: string) => string[];
27
28
  };
28
29
  }
29
30
  export default SystemOrderNo;
@@ -71,6 +71,9 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
71
71
  return function (i) {
72
72
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'systemOrderNo'), value);
73
73
  };
74
+ },
75
+ formatFilterValue: function formatFilterValue(input) {
76
+ return input.split(/[,|,]/);
74
77
  }
75
78
  };
76
79
  });
@@ -17,7 +17,7 @@ declare class BasicInput implements ComponentInterface {
17
17
  renderClient: (record: Record) => React.JSX.Element | null;
18
18
  editRender: () => React.JSX.Element;
19
19
  filterConfig: (item: ColumnConfig) => {
20
- searchDefaultConditions: "in";
20
+ searchDefaultConditions: "like";
21
21
  type: string;
22
22
  id: string;
23
23
  name: string;
@@ -59,7 +59,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
59
59
  });
60
60
  _defineProperty(this, "filterConfig", function (item) {
61
61
  return {
62
- searchDefaultConditions: SYMBOL.in,
62
+ searchDefaultConditions: SYMBOL.like,
63
63
  type: item.type,
64
64
  id: item.id,
65
65
  // 过滤组件id
@@ -18,7 +18,7 @@ declare class ThirdItemSelect implements ComponentInterface {
18
18
  renderExport: (value: any, record: Record) => any;
19
19
  editRender: () => React.JSX.Element;
20
20
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "like";
22
22
  type: string;
23
23
  id: string;
24
24
  name: string;
@@ -78,7 +78,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
78
78
  });
79
79
  _defineProperty(this, "filterConfig", function (item) {
80
80
  return {
81
- searchDefaultConditions: SYMBOL.in,
81
+ searchDefaultConditions: SYMBOL.like,
82
82
  type: item.type,
83
83
  id: item.id,
84
84
  // 过滤组件id
@@ -32,6 +32,7 @@ declare class BasicDataTime implements ComponentInterface {
32
32
  name: string;
33
33
  filterComponentType: "Date";
34
34
  filterFn: (value: string[]) => (i: Record) => boolean;
35
+ formatFilterValue: (val: Array<any>) => number[] | undefined;
35
36
  };
36
37
  }
37
38
  export default BasicDataTime;
@@ -7,6 +7,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
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
9
  import React from 'react';
10
+ import moment from 'moment';
10
11
  import { DateTime } from "../DataTime";
11
12
  import GetFormItem from "../GetFormItem";
12
13
  import ItemView from "../../commonComponents/ItemView";
@@ -105,6 +106,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
105
106
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
106
107
  return _filterFn.filterDateFn(value, recordDateTime);
107
108
  };
109
+ },
110
+ formatFilterValue: function formatFilterValue(val) {
111
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
112
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
113
+ return moment(v).valueOf();
114
+ });
115
+ }
108
116
  }
109
117
  };
110
118
  });
@@ -30,6 +30,7 @@ declare class ETradeId implements ComponentInterface {
30
30
  name: string;
31
31
  filterComponentType: "Input";
32
32
  filterFn: (value: string) => (i: Record) => boolean;
33
+ formatFilterValue: (input: string) => string[];
33
34
  };
34
35
  }
35
36
  export default ETradeId;
@@ -84,6 +84,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
84
84
  return function (i) {
85
85
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
86
86
  };
87
+ },
88
+ formatFilterValue: function formatFilterValue(input) {
89
+ return input.split(/[,|,]/);
87
90
  }
88
91
  };
89
92
  });
@@ -19,7 +19,7 @@ declare class WorkOrderId implements ComponentInterface {
19
19
  renderClient: () => null;
20
20
  editRender: () => React.JSX.Element;
21
21
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "in";
22
+ searchDefaultConditions: "like";
23
23
  type: string;
24
24
  id: string;
25
25
  name: string;
@@ -91,7 +91,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
91
91
  });
92
92
  _defineProperty(this, "filterConfig", function (item) {
93
93
  return {
94
- searchDefaultConditions: SYMBOL.in,
94
+ searchDefaultConditions: SYMBOL.like,
95
95
  type: item.type,
96
96
  id: item.id,
97
97
  // 过滤组件id
@@ -15,6 +15,8 @@ export declare type FilterConfigType = {
15
15
  filterComponentType: FilterComponentType;
16
16
  props?: Record;
17
17
  filterFn?: (p: any) => (r: Record) => unknown;
18
+ formatFilterValue?: (p: any) => any;
19
+ filterKey?: string;
18
20
  };
19
21
  export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate";
20
22
  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.6",
3
+ "version": "0.7.3-alpha.8",
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": "c0a832cbda8ff7441859094192bc588fe96aaa62"
43
+ "gitHead": "3f1aeb91c951a06e99993e2df46ef10c037ac417"
44
44
  }