@kmkf-fe-packages/services-components 2.0.79-beta.67 → 2.0.79-beta.68

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.
@@ -25,7 +25,8 @@ var typeMap = {
25
25
  company: "bsLogisticsCompany",
26
26
  code: "bsLogisticsCode",
27
27
  platformType: "default",
28
- companyDataType: "arrayObject"
28
+ companyDataType: "arrayObject",
29
+ companyCodeType: "arrayObject"
29
30
  },
30
31
  BS_E3_LOGISTICS: {
31
32
  key: "bsE3LogisticsList",
@@ -33,7 +34,8 @@ var typeMap = {
33
34
  company: "bsE3LogisticsCompany",
34
35
  code: "bsE3LogisticsCode",
35
36
  platformType: "bsE3",
36
- companyDataType: "arrayObject"
37
+ companyDataType: "arrayObject",
38
+ companyCodeType: "arrayObject"
37
39
  },
38
40
  WLN_LOGISTICS: {
39
41
  key: "wlnLogisticsList",
@@ -41,7 +43,8 @@ var typeMap = {
41
43
  company: "wlnLogisticsCompany",
42
44
  code: "wlnLogisticsCode",
43
45
  platformType: "wln",
44
- companyDataType: "arrayObject"
46
+ companyDataType: "arrayObject",
47
+ companyCodeType: "arrayObject"
45
48
  },
46
49
  WDT_LOGISTICS: {
47
50
  key: "wdtLogisticsList",
@@ -49,7 +52,8 @@ var typeMap = {
49
52
  company: "wdtLogisticsCompany",
50
53
  code: "wdtLogisticsCode",
51
54
  platformType: "wdt",
52
- companyDataType: "arrayObject"
55
+ companyDataType: "arrayObject",
56
+ companyCodeType: "arrayObject"
53
57
  },
54
58
  JST_LOGISTICS: {
55
59
  key: "jstItemList",
@@ -57,7 +61,8 @@ var typeMap = {
57
61
  company: "logisticsCompany",
58
62
  code: "logisticsCode",
59
63
  platformType: "jst",
60
- companyDataType: "arrayObject"
64
+ companyDataType: "arrayObject",
65
+ companyCodeType: "arrayObject"
61
66
  },
62
67
  KM_LOGISTICS: {
63
68
  key: "kmLogisticsList",
@@ -65,7 +70,8 @@ var typeMap = {
65
70
  company: "kmLogisticsCompany",
66
71
  code: "kmLogisticsCode",
67
72
  platformType: "km",
68
- companyDataType: "whetherItIncludes"
73
+ companyDataType: "whetherItIncludes",
74
+ companyCodeType: "arrayObject"
69
75
  },
70
76
  GY_LOGISTICS: {
71
77
  key: "gyLogisticsList",
@@ -73,7 +79,8 @@ var typeMap = {
73
79
  company: "gyLogisticsCompany",
74
80
  code: "gyLogisticsCode",
75
81
  platformType: "gy",
76
- companyDataType: "arrayObject"
82
+ companyDataType: "arrayObject",
83
+ companyCodeType: "arrayObject"
77
84
  },
78
85
  JY_LOGISTICS: {
79
86
  key: "jyLogisticsList",
@@ -89,7 +96,8 @@ var typeMap = {
89
96
  company: "skxLogisticsCompany",
90
97
  code: "skxLogisticsCode",
91
98
  platformType: "skx",
92
- companyDataType: "arrayObject",
99
+ companyDataType: "like",
100
+ companyCodeType: "like",
93
101
  logisticsCompanyFormType: "input"
94
102
  }
95
103
  };
@@ -150,7 +158,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
150
158
  }, {
151
159
  name: "物流单号",
152
160
  key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
153
- dataType: "arrayObject",
161
+ dataType: typeMap[options.type].companyCodeType,
154
162
  disabled: type === "logisticsCompany"
155
163
  }];
156
164
  });
@@ -13,8 +13,14 @@ import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import { SYMBOL, batchInput, SEARCH_OPTIONS } from "../../constant";
15
15
  import V from "voca";
16
+ var typeMap = {
17
+ SKX_WAREHOUSE: {
18
+ dataType: "like"
19
+ }
20
+ };
16
21
  var BasicTypeInput = /*#__PURE__*/_createClass(function BasicTypeInput(options) {
17
22
  var _this = this,
23
+ _typeMap$options$type,
18
24
  _options$componentCon;
19
25
  _classCallCheck(this, BasicTypeInput);
20
26
  _defineProperty(this, "name", void 0);
@@ -167,6 +173,6 @@ var BasicTypeInput = /*#__PURE__*/_createClass(function BasicTypeInput(options)
167
173
  this.isCombinationComponent = false;
168
174
  this.canSort = true;
169
175
  this.children = [];
170
- this.dataType = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? "number" : "string";
176
+ this.dataType = ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.dataType) || (options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? "number" : "string");
171
177
  });
172
178
  export default BasicTypeInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.79-beta.67",
3
+ "version": "2.0.79-beta.68",
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": "847b2939480803f47357c2768d09974be91d9365",
44
+ "gitHead": "a15cd00d9e35ff317a57964f95b41a866df6c51e",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }