@kmkf-fe-packages/kmkf-utils 2.0.19-beta.3 → 2.0.19-beta.4
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.
|
@@ -110,9 +110,10 @@ var updateJstItemListHandle = function updateJstItemListHandle(list, type, comLi
|
|
|
110
110
|
params.logisticsCompany = next === null || next === void 0 ? void 0 : next.logisticsCompany;
|
|
111
111
|
params.logisticsCode = next === null || next === void 0 ? void 0 : next.lId;
|
|
112
112
|
} else if (type === "send") {
|
|
113
|
-
|
|
114
|
-
params.
|
|
115
|
-
params.
|
|
113
|
+
var wmsCoId = (next === null || next === void 0 ? void 0 : next.wmsCoId) === "0" ? "" : next === null || next === void 0 ? void 0 : next.wmsCoId;
|
|
114
|
+
params.sendId = wmsCoId;
|
|
115
|
+
params.sendName = wmsCoId && SendDataCenter.getInstance("jst").getSendNameByCode(wmsCoId);
|
|
116
|
+
params.sendSnapshotId = wmsCoId;
|
|
116
117
|
} else if (type === "supply") {
|
|
117
118
|
params.supplyId = next === null || next === void 0 ? void 0 : next.drpCoIdTo;
|
|
118
119
|
params.supplyName = next === null || next === void 0 ? void 0 : next.drpCoName;
|
|
@@ -2,13 +2,18 @@ import Monitor from "kmkf-monitor";
|
|
|
2
2
|
import { cloneDeep } from "lodash";
|
|
3
3
|
export default (function (name, content) {
|
|
4
4
|
var _JSON$parse, _JSON$parse$workOrder, _JSON$parse$workOrder2;
|
|
5
|
-
var spmParam = typeof content === "string" ? content : JSON.stringify(Object.prototype.toString.call(content) === "[object Object]" ? cloneDeep(content) : {
|
|
6
|
-
|
|
5
|
+
var spmParam = typeof content === "string" ? content : JSON.stringify(Object.prototype.toString.call(content) === "[object Object]" || Array.isArray(content) ? cloneDeep(content) : {
|
|
6
|
+
null: null
|
|
7
|
+
});
|
|
8
|
+
var reduxData_test = sessionStorage.getItem("reduxData_test");
|
|
7
9
|
if (!reduxData_test) return;
|
|
8
10
|
if (((_JSON$parse = JSON.parse(reduxData_test)) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$workOrder = _JSON$parse.workOrder) === null || _JSON$parse$workOrder === void 0 ? void 0 : (_JSON$parse$workOrder2 = _JSON$parse$workOrder.userInfo) === null || _JSON$parse$workOrder2 === void 0 ? void 0 : _JSON$parse$workOrder2.companyKey) !== "GRYUA7YIY2F6SQFESMJY3O4E") return;
|
|
9
|
-
|
|
11
|
+
var order_no_test = sessionStorage.getItem("order_no_test");
|
|
12
|
+
console.log("\u65E5\u5FD7\uFF1AgyLog_".concat(order_no_test, "_").concat(name), {
|
|
13
|
+
spmParam: spmParam
|
|
14
|
+
});
|
|
10
15
|
Monitor.sendClick({
|
|
11
|
-
spmClick: "gyLog_".concat(name),
|
|
16
|
+
spmClick: "gyLog_".concat(order_no_test, "_").concat(name),
|
|
12
17
|
spmParam: spmParam
|
|
13
18
|
});
|
|
14
19
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "2.0.19-beta.
|
|
3
|
+
"version": "2.0.19-beta.4",
|
|
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": "cc4d5c45c3bf3a90837ab38528d87371ca98d79c",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|