@kmkf-fe-packages/kmkf-utils 2.2.13-beta.82 → 2.2.13-beta.87
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.
|
@@ -5,9 +5,18 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import request from "../../request";
|
|
8
|
+
|
|
9
|
+
// const jstOrderDetail: (data: any) => Promise<any> = (data: any) => {
|
|
10
|
+
// return request({
|
|
11
|
+
// url: "/qy/gdfw/order/jstOrderDetail",
|
|
12
|
+
// method: "post",
|
|
13
|
+
// data,
|
|
14
|
+
// infoLevel: "warning",
|
|
15
|
+
// });
|
|
16
|
+
// };
|
|
8
17
|
var jstOrderDetail = function jstOrderDetail(data) {
|
|
9
18
|
return request({
|
|
10
|
-
url: "/qy/gdfw/
|
|
19
|
+
url: "/qy/gdfw/jst/erp/jstShopCode",
|
|
11
20
|
method: "post",
|
|
12
21
|
data: data,
|
|
13
22
|
infoLevel: "warning"
|
|
@@ -223,11 +223,10 @@ export var bsOrderBackFormValues = function bsOrderBackFormValues() {
|
|
|
223
223
|
{
|
|
224
224
|
var _detail$bsGoods, _detail$bsGoods2;
|
|
225
225
|
var initReason = !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? Array.isArray(config.initReason) ? config.initReason : [config.initReason] : [];
|
|
226
|
-
console.log("initReason", initReason);
|
|
227
226
|
prv[uniqueKey] = _objectSpread(_objectSpread({}, detail === null || detail === void 0 ? void 0 : detail.bsExchangeGoods), {}, {
|
|
228
227
|
bsExchangeType: initReason,
|
|
229
|
-
bsExchangeReturnGoods: ["
|
|
230
|
-
bsExchangeSwapOutGoods: ["
|
|
228
|
+
bsExchangeReturnGoods: ["1", "3"].includes(initReason[0]) ? (detail === null || detail === void 0 ? void 0 : (_detail$bsGoods = detail.bsGoods) === null || _detail$bsGoods === void 0 ? void 0 : _detail$bsGoods.bsGoods) || [] : [],
|
|
229
|
+
bsExchangeSwapOutGoods: ["1", "3"].includes(initReason[0]) ? (detail === null || detail === void 0 ? void 0 : (_detail$bsGoods2 = detail.bsGoods) === null || _detail$bsGoods2 === void 0 ? void 0 : _detail$bsGoods2.bsGoods) || [] : []
|
|
231
230
|
});
|
|
232
231
|
}
|
|
233
232
|
break;
|
|
@@ -237,7 +236,7 @@ export var bsOrderBackFormValues = function bsOrderBackFormValues() {
|
|
|
237
236
|
var _initReason = !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? Array.isArray(config.initReason) ? config.initReason : [config.initReason] : [];
|
|
238
237
|
prv[uniqueKey] = _objectSpread(_objectSpread({}, detail === null || detail === void 0 ? void 0 : detail.bsReissueGoods), {}, {
|
|
239
238
|
bsReissueType: _initReason,
|
|
240
|
-
bsReissueGoods: ["
|
|
239
|
+
bsReissueGoods: ["1", "3"].includes(_initReason[0]) ? (detail === null || detail === void 0 ? void 0 : (_detail$bsGoods3 = detail.bsGoods) === null || _detail$bsGoods3 === void 0 ? void 0 : _detail$bsGoods3.bsGoods) || [] : []
|
|
241
240
|
});
|
|
242
241
|
}
|
|
243
242
|
// prv[uniqueKey] = detail?.bsReissueGoods;
|
|
@@ -249,7 +248,7 @@ export var bsOrderBackFormValues = function bsOrderBackFormValues() {
|
|
|
249
248
|
var _initReason2 = !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? Array.isArray(config.initReason) ? config.initReason : [config.initReason] : [];
|
|
250
249
|
prv[uniqueKey] = _objectSpread(_objectSpread({}, detail === null || detail === void 0 ? void 0 : detail.bsReturnGoods), {}, {
|
|
251
250
|
bsReturnType: _initReason2,
|
|
252
|
-
bsReturnGoods: ["
|
|
251
|
+
bsReturnGoods: ["1"].includes(_initReason2[0]) ? (detail === null || detail === void 0 ? void 0 : (_detail$bsGoods4 = detail.bsGoods) === null || _detail$bsGoods4 === void 0 ? void 0 : _detail$bsGoods4.bsGoods) || [] : []
|
|
253
252
|
});
|
|
254
253
|
}
|
|
255
254
|
break;
|
|
@@ -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" ? "" : next === null || next === void 0 ? void 0 : next.wmsCoId;
|
|
115
|
+
var wmsCoId = (next === null || next === void 0 ? void 0 : next.wmsCoId) === "0" ? "" : "".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.87",
|
|
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": "74d002079223286dfcc57e06eb5aca01bcc9b33e",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|