@kmkf-fe-packages/services-components 1.17.5-beta.13 → 1.17.5-beta.15
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 ? [{
|
|
@@ -19,25 +19,25 @@ import { SYMBOL } from "../../constant";
|
|
|
19
19
|
var typeMap = {
|
|
20
20
|
MSG_STATUS: {
|
|
21
21
|
options: [{
|
|
22
|
-
value: '
|
|
23
|
-
label: '
|
|
22
|
+
value: '执行成功',
|
|
23
|
+
label: '执行成功',
|
|
24
24
|
color: '#52c41a'
|
|
25
25
|
}, {
|
|
26
|
-
value: '
|
|
27
|
-
label: '
|
|
26
|
+
value: '执行中',
|
|
27
|
+
label: '执行中',
|
|
28
28
|
color: '#52c41a'
|
|
29
29
|
}, {
|
|
30
|
-
value: '
|
|
31
|
-
label: '
|
|
30
|
+
value: '执行失败',
|
|
31
|
+
label: '执行失败',
|
|
32
32
|
color: '#ff4d4f'
|
|
33
33
|
}, {
|
|
34
|
-
value: '
|
|
35
|
-
label: '
|
|
34
|
+
value: '等待执行',
|
|
35
|
+
label: '等待执行',
|
|
36
36
|
color: '#e7780f'
|
|
37
37
|
}],
|
|
38
38
|
key: 'msgStatusValues',
|
|
39
39
|
code: 'msgStatus4Search',
|
|
40
|
-
name: '
|
|
40
|
+
name: '任务状态',
|
|
41
41
|
type: 1,
|
|
42
42
|
valueKey: 'status',
|
|
43
43
|
idKey: 'systemOrderId',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.17.5-beta.
|
|
3
|
+
"version": "1.17.5-beta.15",
|
|
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": "
|
|
44
|
+
"gitHead": "f5893a7c257c0b77e120b32e5c4bbd9930cb98a1",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|