@kmkf-fe-packages/services-components 1.22.1-beta.67 → 1.22.1-beta.69
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,49 +20,56 @@ var typeMap = {
|
|
|
20
20
|
name: "jst",
|
|
21
21
|
sendId: "sendId",
|
|
22
22
|
sendName: "sendName",
|
|
23
|
-
platformType:
|
|
23
|
+
platformType: 'default',
|
|
24
|
+
dataType: "arrayObject"
|
|
24
25
|
},
|
|
25
26
|
BS_SEND_GOOD: {
|
|
26
27
|
key: "bsSendGood",
|
|
27
28
|
name: "bs",
|
|
28
29
|
sendId: "bsSendId",
|
|
29
30
|
sendName: "bsSendName",
|
|
30
|
-
platformType:
|
|
31
|
+
platformType: 'default',
|
|
32
|
+
dataType: "arrayObject"
|
|
31
33
|
},
|
|
32
34
|
BS_E3_SEND_GOOD: {
|
|
33
35
|
key: "bsE3SendGood",
|
|
34
36
|
name: "bsE3",
|
|
35
37
|
sendId: "bsE3SendId",
|
|
36
38
|
sendName: "bsE3SendName",
|
|
37
|
-
platformType:
|
|
39
|
+
platformType: 'bsE3',
|
|
40
|
+
dataType: "arrayObject"
|
|
38
41
|
},
|
|
39
42
|
WLN_SEND_GOOD: {
|
|
40
43
|
key: "wlnSendGood",
|
|
41
44
|
name: "wln",
|
|
42
45
|
sendId: "wlnSendId",
|
|
43
46
|
sendName: "wlnSendName",
|
|
44
|
-
platformType:
|
|
47
|
+
platformType: 'default',
|
|
48
|
+
dataType: "arrayObject"
|
|
45
49
|
},
|
|
46
50
|
KM_SEND_GOOD: {
|
|
47
51
|
key: "kmSendGood",
|
|
48
52
|
name: "km",
|
|
49
53
|
sendId: "kmSendId",
|
|
50
54
|
sendName: "kmSendName",
|
|
51
|
-
platformType:
|
|
55
|
+
platformType: 'km',
|
|
56
|
+
dataType: "weakenArray"
|
|
52
57
|
},
|
|
53
58
|
WDT_SEND_GOOD: {
|
|
54
59
|
key: "wdtSendGood",
|
|
55
60
|
name: "wdt",
|
|
56
61
|
sendId: "wdtSendId",
|
|
57
62
|
sendName: "wdtSendName",
|
|
58
|
-
platformType:
|
|
63
|
+
platformType: 'wdt',
|
|
64
|
+
dataType: "weakenArray"
|
|
59
65
|
},
|
|
60
66
|
GY_SEND_GOOD: {
|
|
61
67
|
key: "gySendGood",
|
|
62
68
|
name: "gy",
|
|
63
69
|
sendId: "gySendId",
|
|
64
70
|
sendName: "gySendName",
|
|
65
|
-
platformType: "gy"
|
|
71
|
+
platformType: "gy",
|
|
72
|
+
dataType: "weakenArray"
|
|
66
73
|
}
|
|
67
74
|
};
|
|
68
75
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
@@ -70,6 +77,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
70
77
|
_typeMap$_options$typ,
|
|
71
78
|
_typeMap$_options$typ2,
|
|
72
79
|
_this$componentConfig3,
|
|
80
|
+
_typeMap$_options$typ3,
|
|
73
81
|
_this$componentConfig4;
|
|
74
82
|
_classCallCheck(this, JstSendGood);
|
|
75
83
|
_defineProperty(this, "name", void 0);
|
|
@@ -91,14 +99,14 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
91
99
|
var sendName = {
|
|
92
100
|
name: "发货仓名称",
|
|
93
101
|
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
|
|
94
|
-
dataType:
|
|
95
|
-
disabled: type ===
|
|
102
|
+
dataType: _this.dataType,
|
|
103
|
+
disabled: type === 'sendId'
|
|
96
104
|
};
|
|
97
105
|
var sendId = {
|
|
98
106
|
name: "发货仓编码",
|
|
99
107
|
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
|
|
100
|
-
dataType:
|
|
101
|
-
disabled: type ===
|
|
108
|
+
dataType: _this.dataType,
|
|
109
|
+
disabled: type === 'sendName'
|
|
102
110
|
};
|
|
103
111
|
sendName.options = fieldType && SendDataCenter.getInstance(fieldType).getSendData();
|
|
104
112
|
return [sendName, sendId];
|
|
@@ -227,7 +235,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
227
235
|
this.componentConfig = _options.componentConfig;
|
|
228
236
|
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options, _options.type);
|
|
229
237
|
this.type = _options.type;
|
|
230
|
-
this.dataType =
|
|
238
|
+
this.dataType = (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.dataType;
|
|
231
239
|
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
232
240
|
required: true,
|
|
233
241
|
validator: function validator(_, value) {
|
|
@@ -133,7 +133,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
|
133
133
|
});
|
|
134
134
|
_defineProperty(this, "filterConfig", function (item) {
|
|
135
135
|
var _this$componentConfig8, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8;
|
|
136
|
-
var logisticsType = ((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.logistics) ===
|
|
136
|
+
var logisticsType = ((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.logistics) === "gy" ? "input" : "select";
|
|
137
137
|
return [logisticsType === "input" ? {
|
|
138
138
|
searchDefaultConditions: SYMBOL.in,
|
|
139
139
|
type: item.type,
|
|
@@ -209,7 +209,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
|
209
209
|
validator: function validator(_, value) {
|
|
210
210
|
var hasNo = (value || []).some(function (item) {
|
|
211
211
|
var _this$componentConfig10;
|
|
212
|
-
if (((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.logistics) ===
|
|
212
|
+
if (((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.logistics) === "gy") {
|
|
213
213
|
return item.logisticsCompanyName && item.logisticsCode;
|
|
214
214
|
}
|
|
215
215
|
return item.logisticsCompany && item.logisticsCode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.69",
|
|
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.22.1-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.22.1-beta.69",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.69",
|
|
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": "
|
|
44
|
+
"gitHead": "333ee887aa703e7cb48f448b1d3a943140c1777f",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|