@kmkf-fe-packages/services-components 1.17.5-beta.13 → 1.17.5-beta.14

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.
@@ -20,7 +20,7 @@ declare class JstSendGood implements ComponentInterface {
20
20
  children: ComponentInterface[];
21
21
  dataType: ComponentInterface["dataType"];
22
22
  constructor(options: PickOption);
23
- getSortChildFields: (type: string, options: PickOption) => any;
23
+ getSortChildFields: (type: string, options: PickOption, fieldType?: string) => any;
24
24
  renderClient: (record: Record) => React.JSX.Element | null;
25
25
  renderPc: (value: any, record: Record) => React.JSX.Element;
26
26
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -60,34 +60,29 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
60
60
  _defineProperty(this, "canSort", void 0);
61
61
  _defineProperty(this, "children", void 0);
62
62
  _defineProperty(this, "dataType", void 0);
63
- _defineProperty(this, "getSortChildFields", function (type, options) {
63
+ _defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
64
+ var _typeMap$options$type, _typeMap$options$type2;
65
+ var sendName = {
66
+ name: "发货仓名称",
67
+ key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
68
+ dataType: "string"
69
+ };
70
+ var sendId = {
71
+ name: "发货仓编码",
72
+ key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
73
+ dataType: "string"
74
+ };
75
+ if (fieldType === 'WDT_SEND_GOOD') {
76
+ sendName.options = WdtSendData.getInstance().getWdtSendData() || [];
77
+ }
64
78
  if (type === 'all') {
65
- var _typeMap$options$type, _typeMap$options$type2;
66
- return [{
67
- name: "发货仓名称",
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"
70
- }, {
71
- name: "发货仓编码",
72
- key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
73
- dataType: "string"
74
- }];
79
+ return [sendName, sendId];
75
80
  }
76
81
  if (type === 'sendName') {
77
- var _typeMap$options$type3;
78
- return [{
79
- name: "发货仓名称",
80
- key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.sendName),
81
- dataType: "string"
82
- }];
82
+ return [sendName];
83
83
  }
84
84
  if (type === 'sendId') {
85
- var _typeMap$options$type4;
86
- return [{
87
- name: "发货仓编码",
88
- key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.sendId),
89
- dataType: "string"
90
- }];
85
+ return [sendId];
91
86
  }
92
87
  return [];
93
88
  });
@@ -212,7 +207,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
212
207
  this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
213
208
  this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
214
209
  this.componentConfig = _options.componentConfig;
215
- this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || '', _options);
210
+ this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || '', _options, _options.type);
216
211
  this.type = _options.type;
217
212
  this.dataType = "object";
218
213
  this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.17.5-beta.13",
3
+ "version": "1.17.5-beta.14",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "a225ce80ae18d2fd0a5d01761ea49b1a3c6a806b",
44
+ "gitHead": "7dc53a9d108de60f9ce37f4356fcf7d1897eccaa",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }