@kmkf-fe-packages/services-components 1.26.0 → 1.27.0
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.
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +6 -163
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +19 -18
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +17 -16
- package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
- package/dist/esm/components/Common/constants/bs.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs.js +90 -0
- package/dist/esm/components/Common/constants/bs_e3.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs_e3.js +154 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +5 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +26 -0
- package/dist/esm/components/Common/constants/defaultColumns.d.ts +3 -0
- package/dist/esm/components/Common/constants/defaultColumns.js +76 -0
- package/dist/esm/components/Common/constants/gy.d.ts +3 -0
- package/dist/esm/components/Common/constants/gy.js +153 -0
- package/dist/esm/components/Common/constants/system.d.ts +3 -0
- package/dist/esm/components/Common/constants/system.js +58 -0
- package/dist/esm/components/Common/constants/wdt.d.ts +3 -0
- package/dist/esm/components/Common/constants/wdt.js +280 -0
- package/dist/esm/components/Common/dist/index.js +97 -603
- package/dist/esm/components/Common/index.js +20 -743
- package/dist/esm/components/CommonHeaderGood/index.js +196 -0
- package/dist/esm/components/GY/GyGoods/index.d.ts +33 -0
- package/dist/esm/components/GY/GyGoods/index.js +123 -0
- package/dist/esm/components/GY/GyReissue/index.d.ts +58 -0
- package/dist/esm/components/GY/GyReissue/index.js +188 -0
- package/dist/esm/components/JST/JstSendGood/index.js +32 -16
- package/dist/esm/components/KmErpSendGood/index.js +11 -11
- package/dist/esm/components/PostIng/index.js +2 -1
- package/dist/esm/components/Reissue/Logistics/index.d.ts +10 -1
- package/dist/esm/components/Reissue/Logistics/index.js +39 -10
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +7 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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,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,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,153 @@
|
|
|
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 React from "react";
|
|
8
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
9
|
+
var getYesOrNo = function getYesOrNo(val) {
|
|
10
|
+
if (isNull(val)) return null;
|
|
11
|
+
return val ? "是" : "否";
|
|
12
|
+
};
|
|
13
|
+
var getColumns = function getColumns() {
|
|
14
|
+
var data = {
|
|
15
|
+
//管易商品信息
|
|
16
|
+
GY_GOODS: [{
|
|
17
|
+
dataIndex: "goodName",
|
|
18
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19
|
+
width: 150
|
|
20
|
+
}, {
|
|
21
|
+
dataIndex: "goodShortName",
|
|
22
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
23
|
+
width: 150
|
|
24
|
+
}, {
|
|
25
|
+
dataIndex: "goodNo",
|
|
26
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
27
|
+
width: 200
|
|
28
|
+
}, {
|
|
29
|
+
dataIndex: "specName",
|
|
30
|
+
title: "SKU\u540D\u79F0",
|
|
31
|
+
align: "center",
|
|
32
|
+
ellipsis: true,
|
|
33
|
+
width: 250
|
|
34
|
+
}, {
|
|
35
|
+
dataIndex: "specNo",
|
|
36
|
+
title: "SKU\u7F16\u7801",
|
|
37
|
+
align: "center",
|
|
38
|
+
ellipsis: true,
|
|
39
|
+
width: 150
|
|
40
|
+
}, {
|
|
41
|
+
dataIndex: "qty",
|
|
42
|
+
title: "\u6570\u91CF",
|
|
43
|
+
width: 100
|
|
44
|
+
}, {
|
|
45
|
+
dataIndex: "price",
|
|
46
|
+
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
47
|
+
width: 150
|
|
48
|
+
}, {
|
|
49
|
+
dataIndex: "amount",
|
|
50
|
+
title: "\u5B9E\u9645\u91D1\u989D",
|
|
51
|
+
width: 150
|
|
52
|
+
}, {
|
|
53
|
+
dataIndex: "originPrice",
|
|
54
|
+
title: "\u6807\u51C6\u5355\u4EF7",
|
|
55
|
+
width: 150
|
|
56
|
+
}, {
|
|
57
|
+
dataIndex: "originAmount",
|
|
58
|
+
title: "\u6807\u51C6\u91D1\u989D",
|
|
59
|
+
width: 150
|
|
60
|
+
}, {
|
|
61
|
+
dataIndex: "discountFee",
|
|
62
|
+
title: "\u8BA9\u5229\u91D1\u989D",
|
|
63
|
+
width: 150
|
|
64
|
+
}, {
|
|
65
|
+
dataIndex: "amountAfter",
|
|
66
|
+
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
67
|
+
width: 150
|
|
68
|
+
}, {
|
|
69
|
+
dataIndex: "cancel",
|
|
70
|
+
title: "\u662F\u5426\u53D6\u6D88",
|
|
71
|
+
width: 150,
|
|
72
|
+
render: function render(val) {
|
|
73
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
dataIndex: "isGift",
|
|
77
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
78
|
+
width: 150,
|
|
79
|
+
render: function render(val) {
|
|
80
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
dataIndex: "skuNote",
|
|
84
|
+
title: "\u5546\u54C1\u5907\u6CE8",
|
|
85
|
+
width: 150
|
|
86
|
+
}].map(function (item) {
|
|
87
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
88
|
+
align: "center",
|
|
89
|
+
ellipsis: true
|
|
90
|
+
});
|
|
91
|
+
}),
|
|
92
|
+
//管易补发商品信息
|
|
93
|
+
GY_REISSUE_GOODS: [{
|
|
94
|
+
dataIndex: "goodName",
|
|
95
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
96
|
+
width: 150
|
|
97
|
+
}, {
|
|
98
|
+
dataIndex: "goodShortName",
|
|
99
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
100
|
+
width: 150
|
|
101
|
+
}, {
|
|
102
|
+
dataIndex: "goodNo",
|
|
103
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
104
|
+
width: 200
|
|
105
|
+
}, {
|
|
106
|
+
dataIndex: "specName",
|
|
107
|
+
title: "SKU\u540D\u79F0",
|
|
108
|
+
align: "center",
|
|
109
|
+
ellipsis: true,
|
|
110
|
+
width: 250
|
|
111
|
+
}, {
|
|
112
|
+
dataIndex: "specNo",
|
|
113
|
+
title: "SKU\u7F16\u7801",
|
|
114
|
+
align: "center",
|
|
115
|
+
ellipsis: true,
|
|
116
|
+
width: 150
|
|
117
|
+
}, {
|
|
118
|
+
dataIndex: "qty",
|
|
119
|
+
title: "\u6570\u91CF",
|
|
120
|
+
width: 100
|
|
121
|
+
}, {
|
|
122
|
+
dataIndex: "price",
|
|
123
|
+
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
124
|
+
width: 150
|
|
125
|
+
}, {
|
|
126
|
+
dataIndex: "amount",
|
|
127
|
+
title: "\u5B9E\u9645\u91D1\u989D",
|
|
128
|
+
width: 150
|
|
129
|
+
}, {
|
|
130
|
+
dataIndex: "originPrice",
|
|
131
|
+
title: "\u6807\u51C6\u5355\u4EF7",
|
|
132
|
+
width: 150
|
|
133
|
+
}, {
|
|
134
|
+
dataIndex: "originAmount",
|
|
135
|
+
title: "\u6807\u51C6\u91D1\u989D",
|
|
136
|
+
width: 150
|
|
137
|
+
}, {
|
|
138
|
+
dataIndex: "isGift",
|
|
139
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
140
|
+
width: 150,
|
|
141
|
+
render: function render(val) {
|
|
142
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
143
|
+
}
|
|
144
|
+
}].map(function (item) {
|
|
145
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
146
|
+
align: "center",
|
|
147
|
+
ellipsis: true
|
|
148
|
+
});
|
|
149
|
+
})
|
|
150
|
+
};
|
|
151
|
+
return data;
|
|
152
|
+
};
|
|
153
|
+
export default getColumns;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Image } from "antd";
|
|
3
|
+
var getColumns = function getColumns() {
|
|
4
|
+
var data = {
|
|
5
|
+
//商品
|
|
6
|
+
ITEM_ENCODE: [{
|
|
7
|
+
dataIndex: "title",
|
|
8
|
+
title: "商品名称",
|
|
9
|
+
align: "center",
|
|
10
|
+
ellipsis: true,
|
|
11
|
+
width: 200
|
|
12
|
+
}, {
|
|
13
|
+
dataIndex: "outerId",
|
|
14
|
+
title: "商品编码",
|
|
15
|
+
align: "center",
|
|
16
|
+
ellipsis: true,
|
|
17
|
+
width: 140
|
|
18
|
+
}, {
|
|
19
|
+
dataIndex: "picUrl",
|
|
20
|
+
title: "图片",
|
|
21
|
+
align: "center",
|
|
22
|
+
ellipsis: true,
|
|
23
|
+
width: 100,
|
|
24
|
+
render: function render(val) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
26
|
+
width: 60,
|
|
27
|
+
src: val
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
dataIndex: "numIid",
|
|
32
|
+
title: "商品id",
|
|
33
|
+
align: "center",
|
|
34
|
+
ellipsis: true,
|
|
35
|
+
width: 200
|
|
36
|
+
}, {
|
|
37
|
+
dataIndex: "skuId",
|
|
38
|
+
title: "SKU ID",
|
|
39
|
+
align: "center",
|
|
40
|
+
ellipsis: true,
|
|
41
|
+
width: 200
|
|
42
|
+
}, {
|
|
43
|
+
dataIndex: "outerSkuId",
|
|
44
|
+
title: "SKU 编码",
|
|
45
|
+
align: "center",
|
|
46
|
+
ellipsis: true,
|
|
47
|
+
width: 100
|
|
48
|
+
}, {
|
|
49
|
+
dataIndex: "propertiesName",
|
|
50
|
+
title: "SKU 信息",
|
|
51
|
+
align: "center",
|
|
52
|
+
ellipsis: true,
|
|
53
|
+
width: 200
|
|
54
|
+
}]
|
|
55
|
+
};
|
|
56
|
+
return data;
|
|
57
|
+
};
|
|
58
|
+
export default getColumns;
|