@kmkf-fe-packages/kmkf-utils 2.3.19-beta.13 → 2.3.19-beta.16

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.
@@ -38,7 +38,7 @@ function jstOrderDetailDataToOrderOutData(res) {
38
38
  return _objectSpread(_objectSpread({}, res), {}, {
39
39
  data: res.data.orders.map(function (order) {
40
40
  return _objectSpread(_objectSpread({}, order), {}, {
41
- orderType: order.erpOrderType
41
+ orderType: order.newOrderType
42
42
  });
43
43
  })
44
44
  });
@@ -54,6 +54,17 @@ export var jstOrderDetailWrap = function jstOrderDetailWrap(soId) {
54
54
  });
55
55
  }
56
56
  return jstOrderDetailDataToOrderOutData(res);
57
+ }).then(function (res) {
58
+ var _res$data2;
59
+ if (res !== null && res !== void 0 && (_res$data2 = res.data) !== null && _res$data2 !== void 0 && _res$data2.length) {
60
+ res.data = res.data.map(function (order) {
61
+ order.items = order.items.filter(function (item) {
62
+ return !(item.qty === 0 && item.skuType === "combine");
63
+ });
64
+ return order;
65
+ });
66
+ }
67
+ return res;
57
68
  }).catch(function (e) {
58
69
  // console.log('***** in e', e);
59
70
  return jstOrderOutList({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-utils",
3
- "version": "2.3.19-beta.13",
3
+ "version": "2.3.19-beta.16",
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": "ba486d1d8bbfca5afe0702d915d249727ca538c7",
44
+ "gitHead": "abb2770b3f49cd415ad86c79881b3a925afb8b29",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }