@kmkf-fe-packages/services-components 2.10.16 → 2.10.17

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 (38) hide show
  1. package/dist/esm/components/BS/BsExchange/index.d.ts +7 -0
  2. package/dist/esm/components/BS/BsExchange/index.js +6 -0
  3. package/dist/esm/components/BS/BsGoods/index.d.ts +7 -0
  4. package/dist/esm/components/BS/BsGoods/index.js +6 -0
  5. package/dist/esm/components/BS/BsReissue/index.d.ts +7 -0
  6. package/dist/esm/components/BS/BsReissue/index.js +6 -0
  7. package/dist/esm/components/BS/BsReturn/index.d.ts +7 -0
  8. package/dist/esm/components/BS/BsReturn/index.js +6 -0
  9. package/dist/esm/components/BsE3/BsGoods/index.d.ts +7 -0
  10. package/dist/esm/components/BsE3/BsGoods/index.js +6 -0
  11. package/dist/esm/components/BsE3/BsReissueE3/index.d.ts +7 -0
  12. package/dist/esm/components/BsE3/BsReissueE3/index.js +6 -0
  13. package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +6 -0
  14. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +14 -0
  15. package/dist/esm/components/GY/GyGoods/index.d.ts +7 -0
  16. package/dist/esm/components/GY/GyGoods/index.js +6 -0
  17. package/dist/esm/components/GY/GyReissue/index.d.ts +7 -0
  18. package/dist/esm/components/GY/GyReissue/index.js +6 -0
  19. package/dist/esm/components/GY/GyReturn/index.d.ts +7 -0
  20. package/dist/esm/components/GY/GyReturn/index.js +6 -0
  21. package/dist/esm/components/KM/KmExchange/index.d.ts +7 -0
  22. package/dist/esm/components/KM/KmExchange/index.js +6 -0
  23. package/dist/esm/components/Public/Exchange/index.d.ts +7 -0
  24. package/dist/esm/components/Public/Exchange/index.js +6 -0
  25. package/dist/esm/components/Public/Goods/index.js +2 -12
  26. package/dist/esm/components/Public/ReissueGoods/index.d.ts +7 -0
  27. package/dist/esm/components/Public/ReissueGoods/index.js +6 -0
  28. package/dist/esm/components/SKX/SkxGoods/index.d.ts +7 -0
  29. package/dist/esm/components/SKX/SkxGoods/index.js +6 -0
  30. package/dist/esm/components/WDT/WdtExchange/index.d.ts +7 -0
  31. package/dist/esm/components/WDT/WdtExchange/index.js +6 -0
  32. package/dist/esm/components/WDT/WdtGoods/index.d.ts +7 -0
  33. package/dist/esm/components/WDT/WdtGoods/index.js +6 -0
  34. package/dist/esm/components/WDT/WdtRessuie/index.d.ts +7 -0
  35. package/dist/esm/components/WDT/WdtRessuie/index.js +6 -0
  36. package/dist/esm/components/WDT/WdtReturn/index.d.ts +7 -0
  37. package/dist/esm/components/WDT/WdtReturn/index.js +6 -0
  38. package/package.json +4 -4
@@ -14,12 +14,19 @@ declare class BsExchange implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  bsType: BsType;
18
19
  bsMemo: BsMemo;
19
20
  returnGoods: BsHeaderGood;
20
21
  swapOutGoods: BsHeaderGood;
21
22
  giftGoods: BsHeaderGood;
22
23
  constructor(options: PickOption);
24
+ getSortChildFields: () => {
25
+ name: any;
26
+ key: string;
27
+ dataType: string;
28
+ conditionOptionsSetting: any;
29
+ }[];
23
30
  renderClient: (record: any) => React.JSX.Element | null;
24
31
  renderPc: () => null;
25
32
  renderLog: (r: Record) => React.JSX.Element;
@@ -16,6 +16,7 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { BsExchange as Exchange } from "@kmkf-fe-packages/basic-components";
17
17
  import { SYMBOL } from "../../../constant";
18
18
  import { BsType, BsMemo, BsHeaderGood } from "../common/index";
19
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
19
20
  var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
20
21
  var _this = this,
21
22
  _this$componentConfig10;
@@ -32,11 +33,15 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
32
33
  _defineProperty(this, "canSort", void 0);
33
34
  _defineProperty(this, "children", void 0);
34
35
  _defineProperty(this, "dataType", void 0);
36
+ _defineProperty(this, "sortChildField", void 0);
35
37
  _defineProperty(this, "bsType", void 0);
36
38
  _defineProperty(this, "bsMemo", void 0);
37
39
  _defineProperty(this, "returnGoods", void 0);
38
40
  _defineProperty(this, "swapOutGoods", void 0);
39
41
  _defineProperty(this, "giftGoods", void 0);
42
+ _defineProperty(this, "getSortChildFields", function () {
43
+ return getGoodsSortChildFields(_this.type, _this.id);
44
+ });
40
45
  _defineProperty(this, "renderClient", function (record) {
41
46
  var _this$componentConfig, _this$componentConfig2, _record, _record$bsExchangeTyp, _this$componentConfig3;
42
47
  var bsExchangeReturnGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsExchangeReturnGoods")]) || "[]");
@@ -210,5 +215,6 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
210
215
  }
211
216
  }];
212
217
  this.dataType = "object";
218
+ this.sortChildField = this.getSortChildFields();
213
219
  });
214
220
  export default BsExchange;
@@ -14,8 +14,15 @@ declare class BsGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  bsGoods: BsHeaderGood;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull, findLabelBySelectValue } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { BsGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
19
20
  var hasQualityValue = function hasQualityValue(value, componentConfig) {
20
21
  var _findLabelBySelectVal, _findLabelBySelectVal2;
21
22
  var label = (_findLabelBySelectVal = findLabelBySelectValue(value, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (item) {
@@ -39,7 +40,11 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
39
40
  _defineProperty(this, "canSort", void 0);
40
41
  _defineProperty(this, "children", void 0);
41
42
  _defineProperty(this, "dataType", void 0);
43
+ _defineProperty(this, "sortChildField", void 0);
42
44
  _defineProperty(this, "bsGoods", void 0);
45
+ _defineProperty(this, "getSortChildFields", function () {
46
+ return getGoodsSortChildFields(_this.type, _this.id);
47
+ });
43
48
  _defineProperty(this, "renderClient", function (record) {
44
49
  var _record, _this$componentConfig;
45
50
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -155,5 +160,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
155
160
  }
156
161
  });
157
162
  this.dataType = "object";
163
+ this.sortChildField = this.getSortChildFields();
158
164
  });
159
165
  export default BsGoods;
@@ -15,10 +15,17 @@ declare class BsReissue implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface['dataType'];
18
+ sortChildField: NonNullable<ComponentInterface['sortChildField']>;
18
19
  bsType: BsType;
19
20
  bsMemo: BsMemo;
20
21
  reissueGoods: BsHeaderGood | CommonHeaderGoods;
21
22
  constructor(options: PickOption);
23
+ getSortChildFields: () => {
24
+ name: any;
25
+ key: string;
26
+ dataType: string;
27
+ conditionOptionsSetting: any;
28
+ }[];
22
29
  renderClient: (record: any) => React.JSX.Element | null;
23
30
  renderPc: () => null;
24
31
  renderLog: (r: Record) => React.JSX.Element;
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
17
17
  import { BsGoodsTable } from "../../Common";
18
18
  import { BsType, BsMemo, BsHeaderGood } from "../common/index";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var typeMap = {
21
22
  BS_REISSUE_GOODS: {
22
23
  key: 'bsReissueGoods',
@@ -53,9 +54,13 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
53
54
  _defineProperty(this, "canSort", void 0);
54
55
  _defineProperty(this, "children", void 0);
55
56
  _defineProperty(this, "dataType", void 0);
57
+ _defineProperty(this, "sortChildField", void 0);
56
58
  _defineProperty(this, "bsType", void 0);
57
59
  _defineProperty(this, "bsMemo", void 0);
58
60
  _defineProperty(this, "reissueGoods", void 0);
61
+ _defineProperty(this, "getSortChildFields", function () {
62
+ return getGoodsSortChildFields(_this.type, _this.id);
63
+ });
59
64
  _defineProperty(this, "renderClient", function (record) {
60
65
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
61
66
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -181,5 +186,6 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
181
186
  }
182
187
  }] : [];
183
188
  this.dataType = 'object';
189
+ this.sortChildField = this.getSortChildFields();
184
190
  });
185
191
  export default BsReissue;
@@ -14,10 +14,17 @@ declare class BsReturn implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  bsType: BsType;
18
19
  bsMemo: BsMemo;
19
20
  reissueGoods: BsHeaderGood;
20
21
  constructor(options: PickOption);
22
+ getSortChildFields: () => {
23
+ name: any;
24
+ key: string;
25
+ dataType: string;
26
+ conditionOptionsSetting: any;
27
+ }[];
21
28
  renderClient: (record: any) => React.JSX.Element | null;
22
29
  renderPc: () => null;
23
30
  renderLog: (r: Record) => React.JSX.Element;
@@ -16,6 +16,7 @@ import { BsReturn as BsReturnGoods } from "@kmkf-fe-packages/basic-components";
16
16
  import { SYMBOL } from "../../../constant";
17
17
  import { BsGoodsTable } from "../../Common";
18
18
  import { BsType, BsMemo, BsHeaderGood } from "../common/index";
19
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
19
20
  var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
20
21
  var _this = this,
21
22
  _this$componentConfig6;
@@ -32,9 +33,13 @@ var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
32
33
  _defineProperty(this, "canSort", void 0);
33
34
  _defineProperty(this, "children", void 0);
34
35
  _defineProperty(this, "dataType", void 0);
36
+ _defineProperty(this, "sortChildField", void 0);
35
37
  _defineProperty(this, "bsType", void 0);
36
38
  _defineProperty(this, "bsMemo", void 0);
37
39
  _defineProperty(this, "reissueGoods", void 0);
40
+ _defineProperty(this, "getSortChildFields", function () {
41
+ return getGoodsSortChildFields(_this.type, _this.id);
42
+ });
38
43
  _defineProperty(this, "renderClient", function (record) {
39
44
  var _this$componentConfig;
40
45
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].bsReturnGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -148,5 +153,6 @@ var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
148
153
  }
149
154
  }] : [];
150
155
  this.dataType = "object";
156
+ this.sortChildField = this.getSortChildFields();
151
157
  });
152
158
  export default BsReturn;
@@ -14,8 +14,15 @@ declare class BSE3Goods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  bsE3Goods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
19
20
  var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
20
21
  var _this = this,
21
22
  _this$componentConfig6;
@@ -32,7 +33,11 @@ var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
32
33
  _defineProperty(this, "canSort", void 0);
33
34
  _defineProperty(this, "children", void 0);
34
35
  _defineProperty(this, "dataType", void 0);
36
+ _defineProperty(this, "sortChildField", void 0);
35
37
  _defineProperty(this, "bsE3Goods", void 0);
38
+ _defineProperty(this, "getSortChildFields", function () {
39
+ return getGoodsSortChildFields(_this.type, _this.id);
40
+ });
36
41
  _defineProperty(this, "renderClient", function (record) {
37
42
  var _record, _this$componentConfig;
38
43
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -119,5 +124,6 @@ var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
119
124
  }
120
125
  }] : [];
121
126
  this.dataType = "object";
127
+ this.sortChildField = this.getSortChildFields();
122
128
  });
123
129
  export default BSE3Goods;
@@ -15,11 +15,18 @@ declare class BsE3Reissue implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  bsType: BsType;
19
20
  bsMemo: BsMemo;
20
21
  systemOrderNo: SystemOrderNo;
21
22
  reissueGoods: BsHeaderGood | CommonHeaderGoods;
22
23
  constructor(options: PickOption);
24
+ getSortChildFields: () => {
25
+ name: any;
26
+ key: string;
27
+ dataType: string;
28
+ conditionOptionsSetting: any;
29
+ }[];
23
30
  renderClient: (record: any) => React.JSX.Element | null;
24
31
  renderPc: () => null;
25
32
  renderLog: (r: Record) => React.JSX.Element;
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
17
17
  import { BsGoodsTable } from "../../Common/index";
18
18
  import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var typeMap = {
21
22
  BS_E3_REISSUE_GOODS: {
22
23
  key: "bsE3ReissueGoods",
@@ -47,10 +48,14 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
47
48
  _defineProperty(this, "canSort", void 0);
48
49
  _defineProperty(this, "children", void 0);
49
50
  _defineProperty(this, "dataType", void 0);
51
+ _defineProperty(this, "sortChildField", void 0);
50
52
  _defineProperty(this, "bsType", void 0);
51
53
  _defineProperty(this, "bsMemo", void 0);
52
54
  _defineProperty(this, "systemOrderNo", void 0);
53
55
  _defineProperty(this, "reissueGoods", void 0);
56
+ _defineProperty(this, "getSortChildFields", function () {
57
+ return getGoodsSortChildFields(_this.type, _this.id);
58
+ });
54
59
  _defineProperty(this, "renderClient", function (record) {
55
60
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
56
61
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -190,5 +195,6 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
190
195
  }
191
196
  }] : [];
192
197
  this.dataType = "object";
198
+ this.sortChildField = this.getSortChildFields();
193
199
  });
194
200
  export default BsE3Reissue;
@@ -3,3 +3,9 @@ export declare type ColumnsMapType = {
3
3
  };
4
4
  export declare type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
5
5
  export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
6
+ export declare const getGoodsSortChildFields: (type: string, id: string) => {
7
+ name: any;
8
+ key: string;
9
+ dataType: string;
10
+ conditionOptionsSetting: any;
11
+ }[];
@@ -37,4 +37,18 @@ export var getColumnsMap = function getColumnsMap(args) {
37
37
  text: text
38
38
  })["default"]
39
39
  });
40
+ };
41
+ export var getGoodsSortChildFields = function getGoodsSortChildFields(type, id) {
42
+ var columnsMap = getColumnsMap();
43
+ var columns = columnsMap[type] || (type.startsWith("BS_") ? columnsMap.BS_GOODS : columnsMap.default) || [];
44
+ return columns.filter(function (item) {
45
+ return !["picUrl"].includes(item.dataIndex);
46
+ }).map(function (item) {
47
+ return {
48
+ name: item.title,
49
+ key: "".concat(id, "_").concat(item.dataIndex),
50
+ dataType: "arrayObject",
51
+ conditionOptionsSetting: item.conditionOptionsSetting
52
+ };
53
+ });
40
54
  };
@@ -14,8 +14,15 @@ declare class GyGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  gyGoods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -17,6 +17,7 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
19
  import { useGoodsSourceFormat } from "../../../Hooks";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
21
22
  var _this = this,
22
23
  _this$componentConfig6;
@@ -33,7 +34,11 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
33
34
  _defineProperty(this, "canSort", void 0);
34
35
  _defineProperty(this, "children", void 0);
35
36
  _defineProperty(this, "dataType", void 0);
37
+ _defineProperty(this, "sortChildField", void 0);
36
38
  _defineProperty(this, "gyGoods", void 0);
39
+ _defineProperty(this, "getSortChildFields", function () {
40
+ return getGoodsSortChildFields(_this.type, _this.id);
41
+ });
37
42
  _defineProperty(this, "renderClient", function (record) {
38
43
  var _record, _this$componentConfig;
39
44
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -123,5 +128,6 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
123
128
  }
124
129
  }] : [];
125
130
  this.dataType = "object";
131
+ this.sortChildField = this.getSortChildFields();
126
132
  });
127
133
  export default GyGoods;
@@ -15,11 +15,18 @@ declare class GyReissue implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  bsType: BsType;
19
20
  bsMemo: BsMemo;
20
21
  systemOrderNo: SystemOrderNo;
21
22
  reissueGoods: BsHeaderGood | CommonHeaderGoods;
22
23
  constructor(options: PickOption);
24
+ getSortChildFields: () => {
25
+ name: any;
26
+ key: string;
27
+ dataType: string;
28
+ conditionOptionsSetting: any;
29
+ }[];
23
30
  renderClient: (record: any) => React.JSX.Element | null;
24
31
  renderPc: () => null;
25
32
  renderLog: (r: Record) => React.JSX.Element;
@@ -18,6 +18,7 @@ import { BsGoodsTable } from "../../Common/index";
18
18
  import { BsType, BsMemo, SystemOrderNo } from "../../BS/common/index";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
20
  import { useGoodsSourceFormat } from "../../../Hooks";
21
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
21
22
  var typeMap = {
22
23
  GY_REISSUE_GOODS: {
23
24
  key: "gyReissueGoods",
@@ -56,10 +57,14 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
56
57
  _defineProperty(this, "canSort", void 0);
57
58
  _defineProperty(this, "children", void 0);
58
59
  _defineProperty(this, "dataType", void 0);
60
+ _defineProperty(this, "sortChildField", void 0);
59
61
  _defineProperty(this, "bsType", void 0);
60
62
  _defineProperty(this, "bsMemo", void 0);
61
63
  _defineProperty(this, "systemOrderNo", void 0);
62
64
  _defineProperty(this, "reissueGoods", void 0);
65
+ _defineProperty(this, "getSortChildFields", function () {
66
+ return getGoodsSortChildFields(_this.type, _this.id);
67
+ });
63
68
  _defineProperty(this, "renderClient", function (record) {
64
69
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
65
70
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -206,5 +211,6 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
206
211
  }
207
212
  }];
208
213
  this.dataType = "object";
214
+ this.sortChildField = this.getSortChildFields();
209
215
  });
210
216
  export default GyReissue;
@@ -15,10 +15,17 @@ declare class GyReturn implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  gyType: BsType;
19
20
  systemOrderNo: SystemOrderNo;
20
21
  returnGoods: BsHeaderGood | CommonHeaderGoods;
21
22
  constructor(options: PickOption);
23
+ getSortChildFields: () => {
24
+ name: any;
25
+ key: string;
26
+ dataType: string;
27
+ conditionOptionsSetting: any;
28
+ }[];
22
29
  renderClient: (record: any) => React.JSX.Element | null;
23
30
  renderPc: () => null;
24
31
  renderLog: (r: Record) => React.JSX.Element;
@@ -18,6 +18,7 @@ import CommonHeaderGoods from "../../CommonHeaderGood";
18
18
  import { GyReturn as Return, erpFormValidator } from "@kmkf-fe-packages/basic-components";
19
19
  import { BsType, SystemOrderNo } from "../../BS/common/index";
20
20
  import { useGoodsSourceFormat } from "../../../Hooks";
21
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
21
22
  var typeMap = {
22
23
  GY_RETURN_GOODS: {
23
24
  key: "gyReturnGoods",
@@ -54,9 +55,13 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
54
55
  _defineProperty(this, "canSort", void 0);
55
56
  _defineProperty(this, "children", void 0);
56
57
  _defineProperty(this, "dataType", void 0);
58
+ _defineProperty(this, "sortChildField", void 0);
57
59
  _defineProperty(this, "gyType", void 0);
58
60
  _defineProperty(this, "systemOrderNo", void 0);
59
61
  _defineProperty(this, "returnGoods", void 0);
62
+ _defineProperty(this, "getSortChildFields", function () {
63
+ return getGoodsSortChildFields(_this.type, _this.id);
64
+ });
60
65
  _defineProperty(this, "renderClient", function (record) {
61
66
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
62
67
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.gyType.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -198,5 +203,6 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
198
203
  }
199
204
  }];
200
205
  this.dataType = "object";
206
+ this.sortChildField = this.getSortChildFields();
201
207
  });
202
208
  export default GyReturn;
@@ -14,8 +14,15 @@ declare class KmExchange implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  returnGoods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element;
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
17
17
  // import { BsType, BsMemo } from "../../Bs/common";
18
18
  import { CommonExchangeGoods, erpFormValidator } from "@kmkf-fe-packages/basic-components";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
21
22
  var _this = this,
22
23
  _this$componentConfig6,
@@ -34,7 +35,11 @@ var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
34
35
  _defineProperty(this, "canSort", void 0);
35
36
  _defineProperty(this, "children", void 0);
36
37
  _defineProperty(this, "dataType", void 0);
38
+ _defineProperty(this, "sortChildField", void 0);
37
39
  _defineProperty(this, "returnGoods", void 0);
40
+ _defineProperty(this, "getSortChildFields", function () {
41
+ return getGoodsSortChildFields(_this.type, _this.id);
42
+ });
38
43
  _defineProperty(this, "renderClient", function (record) {
39
44
  var _this$componentConfig;
40
45
  var kmExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_kmExchangeGoods")]) || "[]");
@@ -132,5 +137,6 @@ var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
132
137
  }
133
138
  }];
134
139
  this.dataType = "object";
140
+ this.sortChildField = this.getSortChildFields();
135
141
  });
136
142
  export default KmExchange;
@@ -19,10 +19,17 @@ declare class Exchange implements ComponentInterface {
19
19
  canSort: boolean;
20
20
  children: ComponentInterface[];
21
21
  dataType: ComponentInterface['dataType'];
22
+ sortChildField: NonNullable<ComponentInterface['sortChildField']>;
22
23
  returnGoods: CommonHeaderGoods;
23
24
  config: ConfigType;
24
25
  form?: FormInstance;
25
26
  constructor(options: PickOption);
27
+ getSortChildFields: () => {
28
+ name: any;
29
+ key: string;
30
+ dataType: string;
31
+ conditionOptionsSetting: any;
32
+ }[];
26
33
  renderClient: (record: any) => React.JSX.Element | null;
27
34
  renderPc: () => null;
28
35
  renderLog: (r: Record) => React.JSX.Element;
@@ -18,6 +18,7 @@ import { SYMBOL } from "../../../constant";
18
18
  import { CommonExchangeGoods } from '@kmkf-fe-packages/basic-components';
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
20
  import { erpFormValidator } from "@kmkf-fe-packages/basic-components";
21
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
21
22
  function toNum(value) {
22
23
  if (typeof value === 'string') {
23
24
  return value ? +value : void 0;
@@ -58,9 +59,13 @@ var Exchange = /*#__PURE__*/_createClass(function Exchange(options) {
58
59
  _defineProperty(this, "canSort", void 0);
59
60
  _defineProperty(this, "children", void 0);
60
61
  _defineProperty(this, "dataType", void 0);
62
+ _defineProperty(this, "sortChildField", void 0);
61
63
  _defineProperty(this, "returnGoods", void 0);
62
64
  _defineProperty(this, "config", void 0);
63
65
  _defineProperty(this, "form", void 0);
66
+ _defineProperty(this, "getSortChildFields", function () {
67
+ return getGoodsSortChildFields(_this.type, _this.id);
68
+ });
64
69
  _defineProperty(this, "renderClient", function (record) {
65
70
  var _this$componentConfig;
66
71
  var exchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.config.goodsKey)]) || '[]');
@@ -156,5 +161,6 @@ var Exchange = /*#__PURE__*/_createClass(function Exchange(options) {
156
161
  }
157
162
  }];
158
163
  this.dataType = 'object';
164
+ this.sortChildField = this.getSortChildFields();
159
165
  });
160
166
  export default Exchange;
@@ -15,7 +15,7 @@ import CommonHeaderGoods from "../../CommonHeaderGood";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
- import { getColumnsMap } from "../../Common/constants/columnsBaseInfoMap";
18
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
19
19
  import { SYMBOL } from "../../../constant";
20
20
  var CONFIG_MAP = {
21
21
  JST_GOODS: {
@@ -79,17 +79,7 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
79
79
  _defineProperty(this, "standardDateType", void 0);
80
80
  _defineProperty(this, "sortChildField", void 0);
81
81
  _defineProperty(this, "getSortChildFields", function () {
82
- var Columns = getColumnsMap();
83
- return Columns[_this.type].filter(function (item) {
84
- return !["picUrl"].includes(item.dataIndex);
85
- }).map(function (item) {
86
- return {
87
- name: item.title,
88
- key: "".concat(_this.id, "_").concat(item.dataIndex),
89
- dataType: "arrayObject",
90
- conditionOptionsSetting: item.conditionOptionsSetting
91
- };
92
- });
82
+ return getGoodsSortChildFields(_this.type, _this.id);
93
83
  });
94
84
  _defineProperty(this, "renderClient", function (record) {
95
85
  var _record, _CONFIG_MAP$_this$typ, _this$componentConfig;
@@ -16,11 +16,18 @@ declare class PublicReissue implements ComponentInterface {
16
16
  canSort: boolean;
17
17
  children: ComponentInterface[];
18
18
  dataType: ComponentInterface["dataType"];
19
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
19
20
  bsType: BsType;
20
21
  systemOrderNo: SystemOrderNo;
21
22
  systemOrderType?: SystemOrderType;
22
23
  goods: BsHeaderGood | CommonHeaderGoods;
23
24
  constructor(options: PickOption);
25
+ getSortChildFields: () => {
26
+ name: any;
27
+ key: string;
28
+ dataType: string;
29
+ conditionOptionsSetting: any;
30
+ }[];
24
31
  renderClient: (record: any) => React.JSX.Element | null;
25
32
  renderPc: () => null;
26
33
  renderLog: (r: Record) => React.JSX.Element;
@@ -18,6 +18,7 @@ import { BsGoodsTable } from "../../Common/index";
18
18
  import { BsType, SystemOrderNo } from "../../BS/common/index";
19
19
  import SystemOrderType from "../SystemOrderType";
20
20
  import CommonHeaderGoods from "../../CommonHeaderGood";
21
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
21
22
  var typeMap = {
22
23
  JST_REISSUE_GOODS: {
23
24
  key: "jstReissueGoods",
@@ -174,10 +175,14 @@ var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
174
175
  _defineProperty(this, "canSort", void 0);
175
176
  _defineProperty(this, "children", void 0);
176
177
  _defineProperty(this, "dataType", void 0);
178
+ _defineProperty(this, "sortChildField", void 0);
177
179
  _defineProperty(this, "bsType", void 0);
178
180
  _defineProperty(this, "systemOrderNo", void 0);
179
181
  _defineProperty(this, "systemOrderType", void 0);
180
182
  _defineProperty(this, "goods", void 0);
183
+ _defineProperty(this, "getSortChildFields", function () {
184
+ return getGoodsSortChildFields(_this.type, _this.id);
185
+ });
181
186
  _defineProperty(this, "renderClient", function (record) {
182
187
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
183
188
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.systemOrderNo.renderClient(record), _this.systemOrderType && _this.systemOrderType.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -331,5 +336,6 @@ var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
331
336
  }
332
337
  }];
333
338
  this.dataType = "object";
339
+ this.sortChildField = this.getSortChildFields();
334
340
  });
335
341
  export default PublicReissue;
@@ -14,8 +14,15 @@ declare class SkxGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  skxGoods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { SkxGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
19
20
  var typeMap = {
20
21
  SKX_GOODS: {
21
22
  name: "[SKX]商品信息(ON)",
@@ -42,7 +43,11 @@ var SkxGoods = /*#__PURE__*/_createClass(function SkxGoods(options) {
42
43
  _defineProperty(this, "canSort", void 0);
43
44
  _defineProperty(this, "children", void 0);
44
45
  _defineProperty(this, "dataType", void 0);
46
+ _defineProperty(this, "sortChildField", void 0);
45
47
  _defineProperty(this, "skxGoods", void 0);
48
+ _defineProperty(this, "getSortChildFields", function () {
49
+ return getGoodsSortChildFields(_this.type, _this.id);
50
+ });
46
51
  _defineProperty(this, "renderClient", function (record) {
47
52
  var _record, _this$componentConfig;
48
53
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -131,5 +136,6 @@ var SkxGoods = /*#__PURE__*/_createClass(function SkxGoods(options) {
131
136
  }
132
137
  }] : [];
133
138
  this.dataType = "object";
139
+ this.sortChildField = this.getSortChildFields();
134
140
  });
135
141
  export default SkxGoods;
@@ -14,8 +14,15 @@ declare class WDTExchange implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  returnGoods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element;
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
17
17
  // import { BsType, BsMemo } from "../../Bs/common";
18
18
  import { CommonExchangeGoods } from "@kmkf-fe-packages/basic-components";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var WDTExchange = /*#__PURE__*/_createClass(
21
22
  // wdtType: BsType;
22
23
  // wdtMemo: BsMemo;
@@ -39,7 +40,11 @@ function WDTExchange(options) {
39
40
  _defineProperty(this, "canSort", void 0);
40
41
  _defineProperty(this, "children", void 0);
41
42
  _defineProperty(this, "dataType", void 0);
43
+ _defineProperty(this, "sortChildField", void 0);
42
44
  _defineProperty(this, "returnGoods", void 0);
45
+ _defineProperty(this, "getSortChildFields", function () {
46
+ return getGoodsSortChildFields(_this.type, _this.id);
47
+ });
43
48
  _defineProperty(this, "renderClient", function (record) {
44
49
  var _this$componentConfig;
45
50
  var wdtExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_wdtExchangeGoods")]) || "[]");
@@ -180,5 +185,6 @@ function WDTExchange(options) {
180
185
  },*/];
181
186
 
182
187
  this.dataType = "object";
188
+ this.sortChildField = this.getSortChildFields();
183
189
  });
184
190
  export default WDTExchange;
@@ -14,8 +14,15 @@ declare class WdtGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  wdtGoods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
19
20
  var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
20
21
  var _this = this,
21
22
  _this$componentConfig6;
@@ -32,7 +33,11 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
32
33
  _defineProperty(this, "canSort", void 0);
33
34
  _defineProperty(this, "children", void 0);
34
35
  _defineProperty(this, "dataType", void 0);
36
+ _defineProperty(this, "sortChildField", void 0);
35
37
  _defineProperty(this, "wdtGoods", void 0);
38
+ _defineProperty(this, "getSortChildFields", function () {
39
+ return getGoodsSortChildFields(_this.type, _this.id);
40
+ });
36
41
  _defineProperty(this, "renderClient", function (record) {
37
42
  var _record, _this$componentConfig;
38
43
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -119,5 +124,6 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
119
124
  }
120
125
  }] : [];
121
126
  this.dataType = "object";
127
+ this.sortChildField = this.getSortChildFields();
122
128
  });
123
129
  export default WdtGoods;
@@ -15,11 +15,18 @@ declare class WdtReissue implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  bsType: BsType;
19
20
  bsMemo: BsMemo;
20
21
  systemOrderNo: SystemOrderNo;
21
22
  reissueGoods: BsHeaderGood | CommonHeaderGoods;
22
23
  constructor(options: PickOption);
24
+ getSortChildFields: () => {
25
+ name: any;
26
+ key: string;
27
+ dataType: string;
28
+ conditionOptionsSetting: any;
29
+ }[];
23
30
  renderClient: (record: any) => React.JSX.Element | null;
24
31
  renderPc: () => null;
25
32
  renderLog: (r: Record) => React.JSX.Element;
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
17
17
  import { BsGoodsTable } from "../../Common/index";
18
18
  import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var typeMap = {
21
22
  WDT_REISSUE_GOODS: {
22
23
  key: "wdtReissueGoods",
@@ -56,10 +57,14 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
56
57
  _defineProperty(this, "canSort", void 0);
57
58
  _defineProperty(this, "children", void 0);
58
59
  _defineProperty(this, "dataType", void 0);
60
+ _defineProperty(this, "sortChildField", void 0);
59
61
  _defineProperty(this, "bsType", void 0);
60
62
  _defineProperty(this, "bsMemo", void 0);
61
63
  _defineProperty(this, "systemOrderNo", void 0);
62
64
  _defineProperty(this, "reissueGoods", void 0);
65
+ _defineProperty(this, "getSortChildFields", function () {
66
+ return getGoodsSortChildFields(_this.type, _this.id);
67
+ });
63
68
  _defineProperty(this, "renderClient", function (record) {
64
69
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
65
70
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -208,5 +213,6 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
208
213
  }
209
214
  }];
210
215
  this.dataType = "object";
216
+ this.sortChildField = this.getSortChildFields();
211
217
  });
212
218
  export default WdtReissue;
@@ -15,9 +15,16 @@ declare class WdtReturn implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  wdtType: BsType;
19
20
  reissueGoods: CommonHeaderGoods;
20
21
  constructor(options: PickOption);
22
+ getSortChildFields: () => {
23
+ name: any;
24
+ key: string;
25
+ dataType: string;
26
+ conditionOptionsSetting: any;
27
+ }[];
21
28
  renderClient: (record: any) => React.JSX.Element | null;
22
29
  renderPc: () => null;
23
30
  renderLog: (r: Record) => React.JSX.Element;
@@ -17,6 +17,7 @@ import { BsGoodsTable } from "../../Common";
17
17
  import { BsType } from "../../BS/common/index";
18
18
  import { CommonReturnGoods } from "@kmkf-fe-packages/basic-components";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
21
22
  var _this = this,
22
23
  _this$componentConfig6;
@@ -33,8 +34,12 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
33
34
  _defineProperty(this, "canSort", void 0);
34
35
  _defineProperty(this, "children", void 0);
35
36
  _defineProperty(this, "dataType", void 0);
37
+ _defineProperty(this, "sortChildField", void 0);
36
38
  _defineProperty(this, "wdtType", void 0);
37
39
  _defineProperty(this, "reissueGoods", void 0);
40
+ _defineProperty(this, "getSortChildFields", function () {
41
+ return getGoodsSortChildFields(_this.type, _this.id);
42
+ });
38
43
  _defineProperty(this, "renderClient", function (record) {
39
44
  var _this$componentConfig;
40
45
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.wdtType.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].wdtReturnGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -147,5 +152,6 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
147
152
  }
148
153
  }] : [];
149
154
  this.dataType = "object";
155
+ this.sortChildField = this.getSortChildFields();
150
156
  });
151
157
  export default WdtReturn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.10.16",
3
+ "version": "2.10.17",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.10.16",
25
- "@kmkf-fe-packages/kmkf-utils": "2.10.16",
24
+ "@kmkf-fe-packages/basic-components": "2.10.17",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.10.17",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "7969bb9a25fdde865928f6e0dc4f3993e7673a36",
44
+ "gitHead": "211a683cc107ee6ac1889660707f5b9074a7a8ad",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }