@kmkf-fe-packages/services-components 1.17.8-beta.14 → 1.17.8-beta.16

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.
@@ -85,11 +85,11 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
85
85
  name: "物流公司",
86
86
  key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
87
87
  options: _this.expressDateInstance.getExpressData(),
88
- dataType: "string"
88
+ dataType: "arrayObject"
89
89
  }, {
90
90
  name: "物流单号",
91
91
  key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
92
- dataType: "string"
92
+ dataType: "arrayObject"
93
93
  }];
94
94
  }
95
95
  if (type === "logisticsCompany") {
@@ -98,7 +98,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
98
98
  name: "物流公司",
99
99
  key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
100
100
  options: _this.expressDateInstance.getExpressData(),
101
- dataType: "string"
101
+ dataType: "arrayObject"
102
102
  }];
103
103
  }
104
104
  if (type === "logisticsCode") {
@@ -106,7 +106,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
106
106
  return [{
107
107
  name: "物流单号",
108
108
  key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
109
- dataType: "string"
109
+ dataType: "arrayObject"
110
110
  }];
111
111
  }
112
112
  return [];
@@ -53,7 +53,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
53
53
  return {
54
54
  name: mapping[item],
55
55
  key: "".concat(_this.id, "_").concat(item),
56
- dataType: "string"
56
+ dataType: "arrayObject"
57
57
  };
58
58
  });
59
59
  });
@@ -15,6 +15,12 @@ declare class JstItemSelect implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: {
19
+ name: string;
20
+ key: string;
21
+ dataType: string;
22
+ [key: string]: any;
23
+ }[];
18
24
  constructor(options: PickOption);
19
25
  renderClient: (record: Record) => React.JSX.Element | null;
20
26
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -22,6 +28,7 @@ declare class JstItemSelect implements ComponentInterface {
22
28
  getComponentValue: (r: Record) => any;
23
29
  renderExport: (value: any, record: any) => any;
24
30
  editRender: (p: any) => React.JSX.Element;
31
+ getSortChildFields: () => any;
25
32
  filterConfig: (item: ColumnConfig) => {
26
33
  searchDefaultConditions: "like";
27
34
  type: string;
@@ -16,7 +16,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../../constant";
17
17
  var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
18
18
  var _this = this,
19
- _this$componentConfig3;
19
+ _this$componentConfig5;
20
20
  _classCallCheck(this, JstItemSelect);
21
21
  _defineProperty(this, "name", void 0);
22
22
  _defineProperty(this, "id", void 0);
@@ -31,6 +31,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
31
31
  _defineProperty(this, "canSort", void 0);
32
32
  _defineProperty(this, "children", void 0);
33
33
  _defineProperty(this, "dataType", void 0);
34
+ _defineProperty(this, "sortChildField", void 0);
34
35
  _defineProperty(this, "renderClient", function (record) {
35
36
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
36
37
  id: _this.id,
@@ -82,6 +83,25 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
82
83
  }))
83
84
  });
84
85
  });
86
+ _defineProperty(this, "getSortChildFields", function () {
87
+ var _this$componentConfig3, _this$componentConfig4;
88
+ var list = [];
89
+ if ((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.enableSupplierName) {
90
+ list.push({
91
+ name: "jst供应商名称",
92
+ key: "".concat(_this.id, "_supplierName"),
93
+ dataType: "arrayObject"
94
+ });
95
+ }
96
+ if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.enableItemId) {
97
+ list.push({
98
+ name: "jst供应商编码",
99
+ key: "".concat(_this.id, "_itemId"),
100
+ dataType: "arrayObject"
101
+ });
102
+ }
103
+ return list;
104
+ });
85
105
  _defineProperty(this, "filterConfig", function (item) {
86
106
  return [{
87
107
  searchDefaultConditions: SYMBOL.like,
@@ -127,23 +147,23 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
127
147
  this.canSort = false;
128
148
  this.children = [];
129
149
  this.dataType = "object";
130
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
150
+ this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
131
151
  required: true,
132
152
  validator: function validator(_, value) {
133
- var _this$componentConfig4, _this$componentConfig5;
153
+ var _this$componentConfig6, _this$componentConfig7;
134
154
  if (!value || !value.length) {
135
155
  return Promise.reject(new Error("请选择宝贝"));
136
156
  }
137
157
  var hasNotId = (value || []).some(function (item) {
138
158
  return !item.itemId;
139
159
  });
140
- if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.enableItemId && hasNotId) {
160
+ if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.enableItemId && hasNotId) {
141
161
  return Promise.reject(new Error("请输入供应商编码"));
142
162
  }
143
163
  var hasNotName = (value || []).some(function (item) {
144
164
  return !item.supplierName;
145
165
  });
146
- if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.enableSupplierName && hasNotName) {
166
+ if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.enableSupplierName && hasNotName) {
147
167
  return Promise.reject(new Error("请输入供应商名称"));
148
168
  }
149
169
  return Promise.resolve();
@@ -151,5 +171,6 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
151
171
  }] : [];
152
172
  this.align = "left";
153
173
  this.expressDateInstance = ExpressData.getInstance();
174
+ this.sortChildField = this.getSortChildFields();
154
175
  });
155
176
  export default JstItemSelect;
@@ -66,12 +66,12 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
66
66
  var sendName = {
67
67
  name: "发货仓名称",
68
68
  key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
69
- dataType: "string"
69
+ dataType: "arrayObject"
70
70
  };
71
71
  var sendId = {
72
72
  name: "发货仓编码",
73
73
  key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
74
- dataType: "string"
74
+ dataType: "arrayObject"
75
75
  };
76
76
  if (fieldType === 'WDT_SEND_GOOD') {
77
77
  sendName.options = WdtSendData.getInstance().getWdtSendData() || [];
@@ -37,29 +37,25 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(_options) {
37
37
  return [{
38
38
  name: "jst供销商名称",
39
39
  key: "".concat(options.id, "_supplyName"),
40
- dataType: "array",
41
- format: "input"
40
+ dataType: "arrayObject"
42
41
  }, {
43
42
  name: "jst供销商编码",
44
43
  key: "".concat(options.id, "_supplyId"),
45
- dataType: "array",
46
- format: "input"
44
+ dataType: "arrayObject"
47
45
  }];
48
46
  }
49
47
  if (type === "supplyName") {
50
48
  return [{
51
49
  name: "jst供销商名称",
52
50
  key: "".concat(options.id, "_supplyName"),
53
- dataType: "array",
54
- format: "input"
51
+ dataType: "arrayObject"
55
52
  }];
56
53
  }
57
54
  if (type === "supplyId") {
58
55
  return [{
59
56
  name: "jst供销商编码",
60
57
  key: "".concat(options.id, "_supplyId"),
61
- dataType: "array",
62
- format: "input"
58
+ dataType: "arrayObject"
63
59
  }];
64
60
  }
65
61
  return [];
@@ -40,25 +40,25 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
40
40
  return [{
41
41
  name: "发货仓名称",
42
42
  key: "".concat(options.id, "_").concat(_this.suffixSendName),
43
- dataType: "string"
43
+ dataType: "arrayObject"
44
44
  }, {
45
45
  name: "发货仓编码",
46
46
  key: "".concat(options.id, "_").concat(_this.suffixSendId),
47
- dataType: "string"
47
+ dataType: "arrayObject"
48
48
  }];
49
49
  }
50
50
  if (type === 'sendName') {
51
51
  return [{
52
52
  name: "发货仓名称",
53
53
  key: "".concat(options.id, "_").concat(_this.suffixSendName),
54
- dataType: "string"
54
+ dataType: "arrayObject"
55
55
  }];
56
56
  }
57
57
  if (type === 'sendId') {
58
58
  return [{
59
59
  name: "发货仓编码",
60
60
  key: "".concat(options.id, "_").concat(_this.suffixSendId),
61
- dataType: "string"
61
+ dataType: "arrayObject"
62
62
  }];
63
63
  }
64
64
  return [];
@@ -185,7 +185,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
185
185
  this.isCombinationComponent = false;
186
186
  this.canSort = false;
187
187
  this.children = [];
188
- this.dataType = 'object';
188
+ this.dataType = 'arrayObject';
189
189
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
190
190
  required: true,
191
191
  validator: function validator(_, value) {
@@ -37,14 +37,14 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
37
37
  list.push({
38
38
  name: '供应商编码',
39
39
  key: "".concat(_this.id, "_itemId"),
40
- dataType: "string"
40
+ dataType: "arrayObject"
41
41
  });
42
42
  }
43
43
  if ((_this$componentConfig2 = _this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.enableSupplierName) {
44
44
  list.push({
45
45
  name: '供应商名称',
46
46
  key: "".concat(_this.id, "_supplierName"),
47
- dataType: "string"
47
+ dataType: "arrayObject"
48
48
  });
49
49
  }
50
50
  return list;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.17.8-beta.14",
3
+ "version": "1.17.8-beta.16",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "1.17.8-beta.14",
25
- "@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.14",
24
+ "@kmkf-fe-packages/basic-components": "1.17.8-beta.16",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.16",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "8a675d395ded7f94e38f3700d146950349210088",
44
+ "gitHead": "239c4b85239aa82541000c2e1506cca509ceda11",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }