@kmkf-fe-packages/services-components 1.22.1-beta.47 → 1.22.1-beta.48

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 (33) hide show
  1. package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
  2. package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
  3. package/dist/esm/components/BS/common/BsMemo.js +19 -18
  4. package/dist/esm/components/BS/common/BsType.d.ts +4 -4
  5. package/dist/esm/components/BS/common/BsType.js +17 -16
  6. package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
  7. package/dist/esm/components/Common/constants/bs.d.ts +3 -0
  8. package/dist/esm/components/Common/constants/bs.js +90 -0
  9. package/dist/esm/components/Common/constants/bs_e3.d.ts +3 -0
  10. package/dist/esm/components/Common/constants/bs_e3.js +154 -0
  11. package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +5 -0
  12. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +26 -0
  13. package/dist/esm/components/Common/constants/defaultColumns.d.ts +3 -0
  14. package/dist/esm/components/Common/constants/defaultColumns.js +76 -0
  15. package/dist/esm/components/Common/constants/gy.d.ts +3 -0
  16. package/dist/esm/components/Common/constants/gy.js +138 -0
  17. package/dist/esm/components/Common/constants/system.d.ts +3 -0
  18. package/dist/esm/components/Common/constants/system.js +58 -0
  19. package/dist/esm/components/Common/constants/wdt.d.ts +3 -0
  20. package/dist/esm/components/Common/constants/wdt.js +280 -0
  21. package/dist/esm/components/Common/index.js +11 -630
  22. package/dist/esm/components/CommonHeaderGood/index.js +196 -0
  23. package/dist/esm/components/GY/GyGoods/index.d.ts +33 -0
  24. package/dist/esm/components/GY/GyGoods/index.js +123 -0
  25. package/dist/esm/components/GY/GyReissue/index.d.ts +58 -0
  26. package/dist/esm/components/GY/GyReissue/index.js +188 -0
  27. package/dist/esm/components/JST/JstSendGood/index.js +18 -11
  28. package/dist/esm/components/KmErpSendGood/index.js +11 -11
  29. package/dist/esm/factory.d.ts +2 -2
  30. package/dist/esm/factory.js +7 -1
  31. package/dist/esm/index.d.ts +2 -0
  32. package/dist/esm/index.js +2 -0
  33. package/package.json +4 -4
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
11
  import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP, KM_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
14
+ import { isNull, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
15
15
  import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
@@ -179,7 +179,8 @@ var typeMap = {
179
179
  width: 150,
180
180
  ellipsis: true
181
181
  }]
182
- }
182
+ },
183
+ GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG
183
184
  };
184
185
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
185
186
  var _this = this,
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
3
  declare class BsMemo implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
- componentConfig: ComponentInterface['componentConfig'];
8
+ componentConfig: ComponentInterface["componentConfig"];
9
9
  align: ALignType;
10
10
  width: number;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface['dataType'];
15
+ dataType: ComponentInterface["dataType"];
16
16
  constructor(options: PickOption);
17
17
  getParentId: () => string;
18
18
  renderClient: (r: any) => React.JSX.Element | null;
@@ -11,16 +11,17 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  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); }
14
- import React from 'react';
14
+ import React from "react";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  var componentType = {
18
- BS_EXCHANGE_GOODS: 'bsExchangeType',
19
- BS_REISSUE_GOODS: 'bsReissueType',
20
- BS_RETURN_GOODS: 'bsReturnType',
21
- WDT_REISSUE_GOODS: 'wdtReissueType',
22
- WDT_RETURN_GOODS: 'wdtReturnType',
23
- BS_E3_REISSUE_GOODS: 'bsE3ReissueType'
18
+ BS_EXCHANGE_GOODS: "bsExchangeType",
19
+ BS_REISSUE_GOODS: "bsReissueType",
20
+ BS_RETURN_GOODS: "bsReturnType",
21
+ WDT_REISSUE_GOODS: "wdtReissueType",
22
+ WDT_RETURN_GOODS: "wdtReturnType",
23
+ BS_E3_REISSUE_GOODS: "bsE3ReissueType",
24
+ GY_REISSUE_GOODS: "gyReissueType"
24
25
  };
25
26
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
26
27
  var _this = this;
@@ -38,7 +39,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
38
39
  _defineProperty(this, "children", void 0);
39
40
  _defineProperty(this, "dataType", void 0);
40
41
  _defineProperty(this, "getParentId", function () {
41
- var _this$id$split = _this.id.split('_'),
42
+ var _this$id$split = _this.id.split("_"),
42
43
  _this$id$split2 = _slicedToArray(_this$id$split, 2),
43
44
  key = _this$id$split2[0],
44
45
  name = _this$id$split2[1];
@@ -46,14 +47,14 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
46
47
  });
47
48
  _defineProperty(this, "renderClient", function (r) {
48
49
  var _r$key$componentType$, _r$key, _r$key$componentType$2, _r$key2, _r$key2$componentType, _find, _this$componentConfig, _find2;
49
- var _this$getParentId$spl = _this.getParentId().split('_'),
50
+ var _this$getParentId$spl = _this.getParentId().split("_"),
50
51
  _this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
51
52
  key = _this$getParentId$spl2[0];
52
53
  if (!(r !== null && r !== void 0 && (_r$key$componentType$ = r[key][componentType[_this.type]]) !== null && _r$key$componentType$ !== void 0 && _r$key$componentType$.length)) {
53
54
  return null;
54
55
  }
55
- var type = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : (_r$key$componentType$2 = _r$key[componentType[_this.type]]) === null || _r$key$componentType$2 === void 0 ? void 0 : _r$key$componentType$2[0] : '';
56
- var memo = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key2 = r[key]) === null || _r$key2 === void 0 ? void 0 : (_r$key2$componentType = _r$key2[componentType[_this.type]]) === null || _r$key2$componentType === void 0 ? void 0 : _r$key2$componentType[1] : '';
56
+ var type = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : (_r$key$componentType$2 = _r$key[componentType[_this.type]]) === null || _r$key$componentType$2 === void 0 ? void 0 : _r$key$componentType$2[0] : "";
57
+ var memo = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key2 = r[key]) === null || _r$key2 === void 0 ? void 0 : (_r$key2$componentType = _r$key2[componentType[_this.type]]) === null || _r$key2$componentType === void 0 ? void 0 : _r$key2$componentType[1] : "";
57
58
  var children = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
58
59
  return item.value === type;
59
60
  })) === null || _find === void 0 ? void 0 : _find.children;
@@ -68,7 +69,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
68
69
  });
69
70
  _defineProperty(this, "renderPc", function (value, record) {
70
71
  var _this$getComponentVal;
71
- return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
72
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
72
73
  });
73
74
  _defineProperty(this, "renderLog", function (r) {
74
75
  var id = _this.getParentId();
@@ -78,8 +79,8 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
78
79
  _defineProperty(this, "getComponentValue", function (r) {
79
80
  var _r$id, _r$id2, _find3, _this$componentConfig2, _find4;
80
81
  var id = _this.getParentId();
81
- var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : '';
82
- var memo = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id2 = r[id]) === null || _r$id2 === void 0 ? void 0 : _r$id2[1] : '';
82
+ var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : "";
83
+ var memo = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id2 = r[id]) === null || _r$id2 === void 0 ? void 0 : _r$id2[1] : "";
83
84
  var children = (_find3 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
84
85
  return item.value === type;
85
86
  })) === null || _find3 === void 0 ? void 0 : _find3.children;
@@ -90,7 +91,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
90
91
  });
91
92
  _defineProperty(this, "renderExport", function (value, record) {
92
93
  var _this$getComponentVal2;
93
- return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
94
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
94
95
  });
95
96
  _defineProperty(this, "editRender", function () {
96
97
  return null;
@@ -104,11 +105,11 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
104
105
  this.formField = options.id;
105
106
  this.type = options.type;
106
107
  this.componentConfig = options.componentConfig;
107
- this.align = 'left';
108
+ this.align = "left";
108
109
  this.width = 140;
109
110
  this.isCombinationComponent = false;
110
111
  this.canSort = false;
111
- this.dataType = 'string';
112
+ this.dataType = "string";
112
113
  this.children = [];
113
114
  });
114
115
  export default BsMemo;
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
3
  declare class BsType implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
- componentConfig: ComponentInterface['componentConfig'];
8
+ componentConfig: ComponentInterface["componentConfig"];
9
9
  align: ALignType;
10
10
  width: number;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface['dataType'];
15
+ dataType: ComponentInterface["dataType"];
16
16
  constructor(options: PickOption);
17
17
  getParentId: () => string;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
@@ -11,17 +11,18 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  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); }
14
- import React from 'react';
14
+ import React from "react";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { SYMBOL } from "../../../constant";
18
18
  var componentType = {
19
- BS_EXCHANGE_GOODS: 'bsExchangeType',
20
- BS_REISSUE_GOODS: 'bsReissueType',
21
- BS_RETURN_GOODS: 'bsReturnType',
22
- WDT_REISSUE_GOODS: 'wdtReissueType',
23
- WDT_RETURN_GOODS: 'wdtReturnType',
24
- BS_E3_REISSUE_GOODS: 'bsE3ReissueType'
19
+ BS_EXCHANGE_GOODS: "bsExchangeType",
20
+ BS_REISSUE_GOODS: "bsReissueType",
21
+ BS_RETURN_GOODS: "bsReturnType",
22
+ WDT_REISSUE_GOODS: "wdtReissueType",
23
+ WDT_RETURN_GOODS: "wdtReturnType",
24
+ BS_E3_REISSUE_GOODS: "bsE3ReissueType",
25
+ GY_REISSUE_GOODS: "gyReissueType"
25
26
  };
26
27
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
27
28
  var _this = this;
@@ -39,7 +40,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
39
40
  _defineProperty(this, "children", void 0);
40
41
  _defineProperty(this, "dataType", void 0);
41
42
  _defineProperty(this, "getParentId", function () {
42
- var _this$id$split = _this.id.split('_'),
43
+ var _this$id$split = _this.id.split("_"),
43
44
  _this$id$split2 = _slicedToArray(_this$id$split, 2),
44
45
  key = _this$id$split2[0],
45
46
  name = _this$id$split2[1];
@@ -47,7 +48,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
47
48
  });
48
49
  _defineProperty(this, "renderClient", function (record) {
49
50
  var _record$key$component, _find, _this$componentConfig;
50
- var _this$getParentId$spl = _this.getParentId().split('_'),
51
+ var _this$getParentId$spl = _this.getParentId().split("_"),
51
52
  _this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
52
53
  key = _this$getParentId$spl2[0];
53
54
  if (!(record !== null && record !== void 0 && (_record$key$component = record[key][componentType[_this.type]]) !== null && _record$key$component !== void 0 && _record$key$component.length)) {
@@ -65,7 +66,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
65
66
  });
66
67
  _defineProperty(this, "renderPc", function (value, record) {
67
68
  var _this$getComponentVal;
68
- return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
69
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
69
70
  });
70
71
  _defineProperty(this, "renderLog", function (r) {
71
72
  var id = _this.getParentId();
@@ -75,7 +76,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
75
76
  _defineProperty(this, "getComponentValue", function (r) {
76
77
  var _r$id, _find2, _this$componentConfig2;
77
78
  var id = _this.getParentId();
78
- var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : '';
79
+ var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : "";
79
80
  var text = (_find2 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
80
81
  return item.value === type;
81
82
  })) === null || _find2 === void 0 ? void 0 : _find2.label;
@@ -83,7 +84,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
83
84
  });
84
85
  _defineProperty(this, "renderExport", function (value, record) {
85
86
  var _this$getComponentVal2;
86
- return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
87
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
87
88
  });
88
89
  _defineProperty(this, "editRender", function () {
89
90
  return null;
@@ -97,7 +98,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
97
98
  type: item.type,
98
99
  id: _this.id,
99
100
  name: "".concat(item.name, "-\u7C7B\u578B"),
100
- filterComponentType: 'Cascader',
101
+ filterComponentType: "Cascader",
101
102
  props: {
102
103
  options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList) || []
103
104
  },
@@ -119,11 +120,11 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
119
120
  this.formField = options.id;
120
121
  this.type = options.type;
121
122
  this.componentConfig = options.componentConfig;
122
- this.align = 'left';
123
+ this.align = "left";
123
124
  this.width = 140;
124
125
  this.isCombinationComponent = false;
125
126
  this.canSort = false;
126
- this.dataType = 'string';
127
+ this.dataType = "string";
127
128
  this.children = [];
128
129
  });
