@kmkf-fe-packages/services-components 2.8.0 → 2.8.2

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.
Files changed (25) hide show
  1. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  2. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  3. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  4. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  5. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +10 -9
  6. package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
  7. package/dist/esm/components/BS/BsLogistics/index.js +0 -1
  8. package/dist/esm/components/BS/BsSystemOrder/index.js +5 -0
  9. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
  10. package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
  11. package/dist/esm/components/BS/common/BsMemo.js +2 -1
  12. package/dist/esm/components/BS/common/BsType.js +2 -1
  13. package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
  14. package/dist/esm/components/Common/dist/index.js +1019 -0
  15. package/dist/esm/components/CommonHeaderGood/index.js +166 -4
  16. package/dist/esm/components/CommonMultiStatus/index.js +27 -4
  17. package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
  18. package/dist/esm/components/JST/JstSendGood/index.js +50 -18
  19. package/dist/esm/components/Public/Goods/index.js +4 -0
  20. package/dist/esm/components/Public/ReissueGoods/index.js +18 -0
  21. package/dist/esm/components/StatusSelect/index.js +4 -0
  22. package/dist/esm/factory.d.ts +2 -2
  23. package/dist/esm/factory.js +9 -4
  24. package/dist/esm/type.d.ts +4 -3
  25. package/package.json +4 -4
@@ -30,6 +30,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
30
30
  _defineProperty(this, "children", void 0);
31
31
  _defineProperty(this, "dataType", void 0);
32
32
  _defineProperty(this, "parentName", void 0);
33
+ _defineProperty(this, "parent", void 0);
33
34
  _defineProperty(this, "transformValue", function (val) {
34
35
  return val;
35
36
  });
@@ -44,31 +45,31 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
44
45
  code = _this$id$split2[2];
45
46
  return "".concat(key, "_").concat(name);
46
47
  });
47
- _defineProperty(this, "renderClient", function (record) {
48
+ _defineProperty(this, "renderClient", function (record, index) {
48
49
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
49
50
  id: _this.id,
50
51
  label: _this.name,
51
- value: _this.getComponentValue(record)
52
+ value: _this.getComponentValue(record, index)
52
53
  }) : null;
53
54
  });
54
- _defineProperty(this, "renderPc", function (value, record) {
55
+ _defineProperty(this, "renderPc", function (value, record, index) {
55
56
  var _this$getComponentVal;
56
- return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
57
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record, index)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
57
58
  });
58
- _defineProperty(this, "renderLog", function (r) {
59
+ _defineProperty(this, "renderLog", function (r, index) {
59
60
  var id = _this.getParentId();
60
61
  if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
61
- return _this.renderPc(undefined, r);
62
+ return _this.renderPc(undefined, r, index);
62
63
  });
63
- _defineProperty(this, "getComponentValue", function (r) {
64
- return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
64
+ _defineProperty(this, "getComponentValue", function (r, index) {
65
+ return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName, _this.parent, index);
65
66
  });
66
- _defineProperty(this, "getComponentExport", function (r) {
67
- return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
67
+ _defineProperty(this, "getComponentExport", function (r, index) {
68
+ return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName, _this.parent, index);
68
69
  });
69
- _defineProperty(this, "renderExport", function (value, record) {
70
+ _defineProperty(this, "renderExport", function (value, record, index) {
70
71
  var _this$getComponentExp;
71
- var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
72
+ var val = (_this$getComponentExp = _this.getComponentExport(record, index)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
72
73
  return typeof val === "number" ? val + "" : val;
73
74
  });
74
75
  _defineProperty(this, "editRender", function () {
@@ -85,6 +86,9 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
85
86
  if (options.parentName) {
86
87
  this.parentName = options.parentName;
87
88
  }
89
+ if (options.parent) {
90
+ this.parent = options.parent;
91
+ }
88
92
  this.componentConfig = options.componentConfig;
89
93
  this.align = "left";
90
94
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
@@ -28,7 +28,8 @@ var componentType = {
28
28
  KM_REISSUE_GOODS: "kmReissueType",
29
29
  KM_RETURN_GOODS: "kmReturnType",
30
30
  JY_REISSUE_GOODS: "jyReissueType",
31
- JKY_REISSUE_GOODS: "jkyReissueType"
31
+ JKY_REISSUE_GOODS: "jkyReissueType",
32
+ WLN_REISSUE_GOODS: "wlnReissueType"
32
33
  };
33
34
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
34
35
  var _this = this;
@@ -29,7 +29,8 @@ var componentType = {
29
29
  KM_REISSUE_GOODS: "kmReissueType",
30
30
  KM_RETURN_GOODS: "kmReturnType",
31
31
  JY_REISSUE_GOODS: "jyReissueType",
32
- JKY_REISSUE_GOODS: "jkyReissueType"
32
+ JKY_REISSUE_GOODS: "jkyReissueType",
33
+ WLN_REISSUE_GOODS: "wlnReissueType"
33
34
  };
34
35
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
35
36
  var _this = this;
@@ -24,7 +24,8 @@ var componentType = {
24
24
  KM_REISSUE_GOODS: "kmSystemOrderNo",
25
25
  KM_RETURN_GOODS: "kmSystemOrderNo",
26
26
  JY_REISSUE_GOODS: "jySystemOrderNo",
27
- JKY_REISSUE_GOODS: "jkySystemOrderNo"
27
+ JKY_REISSUE_GOODS: "jkySystemOrderNo",
28
+ WLN_REISSUE_GOODS: "wlnSystemOrderNo"
28
29
  };
29
30
  var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
30
31
  var _this = this;