@kmkf-fe-packages/services-components 1.26.0 → 1.27.0
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.
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +6 -163
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +19 -18
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +17 -16
- package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
- package/dist/esm/components/Common/constants/bs.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs.js +90 -0
- package/dist/esm/components/Common/constants/bs_e3.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs_e3.js +154 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +5 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +26 -0
- package/dist/esm/components/Common/constants/defaultColumns.d.ts +3 -0
- package/dist/esm/components/Common/constants/defaultColumns.js +76 -0
- package/dist/esm/components/Common/constants/gy.d.ts +3 -0
- package/dist/esm/components/Common/constants/gy.js +153 -0
- package/dist/esm/components/Common/constants/system.d.ts +3 -0
- package/dist/esm/components/Common/constants/system.js +58 -0
- package/dist/esm/components/Common/constants/wdt.d.ts +3 -0
- package/dist/esm/components/Common/constants/wdt.js +280 -0
- package/dist/esm/components/Common/dist/index.js +97 -603
- package/dist/esm/components/Common/index.js +20 -743
- package/dist/esm/components/CommonHeaderGood/index.js +196 -0
- package/dist/esm/components/GY/GyGoods/index.d.ts +33 -0
- package/dist/esm/components/GY/GyGoods/index.js +123 -0
- package/dist/esm/components/GY/GyReissue/index.d.ts +58 -0
- package/dist/esm/components/GY/GyReissue/index.js +188 -0
- package/dist/esm/components/JST/JstSendGood/index.js +32 -16
- package/dist/esm/components/KmErpSendGood/index.js +11 -11
- package/dist/esm/components/PostIng/index.js +2 -1
- package/dist/esm/components/Reissue/Logistics/index.d.ts +10 -1
- package/dist/esm/components/Reissue/Logistics/index.js +39 -10
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +7 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
|
@@ -20,42 +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"
|
|
65
|
+
},
|
|
66
|
+
GY_SEND_GOOD: {
|
|
67
|
+
key: "gySendGood",
|
|
68
|
+
name: "gy",
|
|
69
|
+
sendId: "gySendId",
|
|
70
|
+
sendName: "gySendName",
|
|
71
|
+
platformType: "gy",
|
|
72
|
+
dataType: "weakenArray"
|
|
59
73
|
}
|
|
60
74
|
};
|
|
61
75
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
@@ -63,6 +77,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
63
77
|
_typeMap$_options$typ,
|
|
64
78
|
_typeMap$_options$typ2,
|
|
65
79
|
_this$componentConfig3,
|
|
80
|
+
_typeMap$_options$typ3,
|
|
66
81
|
_this$componentConfig4;
|
|
67
82
|
_classCallCheck(this, JstSendGood);
|
|
68
83
|
_defineProperty(this, "name", void 0);
|
|
@@ -80,18 +95,18 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
80
95
|
_defineProperty(this, "dataType", void 0);
|
|
81
96
|
_defineProperty(this, "format", void 0);
|
|
82
97
|
_defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
|
|
83
|
-
var _typeMap$options$type, _typeMap$options$type2;
|
|
98
|
+
var _typeMap$options$type, _typeMap$options$type2, _typeMap$options$type3;
|
|
84
99
|
var sendName = {
|
|
85
100
|
name: "发货仓名称",
|
|
86
101
|
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
|
|
87
|
-
dataType:
|
|
88
|
-
disabled: type ===
|
|
102
|
+
dataType: (_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.dataType,
|
|
103
|
+
disabled: type === "sendId"
|
|
89
104
|
};
|
|
90
105
|
var sendId = {
|
|
91
106
|
name: "发货仓编码",
|
|
92
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$
|
|
107
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.sendId),
|
|
93
108
|
dataType: "arrayObject",
|
|
94
|
-
disabled: type ===
|
|
109
|
+
disabled: type === "sendName"
|
|
95
110
|
};
|
|
96
111
|
sendName.options = fieldType && SendDataCenter.getInstance(fieldType).getSendData();
|
|
97
112
|
return [sendName, sendId];
|
|
@@ -151,16 +166,17 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
151
166
|
required: false,
|
|
152
167
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
153
168
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
154
|
-
tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip :
|
|
169
|
+
tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : "",
|
|
155
170
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
156
171
|
type: 3,
|
|
157
|
-
platformType: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.platformType
|
|
172
|
+
platformType: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.platformType,
|
|
173
|
+
onlyShowFieldSelect: _this.componentConfig ? _this.componentConfig.showField === "sendName" : false
|
|
158
174
|
}))
|
|
159
175
|
});
|
|
160
176
|
});
|
|
161
177
|
_defineProperty(this, "filterConfig", function (item) {
|
|
162
178
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
163
|
-
return [
|
|
179
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
164
180
|
searchDefaultConditions: SYMBOL.in,
|
|
165
181
|
type: item.type,
|
|
166
182
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -218,9 +234,9 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
218
234
|
this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
|
|
219
235
|
this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
|
|
220
236
|
this.componentConfig = _options.componentConfig;
|
|
221
|
-
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) ||
|
|
237
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options, _options.type);
|
|
222
238
|
this.type = _options.type;
|
|
223
|
-
this.dataType =
|
|
239
|
+
this.dataType = (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.dataType;
|
|
224
240
|
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
225
241
|
required: true,
|
|
226
242
|
validator: function validator(_, value) {
|
|
@@ -40,12 +40,12 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
40
40
|
name: "发货仓名称",
|
|
41
41
|
key: "".concat(options.id, "_").concat(_this.suffixSendName),
|
|
42
42
|
dataType: "arrayObject",
|
|
43
|
-
disabled: type ===
|
|
43
|
+
disabled: type === "sendId"
|
|
44
44
|
}, {
|
|
45
45
|
name: "发货仓编码",
|
|
46
46
|
key: "".concat(options.id, "_").concat(_this.suffixSendId),
|
|
47
47
|
dataType: "arrayObject",
|
|
48
|
-
disabled: type ===
|
|
48
|
+
disabled: type === "sendName"
|
|
49
49
|
}];
|
|
50
50
|
});
|
|
51
51
|
_defineProperty(this, "renderClient", function (record) {
|
|
@@ -58,7 +58,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
58
58
|
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
59
59
|
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
60
60
|
type: 3,
|
|
61
|
-
platformType:
|
|
61
|
+
platformType: "default"
|
|
62
62
|
})
|
|
63
63
|
}) : null;
|
|
64
64
|
});
|
|
@@ -72,7 +72,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
72
72
|
}, /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
73
73
|
list: list,
|
|
74
74
|
type: 3,
|
|
75
|
-
platformType:
|
|
75
|
+
platformType: "default"
|
|
76
76
|
}));
|
|
77
77
|
});
|
|
78
78
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -98,15 +98,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
98
98
|
required: false,
|
|
99
99
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
100
100
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
101
|
-
tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip :
|
|
101
|
+
tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : "",
|
|
102
102
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
103
103
|
type: 3,
|
|
104
|
-
platformType:
|
|
104
|
+
platformType: "default"
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
_defineProperty(this, "filterConfig", function (item) {
|
|
109
|
-
return [
|
|
109
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
110
110
|
searchDefaultConditions: SYMBOL.in,
|
|
111
111
|
type: item.type,
|
|
112
112
|
id: "".concat(item.id, "_").concat(_this.suffixSendName),
|
|
@@ -161,13 +161,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
161
161
|
});
|
|
162
162
|
this.name = _options.name;
|
|
163
163
|
this.id = _options.id;
|
|
164
|
-
this.suffixKey =
|
|
165
|
-
this.suffixSendId =
|
|
166
|
-
this.suffixSendName =
|
|
164
|
+
this.suffixKey = "kmSendGood";
|
|
165
|
+
this.suffixSendId = "kmSendId";
|
|
166
|
+
this.suffixSendName = "kmSendName";
|
|
167
167
|
this.sortField = "".concat(_options.id, "_").concat(this.suffixKey);
|
|
168
168
|
this.formField = "".concat(_options.id, "_").concat(this.suffixKey);
|
|
169
169
|
this.componentConfig = _options.componentConfig;
|
|
170
|
-
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) ||
|
|
170
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options);
|
|
171
171
|
this.type = _options.type;
|
|
172
172
|
this.dataType = "object";
|
|
173
173
|
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
@@ -13,7 +13,7 @@ import { ApaasPosting } from "@kmkf-fe-packages/basic-components";
|
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
15
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
-
import { AddressData, BsAddressData, WdtAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import Province from "../BS/BsPosting/components/Province";
|
|
18
18
|
import City from "../BS/BsPosting/components//City";
|
|
19
19
|
import District from "../BS/BsPosting/components//District";
|
|
@@ -191,6 +191,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
191
191
|
var showField = (_options$componentCon2 = options.componentConfig) === null || _options$componentCon2 === void 0 ? void 0 : _options$componentCon2.showField;
|
|
192
192
|
this.addressDateInstance = (showField && {
|
|
193
193
|
bs: BsAddressData,
|
|
194
|
+
gy: GyAddressData,
|
|
194
195
|
wdt: WdtAddressData,
|
|
195
196
|
workOrder: AddressData
|
|
196
197
|
}[showField] || AddressData).getInstance();
|
|
@@ -30,6 +30,15 @@ declare class Logistics implements ComponentInterface {
|
|
|
30
30
|
renderExport: (value: any, record: any) => any;
|
|
31
31
|
editRender: (p: any) => React.JSX.Element;
|
|
32
32
|
filterConfig: (item: ColumnConfig) => ({
|
|
33
|
+
searchDefaultConditions: "like";
|
|
34
|
+
type: string;
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
filterComponentType: "Input";
|
|
38
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
39
|
+
formatFilterValue: (input: string) => string;
|
|
40
|
+
props?: undefined;
|
|
41
|
+
} | {
|
|
33
42
|
searchDefaultConditions: "in";
|
|
34
43
|
type: string;
|
|
35
44
|
id: string;
|
|
@@ -56,8 +65,8 @@ declare class Logistics implements ComponentInterface {
|
|
|
56
65
|
name: string;
|
|
57
66
|
filterComponentType: "Input";
|
|
58
67
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
59
|
-
props?: undefined;
|
|
60
68
|
formatFilterValue?: undefined;
|
|
69
|
+
props?: undefined;
|
|
61
70
|
})[];
|
|
62
71
|
}
|
|
63
72
|
export default Logistics;
|
|
@@ -16,10 +16,18 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { SYMBOL, batchInput } from "../../../constant";
|
|
18
18
|
var typeMap = {
|
|
19
|
+
JST_LOGISTICS: {
|
|
20
|
+
key: "jstItemList",
|
|
21
|
+
name: "jst",
|
|
22
|
+
company: "logisticsCompany",
|
|
23
|
+
companyName: "logisticsCompanyName",
|
|
24
|
+
code: "logisticsCode"
|
|
25
|
+
},
|
|
19
26
|
REISSUE_LOGISTICS: {
|
|
20
27
|
key: "reissueLogisticsList",
|
|
21
28
|
name: "reissue",
|
|
22
29
|
company: "reissueLogisticsCompany",
|
|
30
|
+
companyName: "reissueLogisticsCompanyName",
|
|
23
31
|
code: "reissueLogisticsCode"
|
|
24
32
|
}
|
|
25
33
|
};
|
|
@@ -27,9 +35,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
|
27
35
|
var _this = this,
|
|
28
36
|
_typeMap$_options$typ,
|
|
29
37
|
_typeMap$_options$typ2,
|
|
30
|
-
_this$componentConfig8,
|
|
31
38
|
_this$componentConfig9,
|
|
32
|
-
_this$
|
|
39
|
+
_this$componentConfig11,
|
|
40
|
+
_this$componentConfig12;
|
|
33
41
|
_classCallCheck(this, Logistics);
|
|
34
42
|
_defineProperty(this, "name", void 0);
|
|
35
43
|
_defineProperty(this, "id", void 0);
|
|
@@ -124,11 +132,28 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
|
124
132
|
});
|
|
125
133
|
});
|
|
126
134
|
_defineProperty(this, "filterConfig", function (item) {
|
|
127
|
-
var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
|
|
128
|
-
|
|
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) === "gy" ? "input" : "select";
|
|
137
|
+
return [logisticsType === "input" ? {
|
|
138
|
+
searchDefaultConditions: SYMBOL.like,
|
|
139
|
+
type: item.type,
|
|
140
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key),
|
|
141
|
+
name: "".concat(_this.name, "\u7269\u6D41\u516C\u53F8"),
|
|
142
|
+
filterComponentType: "Input",
|
|
143
|
+
filterFn: function filterFn(value) {
|
|
144
|
+
return function (i) {
|
|
145
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
149
|
+
var value = batchInput(input);
|
|
150
|
+
console.log("formatFilterValue---", value);
|
|
151
|
+
return value && Array.isArray(value) ? value.join("") : value;
|
|
152
|
+
}
|
|
153
|
+
} : {
|
|
129
154
|
searchDefaultConditions: SYMBOL.in,
|
|
130
155
|
type: item.type,
|
|
131
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
156
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.company),
|
|
132
157
|
name: "".concat(_this.name, "\u7269\u6D41\u516C\u53F8"),
|
|
133
158
|
filterComponentType: "MultipleSelect",
|
|
134
159
|
props: {
|
|
@@ -147,7 +172,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
|
147
172
|
}, _this.type === "REISSUE_LOGISTICS" ? {
|
|
148
173
|
searchDefaultConditions: SYMBOL.in,
|
|
149
174
|
type: item.type,
|
|
150
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
175
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.code),
|
|
151
176
|
name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
|
|
152
177
|
filterComponentType: "Input",
|
|
153
178
|
filterFn: function filterFn(value) {
|
|
@@ -161,7 +186,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
|
161
186
|
} : {
|
|
162
187
|
searchDefaultConditions: SYMBOL.like,
|
|
163
188
|
type: item.type,
|
|
164
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
189
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.code),
|
|
165
190
|
name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
|
|
166
191
|
filterComponentType: "Input",
|
|
167
192
|
filterFn: function filterFn(value) {
|
|
@@ -181,10 +206,14 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
|
181
206
|
this.canSort = false;
|
|
182
207
|
this.children = [];
|
|
183
208
|
this.dataType = "object";
|
|
184
|
-
this.rules = (_this$
|
|
209
|
+
this.rules = (_this$componentConfig9 = this.componentConfig) !== null && _this$componentConfig9 !== void 0 && _this$componentConfig9.required ? [{
|
|
185
210
|
required: true,
|
|
186
211
|
validator: function validator(_, value) {
|
|
187
212
|
var hasNo = (value || []).some(function (item) {
|
|
213
|
+
var _this$componentConfig10;
|
|
214
|
+
if (((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.logistics) === "gy") {
|
|
215
|
+
return item.logisticsCompanyName && item.logisticsCode;
|
|
216
|
+
}
|
|
188
217
|
return item.logisticsCompany && item.logisticsCode;
|
|
189
218
|
});
|
|
190
219
|
if (!hasNo) {
|
|
@@ -194,7 +223,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
|
194
223
|
}
|
|
195
224
|
}] : [];
|
|
196
225
|
this.align = "left";
|
|
197
|
-
this.expressDateInstance = ExpressData.getInstance((_this$
|
|
198
|
-
this.sortChildField = this.getSortChildFields(((_this$
|
|
226
|
+
this.expressDateInstance = ExpressData.getInstance((_this$componentConfig11 = this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : _this$componentConfig11.logistics);
|
|
227
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig12 = this.componentConfig) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.showField) || "", _options);
|
|
199
228
|
});
|
|
200
229
|
export default Logistics;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | GyGoods | GyReissue | JstSendGood | MsgStatus | BasicPosting | ReceiverAddress | ReissueLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -133,6 +133,7 @@ export var factory = function factory(type, options) {
|
|
|
133
133
|
case "WLN_SYSTEM_ORDER":
|
|
134
134
|
case "WDT_SYSTEM_ORDER":
|
|
135
135
|
case "BS_E3_SYSTEM_ORDER":
|
|
136
|
+
case "GY_SYSTEM_ORDER":
|
|
136
137
|
return new BsSystemOrder(options);
|
|
137
138
|
case "JST_SEND_GOOD":
|
|
138
139
|
case "BS_SEND_GOOD":
|
|
@@ -140,6 +141,7 @@ export var factory = function factory(type, options) {
|
|
|
140
141
|
case "WLN_SEND_GOOD":
|
|
141
142
|
case "WDT_SEND_GOOD":
|
|
142
143
|
case "KM_SEND_GOOD":
|
|
144
|
+
case "GY_SEND_GOOD":
|
|
143
145
|
return new JstSendGood(options);
|
|
144
146
|
case "BS_POSTING":
|
|
145
147
|
return new BsPosting(options);
|
|
@@ -147,6 +149,8 @@ export var factory = function factory(type, options) {
|
|
|
147
149
|
return new BsGoods(options);
|
|
148
150
|
case "BS_E3_GOODS":
|
|
149
151
|
return new BsE3Goods(options);
|
|
152
|
+
case "GY_GOODS":
|
|
153
|
+
return new GyGoods(options);
|
|
150
154
|
case "BS_E3_REISSUE_GOODS":
|
|
151
155
|
return new BsE3Reissue(options);
|
|
152
156
|
case "BS_EXCHANGE_GOODS":
|
|
@@ -157,6 +161,8 @@ export var factory = function factory(type, options) {
|
|
|
157
161
|
return new BsReissue(options);
|
|
158
162
|
case "WDT_REISSUE_GOODS":
|
|
159
163
|
return new WdtReissue(options);
|
|
164
|
+
case "GY_REISSUE_GOODS":
|
|
165
|
+
return new GyReissue(options);
|
|
160
166
|
case "BS_RETURN_GOODS":
|
|
161
167
|
return new BsReturn(options);
|
|
162
168
|
case "WDT_RETURN_GOODS":
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -86,6 +86,8 @@ export { default as Label } from "./components/Label";
|
|
|
86
86
|
export { default as MemberLevel } from "./components/MemberLevel";
|
|
87
87
|
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
88
88
|
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
89
|
+
export { default as GyGoods } from "./components/GY/GyGoods";
|
|
90
|
+
export { default as GyReissue } from "./components/GY/GyReissue";
|
|
89
91
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
90
92
|
export { factory } from "./factory";
|
|
91
93
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
package/dist/esm/index.js
CHANGED
|
@@ -86,6 +86,8 @@ export { default as Label } from "./components/Label";
|
|
|
86
86
|
export { default as MemberLevel } from "./components/MemberLevel";
|
|
87
87
|
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
88
88
|
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
89
|
+
export { default as GyGoods } from "./components/GY/GyGoods";
|
|
90
|
+
export { default as GyReissue } from "./components/GY/GyReissue";
|
|
89
91
|
// TODO: ERP 打款工单使用
|
|
90
92
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
91
93
|
export { factory } from "./factory";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export interface ComponentInterface {
|
|
|
99
99
|
/**
|
|
100
100
|
* @description 显示字段名称
|
|
101
101
|
*/
|
|
102
|
-
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder" | "logisticsCompany" | "logisticsCode";
|
|
102
|
+
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder" | "logisticsCompany" | "logisticsCode" | string;
|
|
103
103
|
/**
|
|
104
104
|
* @description 是否选择SKU
|
|
105
105
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.0",
|
|
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.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.27.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.27.0",
|
|
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": "6af2253c6e1824d963a9e5ab80831b4acbeae1f0",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|