129
130
  export default BsType;
@@ -16,7 +16,8 @@ import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  var componentType = {
18
18
  WDT_REISSUE_GOODS: "wdtSystemOrderNo",
19
- BS_E3_REISSUE_GOODS: "bsE3SystemOrderNo"
19
+ BS_E3_REISSUE_GOODS: "bsE3SystemOrderNo",
20
+ GY_REISSUE_GOODS: "gySystemOrderNo"
20
21
  };
21
22
  var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
22
23
  var _this = this;
@@ -0,0 +1,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from "./columnsBaseInfoMap";
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;
@@ -0,0 +1,90 @@
1
+ import React from "react";
2
+ import { Image } from "antd";
3
+ var getColumns = function getColumns(_ref) {
4
+ var _ref$text = _ref.text,
5
+ text = _ref$text === void 0 ? "" : _ref$text;
6
+ var data = {
7
+ //bs商品信息
8
+ BS_GOODS: [{
9
+ dataIndex: "mark",
10
+ title: "\u5546\u54C1\u6807\u8BB0",
11
+ align: "center",
12
+ ellipsis: true,
13
+ width: 100
14
+ }, {
15
+ dataIndex: "skuName",
16
+ title: "".concat(text, "sku\u540D\u79F0"),
17
+ align: "center",
18
+ ellipsis: true,
19
+ width: 200
20
+ }, {
21
+ dataIndex: "sku",
22
+ title: "".concat(text, "sku\u7F16\u7801"),
23
+ align: "center",
24
+ ellipsis: true,
25
+ width: 100
26
+ }, {
27
+ dataIndex: "name",
28
+ title: "".concat(text, "\u540D\u79F0"),
29
+ align: "center",
30
+ ellipsis: true,
31
+ width: 200
32
+ }, {
33
+ dataIndex: "pic",
34
+ title: "\u56FE\u7247",
35
+ align: "center",
36
+ ellipsis: true,
37
+ width: 100,
38
+ render: function render(val) {
39
+ return /*#__PURE__*/React.createElement(Image, {
40
+ width: 60,
41
+ src: val
42
+ });
43
+ }
44
+ }, {
45
+ dataIndex: "code",
46
+ title: "".concat(text, "\u7F16\u7801"),
47
+ align: "center",
48
+ ellipsis: true,
49
+ width: 100
50
+ }, {
51
+ dataIndex: "money",
52
+ title: "\u5B9E\u4ED8\u91D1\u989D",
53
+ align: "center",
54
+ ellipsis: true,
55
+ width: 100
56
+ }, {
57
+ dataIndex: "number",
58
+ title: "".concat(text, "\u6570\u91CF"),
59
+ align: "center",
60
+ ellipsis: true,
61
+ width: 100
62
+ }, {
63
+ dataIndex: "share",
64
+ title: "\u5206\u644A\u4EF7",
65
+ align: "center",
66
+ ellipsis: true,
67
+ width: 70
68
+ }, {
69
+ dataIndex: "type",
70
+ title: "\u8D60\u54C1\u7C7B\u578B",
71
+ align: "center",
72
+ ellipsis: true,
73
+ width: 100
74
+ }, {
75
+ dataIndex: "batch",
76
+ title: "\u6279\u6B21\u53F7",
77
+ align: "center",
78
+ ellipsis: true,
79
+ width: 100
80
+ }, {
81
+ dataIndex: "expireDate",
82
+ title: "\u6709\u6548\u671F",
83
+ align: "center",
84
+ ellipsis: true,
85
+ width: 100
86
+ }]
87
+ };
88
+ return data;
89
+ };
90
+ export default getColumns;
@@ -0,0 +1,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from "./columnsBaseInfoMap";
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;
@@ -0,0 +1,154 @@
1
+ import React from "react";
2
+ import { Image } from "antd";
3
+ import { BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
4
+ var getColumns = function getColumns() {
5
+ var data = {
6
+ //百胜商品信息
7
+ BS_E3_GOODS: [{
8
+ dataIndex: "sku",
9
+ title: "SKU",
10
+ align: "center",
11
+ ellipsis: true,
12
+ width: 150
13
+ }, {
14
+ dataIndex: "skuId",
15
+ title: "SKU ID",
16
+ align: "center",
17
+ ellipsis: true,
18
+ width: 150
19
+ }, {
20
+ dataIndex: "goodsName",
21
+ title: "\u5546\u54C1\u540D\u79F0",
22
+ align: "center",
23
+ ellipsis: true,
24
+ width: 150
25
+ }, {
26
+ dataIndex: "goodsShortName",
27
+ title: "\u5546\u54C1\u7B80\u79F0",
28
+ align: "center",
29
+ ellipsis: true,
30
+ width: 100
31
+ }, {
32
+ dataIndex: "picPath",
33
+ title: "\u5546\u54C1\u56FE\u7247",
34
+ align: "center",
35
+ ellipsis: true,
36
+ width: 100,
37
+ render: function render(val) {
38
+ return /*#__PURE__*/React.createElement(Image, {
39
+ width: 60,
40
+ src: val
41
+ });
42
+ }
43
+ }, {
44
+ dataIndex: "goodsSn",
45
+ title: "\u8D27\u53F7",
46
+ align: "center",
47
+ ellipsis: true,
48
+ width: 150
49
+ }, {
50
+ dataIndex: "goodsId",
51
+ title: "\u8D27\u53F7ID",
52
+ align: "center",
53
+ ellipsis: true,
54
+ width: 150
55
+ }, {
56
+ dataIndex: "colorName",
57
+ title: "\u989C\u8272\u540D\u79F0",
58
+ align: "center",
59
+ ellipsis: true,
60
+ width: 100
61
+ }, {
62
+ dataIndex: "colorCode",
63
+ title: "\u989C\u8272\u4EE3\u7801",
64
+ align: "center",
65
+ ellipsis: true,
66
+ width: 150
67
+ }, {
68
+ dataIndex: "sizeName",
69
+ title: "\u5C3A\u7801\u540D\u79F0",
70
+ align: "center",
71
+ ellipsis: true,
72
+ width: 100
73
+ }, {
74
+ dataIndex: "sizeCode",
75
+ title: "\u5C3A\u7801\u4EE3\u7801",
76
+ align: "center",
77
+ ellipsis: true,
78
+ width: 100
79
+ }, {
80
+ dataIndex: "brandName",
81
+ title: "\u54C1\u724C\u540D\u79F0",
82
+ align: "center",
83
+ ellipsis: true,
84
+ width: 150
85
+ }, {
86
+ dataIndex: "goodsNumber",
87
+ title: "\u5546\u54C1\u6570\u91CF",
88
+ align: "center",
89
+ ellipsis: true,
90
+ width: 100
91
+ }, {
92
+ dataIndex: "goodsPrice",
93
+ title: "\u5546\u54C1\u5355\u4EF7",
94
+ align: "center",
95
+ ellipsis: true,
96
+ width: 120
97
+ }, {
98
+ dataIndex: "shopPrice",
99
+ title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
100
+ align: "center",
101
+ ellipsis: true,
102
+ width: 120
103
+ }, {
104
+ dataIndex: "sharePrice",
105
+ title: "\u5206\u644A\u4EF7",
106
+ align: "center",
107
+ ellipsis: true,
108
+ width: 120
109
+ }, {
110
+ dataIndex: "sharePayment",
111
+ title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
112
+ align: "center",
113
+ ellipsis: true,
114
+ width: 120
115
+ }, {
116
+ dataIndex: "payment",
117
+ title: "\u5B9E\u4ED8\u91D1\u989D",
118
+ align: "center",
119
+ ellipsis: true,
120
+ width: 120
121
+ }, {
122
+ dataIndex: "tcSku",
123
+ title: "\u5957\u9910SKU",
124
+ align: "center",
125
+ ellipsis: true,
126
+ width: 150
127
+ }, {
128
+ dataIndex: "tcGoodsNumber",
129
+ title: "\u5957\u9910\u5957\u6570",
130
+ align: "center",
131
+ ellipsis: true,
132
+ width: 100
133
+ }, {
134
+ dataIndex: "taoCanSingleSl",
135
+ title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
136
+ align: "center",
137
+ ellipsis: true,
138
+ width: 100
139
+ }, {
140
+ dataIndex: "isGift",
141
+ title: "\u662F\u5426\u8D60\u54C1",
142
+ align: "center",
143
+ ellipsis: true,
144
+ width: 100,
145
+ render: function render(val) {
146
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
147
+ }
148
+ }]
149
+ };
150
+ //百胜补发商品信息
151
+ data["BS_E3_REISSUE_GOODS"] = data["BS_E3_GOODS"];
152
+ return data;
153
+ };
154
+ export default getColumns;
@@ -0,0 +1,5 @@
1
+ export declare type ColumnsMapType = {
2
+ [key: string]: any[];
3
+ };
4
+ export declare type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
5
+ export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
@@ -0,0 +1,26 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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
+ import system from "./system";
8
+ import bs_e3 from "./bs_e3";
9
+ import bs from "./bs";
10
+ import wdt from "./wdt";
11
+ import gy from "./gy";
12
+ import defaultColumns from "./defaultColumns";
13
+ export var getColumnsMap = function getColumnsMap(args) {
14
+ var _ref = args || {},
15
+ _ref$text = _ref.text,
16
+ text = _ref$text === void 0 ? "" : _ref$text;
17
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
18
+ text: text
19
+ })), bs_e3()), wdt({
20
+ text: text
21
+ })), gy()), {}, {
22
+ default: defaultColumns({
23
+ text: text
24
+ })["default"]
25
+ });
26
+ };
@@ -0,0 +1,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from "./columnsBaseInfoMap";
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;
@@ -0,0 +1,76 @@
1
+ import React from "react";
2
+ import { Image } from "antd";
3
+ var getColumns = function getColumns(_ref) {
4
+ var _ref$text = _ref.text,
5
+ text = _ref$text === void 0 ? "" : _ref$text;
6
+ return {
7
+ default: [{
8
+ dataIndex: "mark",
9
+ title: "\u5546\u54C1\u6807\u8BB0",
10
+ align: "center",
11
+ ellipsis: true,
12
+ width: 100
13
+ }, {
14
+ dataIndex: "skuName",
15
+ title: "".concat(text, "sku\u540D\u79F0"),
16
+ align: "center",
17
+ ellipsis: true,
18
+ width: 200
19
+ }, {
20
+ dataIndex: "sku",
21
+ title: "".concat(text, "sku\u7F16\u7801"),
22
+ align: "center",
23
+ ellipsis: true,
24
+ width: 100
25
+ }, {
26
+ dataIndex: "name",
27
+ title: "".concat(text, "\u540D\u79F0"),
28
+ align: "center",
29
+ ellipsis: true,
30
+ width: 200
31
+ }, {
32
+ dataIndex: "pic",
33
+ title: "\u56FE\u7247",
34
+ align: "center",
35
+ ellipsis: true,
36
+ width: 100,
37
+ render: function render(val) {
38
+ return /*#__PURE__*/React.createElement(Image, {
39
+ width: 60,
40
+ src: val
41
+ });
42
+ }
43
+ }, {
44
+ dataIndex: "code",
45
+ title: "".concat(text, "\u7F16\u7801"),
46
+ align: "center",
47
+ ellipsis: true,
48
+ width: 100
49
+ }, {
50
+ dataIndex: "money",
51
+ title: "\u5B9E\u4ED8\u91D1\u989D",
52
+ align: "center",
53
+ ellipsis: true,
54
+ width: 100
55
+ }, {
56
+ dataIndex: "number",
57
+ title: "".concat(text, "\u6570\u91CF"),
58
+ align: "center",
59
+ ellipsis: true,
60
+ width: 100
61
+ }, {
62
+ dataIndex: "share",
63
+ title: "\u5206\u644A\u4EF7",
64
+ align: "center",
65
+ ellipsis: true,
66
+ width: 70
67
+ }, {
68
+ dataIndex: "type",
69
+ title: "\u8D60\u54C1\u7C7B\u578B",
70
+ align: "center",
71
+ ellipsis: true,
72
+ width: 100
73
+ }]
74
+ };
75
+ };
76
+ export default getColumns;
@@ -0,0 +1,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from "./columnsBaseInfoMap";
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;