@kmkf-fe-packages/kmkf-utils 2.2.13-beta.95 → 2.2.13-beta.96
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.
|
@@ -2,6 +2,7 @@ interface OptionsItem {
|
|
|
2
2
|
label: string;
|
|
3
3
|
value: string | number;
|
|
4
4
|
disabled: boolean;
|
|
5
|
+
isMain?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare type SendGoodPlatform = string;
|
|
7
8
|
declare class SendData {
|
|
@@ -14,6 +15,7 @@ declare class SendData {
|
|
|
14
15
|
setSendData: (val: OptionsItem[]) => OptionsItem[];
|
|
15
16
|
getSendNameByCode: (code: string | number, returnCurrentValue?: boolean) => string | number;
|
|
16
17
|
getSendCodeByName: (name: string | number, returnCurrentValue?: boolean) => string | number;
|
|
18
|
+
getMainWmsCoId: () => string | number;
|
|
17
19
|
}
|
|
18
20
|
export declare class SendDataCenter {
|
|
19
21
|
static instanceMap: Map<SendGoodPlatform, SendData>;
|
|
@@ -52,6 +52,12 @@ var SendData = /*#__PURE__*/_createClass(function SendData(platform) {
|
|
|
52
52
|
});
|
|
53
53
|
return item.length ? item[0].value : returnCurrentValue ? name : "";
|
|
54
54
|
});
|
|
55
|
+
_defineProperty(this, "getMainWmsCoId", function () {
|
|
56
|
+
var _this$sendData$find;
|
|
57
|
+
return ((_this$sendData$find = _this.sendData.find(function (item) {
|
|
58
|
+
return item === null || item === void 0 ? void 0 : item.isMain;
|
|
59
|
+
})) === null || _this$sendData$find === void 0 ? void 0 : _this$sendData$find.value) || "";
|
|
60
|
+
});
|
|
55
61
|
this.platform = platform;
|
|
56
62
|
this.service = {
|
|
57
63
|
bsE3: BSE3,
|
|
@@ -112,7 +112,7 @@ var updateJstItemListHandle = function updateJstItemListHandle(list, type, comLi
|
|
|
112
112
|
params.logisticsCompany = next === null || next === void 0 ? void 0 : next.logisticsCompany;
|
|
113
113
|
params.logisticsCode = next === null || next === void 0 ? void 0 : next.lId;
|
|
114
114
|
} else if (type === "send") {
|
|
115
|
-
var wmsCoId = (next === null || next === void 0 ? void 0 : next.wmsCoId) === "0" ? "" : "".concat(next === null || next === void 0 ? void 0 : next.wmsCoId);
|
|
115
|
+
var wmsCoId = (next === null || next === void 0 ? void 0 : next.wmsCoId) === "0" ? SendDataCenter.getInstance("jst").getMainWmsCoId() : "".concat(next === null || next === void 0 ? void 0 : next.wmsCoId);
|
|
116
116
|
params.sendId = wmsCoId;
|
|
117
117
|
params.sendName = wmsCoId && SendDataCenter.getInstance("jst").getSendNameByCode(wmsCoId);
|
|
118
118
|
params.sendSnapshotId = wmsCoId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "2.2.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.96",
|
|
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": "d39ba6e50dfe3198371dc71012366731a7ee2d5c",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|