@kmkf-fe-packages/services-components 1.22.1-beta.3 → 1.22.1-beta.32
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/ShopList/index.d.ts +2 -1
- package/dist/esm/commonComponents/ShopList/index.js +5 -5
- package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
- package/dist/esm/components/BS/BsGoods/index.js +6 -2
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +5 -5
- package/dist/esm/components/BS/BsSystemOrder/index.js +37 -15
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +6 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +20 -9
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +1 -0
- package/dist/esm/components/BS/common/BsHeaderGood.js +178 -101
- package/dist/esm/components/BsE3/BsGoods/index.js +1 -1
- package/dist/esm/components/BsE3/BsReissueE3/index.js +1 -1
- package/dist/esm/components/Common/dist/index.js +1525 -0
- package/dist/esm/components/Common/index.d.ts +6 -5
- package/dist/esm/components/Common/index.js +502 -361
- package/dist/esm/components/CommonHeaderGood/index copy.d.ts +27 -0
- package/dist/esm/components/CommonHeaderGood/index copy.js +659 -0
- package/dist/esm/components/CommonHeaderGood/index.d.ts +1 -0
- package/dist/esm/components/CommonHeaderGood/index.js +126 -93
- package/dist/esm/components/CommonMultiStatus/index.d.ts +5 -4
- package/dist/esm/components/CommonMultiStatus/index.js +98 -65
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/MemberLevel/index.d.ts +35 -0
- package/dist/esm/components/MemberLevel/index.js +119 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Radio/index.js +3 -2
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +4 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/type.d.ts +7 -2
- package/package.json +4 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class CommonHeaderGoods implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
align: ALignType;
|
|
10
|
+
width: number;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
itemKey: any;
|
|
17
|
+
constructor(options: PickOption);
|
|
18
|
+
getParentId: () => string;
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
|
+
getComponentValue: (r: Record) => any;
|
|
23
|
+
renderExport: (value: string, record: Record) => any;
|
|
24
|
+
editRender: () => null;
|
|
25
|
+
filterConfig: () => never[];
|
|
26
|
+
}
|
|
27
|
+
export default CommonHeaderGoods;
|
|
@@ -0,0 +1,659 @@
|
|
|
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
+
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; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
+
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); }
|
|
20
|
+
import React from "react";
|
|
21
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
22
|
+
import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
|
|
23
|
+
import { BsHeaderPic, BsHeaderChild } from "../BS/common";
|
|
24
|
+
import ReissueGift from "../BsE3/ReissueGift";
|
|
25
|
+
var GoodHeaderMap = {
|
|
26
|
+
WDT_GOODS: {
|
|
27
|
+
headerMap: {
|
|
28
|
+
goodId: {
|
|
29
|
+
component: BsHeaderChild,
|
|
30
|
+
name: "商品ID",
|
|
31
|
+
key: "goodId",
|
|
32
|
+
width: 140
|
|
33
|
+
},
|
|
34
|
+
goodNo: {
|
|
35
|
+
component: BsHeaderChild,
|
|
36
|
+
name: "商品编码",
|
|
37
|
+
key: "goodNo",
|
|
38
|
+
width: 180
|
|
39
|
+
},
|
|
40
|
+
imgUrl: {
|
|
41
|
+
component: BsHeaderPic,
|
|
42
|
+
name: "图片",
|
|
43
|
+
key: "imgUrl",
|
|
44
|
+
width: 70
|
|
45
|
+
},
|
|
46
|
+
goodName: {
|
|
47
|
+
component: BsHeaderChild,
|
|
48
|
+
name: "商品名称",
|
|
49
|
+
key: "goodName",
|
|
50
|
+
width: 100
|
|
51
|
+
},
|
|
52
|
+
specId: {
|
|
53
|
+
component: BsHeaderChild,
|
|
54
|
+
name: "SKUID",
|
|
55
|
+
key: "specId",
|
|
56
|
+
width: 200
|
|
57
|
+
},
|
|
58
|
+
specNo: {
|
|
59
|
+
component: BsHeaderChild,
|
|
60
|
+
name: "商品SKU编码",
|
|
61
|
+
key: "specNo",
|
|
62
|
+
width: 180
|
|
63
|
+
},
|
|
64
|
+
specName: {
|
|
65
|
+
component: BsHeaderChild,
|
|
66
|
+
name: "商品SKU名称",
|
|
67
|
+
key: "specName",
|
|
68
|
+
width: 140
|
|
69
|
+
},
|
|
70
|
+
orderPrice: {
|
|
71
|
+
component: BsHeaderChild,
|
|
72
|
+
name: "实付总金额",
|
|
73
|
+
key: "orderPrice",
|
|
74
|
+
width: 100
|
|
75
|
+
},
|
|
76
|
+
num: {
|
|
77
|
+
component: BsHeaderChild,
|
|
78
|
+
name: "数量",
|
|
79
|
+
key: "num",
|
|
80
|
+
width: 100
|
|
81
|
+
},
|
|
82
|
+
sharePrice: {
|
|
83
|
+
component: BsHeaderChild,
|
|
84
|
+
name: "分摊价",
|
|
85
|
+
key: "sharePrice",
|
|
86
|
+
width: 120
|
|
87
|
+
},
|
|
88
|
+
giftType: {
|
|
89
|
+
component: BsHeaderChild,
|
|
90
|
+
name: "赠品方式",
|
|
91
|
+
key: "giftType",
|
|
92
|
+
width: 150
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
itemKey: {
|
|
96
|
+
goodId: "商品ID",
|
|
97
|
+
goodNo: "商品编码",
|
|
98
|
+
goodName: "商品名称",
|
|
99
|
+
specId: "SKUID",
|
|
100
|
+
specNo: "商品SKU编码",
|
|
101
|
+
specName: "商品SKU名称",
|
|
102
|
+
orderPrice: "实付总金额",
|
|
103
|
+
num: "数量",
|
|
104
|
+
sharePrice: "分摊价",
|
|
105
|
+
giftType: "赠品方式"
|
|
106
|
+
},
|
|
107
|
+
moneyKey: "orderPrice"
|
|
108
|
+
},
|
|
109
|
+
WDT_RETURN_GOODS: {
|
|
110
|
+
headerMap: {
|
|
111
|
+
goodId: {
|
|
112
|
+
component: BsHeaderChild,
|
|
113
|
+
name: "商品ID",
|
|
114
|
+
key: "goodId",
|
|
115
|
+
width: 140
|
|
116
|
+
},
|
|
117
|
+
goodNo: {
|
|
118
|
+
component: BsHeaderChild,
|
|
119
|
+
name: "商品编码",
|
|
120
|
+
key: "goodNo",
|
|
121
|
+
width: 180
|
|
122
|
+
},
|
|
123
|
+
goodName: {
|
|
124
|
+
component: BsHeaderChild,
|
|
125
|
+
name: "商品名称",
|
|
126
|
+
key: "goodName",
|
|
127
|
+
width: 100
|
|
128
|
+
},
|
|
129
|
+
specId: {
|
|
130
|
+
component: BsHeaderChild,
|
|
131
|
+
name: "SKUID",
|
|
132
|
+
key: "specId",
|
|
133
|
+
width: 200
|
|
134
|
+
},
|
|
135
|
+
specNo: {
|
|
136
|
+
component: BsHeaderChild,
|
|
137
|
+
name: "商品SKU编码",
|
|
138
|
+
key: "specNo",
|
|
139
|
+
width: 180
|
|
140
|
+
},
|
|
141
|
+
specName: {
|
|
142
|
+
component: BsHeaderChild,
|
|
143
|
+
name: "商品SKU名称",
|
|
144
|
+
key: "specName",
|
|
145
|
+
width: 140
|
|
146
|
+
},
|
|
147
|
+
num: {
|
|
148
|
+
component: BsHeaderChild,
|
|
149
|
+
name: "退货数量",
|
|
150
|
+
key: "num",
|
|
151
|
+
width: 100
|
|
152
|
+
},
|
|
153
|
+
sharePrice: {
|
|
154
|
+
component: BsHeaderChild,
|
|
155
|
+
name: "分摊价",
|
|
156
|
+
key: "sharePrice",
|
|
157
|
+
width: 120
|
|
158
|
+
},
|
|
159
|
+
returnPrice: {
|
|
160
|
+
component: BsHeaderChild,
|
|
161
|
+
name: "退款金额",
|
|
162
|
+
key: "returnPrice",
|
|
163
|
+
width: 120
|
|
164
|
+
},
|
|
165
|
+
giftType: {
|
|
166
|
+
component: BsHeaderChild,
|
|
167
|
+
name: "赠品方式",
|
|
168
|
+
key: "giftType",
|
|
169
|
+
width: 150
|
|
170
|
+
},
|
|
171
|
+
type: {
|
|
172
|
+
component: BsHeaderChild,
|
|
173
|
+
name: "商品类型",
|
|
174
|
+
key: "type",
|
|
175
|
+
width: 100,
|
|
176
|
+
render: function render(val) {
|
|
177
|
+
var typeMap = {
|
|
178
|
+
"1": "单品",
|
|
179
|
+
"2": "组合装"
|
|
180
|
+
};
|
|
181
|
+
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
itemKey: {
|
|
186
|
+
goodId: "商品ID",
|
|
187
|
+
goodNo: "商品编码",
|
|
188
|
+
goodName: "商品名称",
|
|
189
|
+
specId: "SKUID",
|
|
190
|
+
specNo: "商品SKU编码",
|
|
191
|
+
specName: "商品SKU名称",
|
|
192
|
+
num: "退货数量",
|
|
193
|
+
sharePrice: "分摊价",
|
|
194
|
+
returnPrice: "退款金额",
|
|
195
|
+
giftType: "赠品方式",
|
|
196
|
+
type: "商品类型"
|
|
197
|
+
},
|
|
198
|
+
moneyKey: "returnPrice"
|
|
199
|
+
},
|
|
200
|
+
WDT_EXCHANGE_GOODS: {
|
|
201
|
+
headerMap: {
|
|
202
|
+
goodId: {
|
|
203
|
+
component: BsHeaderChild,
|
|
204
|
+
name: "商品ID",
|
|
205
|
+
key: "goodId",
|
|
206
|
+
width: 140
|
|
207
|
+
},
|
|
208
|
+
goodNo: {
|
|
209
|
+
component: BsHeaderChild,
|
|
210
|
+
name: "商品编码",
|
|
211
|
+
key: "goodNo",
|
|
212
|
+
width: 180
|
|
213
|
+
},
|
|
214
|
+
goodName: {
|
|
215
|
+
component: BsHeaderChild,
|
|
216
|
+
name: "商品名称",
|
|
217
|
+
key: "goodName",
|
|
218
|
+
width: 100
|
|
219
|
+
},
|
|
220
|
+
specId: {
|
|
221
|
+
component: BsHeaderChild,
|
|
222
|
+
name: "SKUID",
|
|
223
|
+
key: "specId",
|
|
224
|
+
width: 200
|
|
225
|
+
},
|
|
226
|
+
specNo: {
|
|
227
|
+
component: BsHeaderChild,
|
|
228
|
+
name: "商品SKU编码",
|
|
229
|
+
key: "specNo",
|
|
230
|
+
width: 180
|
|
231
|
+
},
|
|
232
|
+
specName: {
|
|
233
|
+
component: BsHeaderChild,
|
|
234
|
+
name: "商品SKU名称",
|
|
235
|
+
key: "specName",
|
|
236
|
+
width: 140
|
|
237
|
+
},
|
|
238
|
+
num: {
|
|
239
|
+
component: BsHeaderChild,
|
|
240
|
+
name: "换出数量",
|
|
241
|
+
key: "num",
|
|
242
|
+
width: 100
|
|
243
|
+
},
|
|
244
|
+
productPrice: {
|
|
245
|
+
component: BsHeaderChild,
|
|
246
|
+
name: "商品单价",
|
|
247
|
+
key: "productPrice",
|
|
248
|
+
width: 120
|
|
249
|
+
},
|
|
250
|
+
exchangePrice: {
|
|
251
|
+
component: BsHeaderChild,
|
|
252
|
+
name: "换出金额",
|
|
253
|
+
key: "exchangePrice",
|
|
254
|
+
width: 120
|
|
255
|
+
},
|
|
256
|
+
type: {
|
|
257
|
+
component: BsHeaderChild,
|
|
258
|
+
name: "商品类型",
|
|
259
|
+
key: "type",
|
|
260
|
+
width: 100,
|
|
261
|
+
render: function render(val) {
|
|
262
|
+
var typeMap = {
|
|
263
|
+
"1": "单品",
|
|
264
|
+
"2": "组合装"
|
|
265
|
+
};
|
|
266
|
+
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
giftType: {
|
|
270
|
+
component: BsHeaderChild,
|
|
271
|
+
name: "赠品方式",
|
|
272
|
+
key: "giftType",
|
|
273
|
+
width: 150
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
itemKey: {
|
|
277
|
+
goodId: "商品ID",
|
|
278
|
+
goodNo: "商品编码",
|
|
279
|
+
goodName: "商品名称",
|
|
280
|
+
specId: "SKUID",
|
|
281
|
+
specNo: "商品SKU编码",
|
|
282
|
+
specName: "商品SKU名称",
|
|
283
|
+
num: "换出数量",
|
|
284
|
+
productPrice: "商品单价",
|
|
285
|
+
exchangePrice: "换出金额",
|
|
286
|
+
type: "商品类型",
|
|
287
|
+
giftType: "赠品方式"
|
|
288
|
+
},
|
|
289
|
+
moneyKey: "exchangePrice"
|
|
290
|
+
},
|
|
291
|
+
BS_E3_GOODS: {
|
|
292
|
+
headerMap: {
|
|
293
|
+
sku: {
|
|
294
|
+
component: BsHeaderChild,
|
|
295
|
+
name: "SKU",
|
|
296
|
+
key: "sku",
|
|
297
|
+
width: 140
|
|
298
|
+
},
|
|
299
|
+
skuId: {
|
|
300
|
+
component: BsHeaderChild,
|
|
301
|
+
name: "SKU ID",
|
|
302
|
+
key: "skuId",
|
|
303
|
+
width: 140
|
|
304
|
+
},
|
|
305
|
+
goodsName: {
|
|
306
|
+
component: BsHeaderChild,
|
|
307
|
+
name: "商品名称",
|
|
308
|
+
key: "goodsName",
|
|
309
|
+
width: 100
|
|
310
|
+
},
|
|
311
|
+
goodsShortName: {
|
|
312
|
+
component: BsHeaderChild,
|
|
313
|
+
name: "商品简称",
|
|
314
|
+
key: "goodsShortName",
|
|
315
|
+
width: 70
|
|
316
|
+
},
|
|
317
|
+
picPath: {
|
|
318
|
+
component: BsHeaderPic,
|
|
319
|
+
name: "商品图片",
|
|
320
|
+
key: "picPath",
|
|
321
|
+
width: 80
|
|
322
|
+
},
|
|
323
|
+
goodsSn: {
|
|
324
|
+
component: BsHeaderChild,
|
|
325
|
+
name: "货号",
|
|
326
|
+
key: "goodsSn",
|
|
327
|
+
width: 140
|
|
328
|
+
},
|
|
329
|
+
goodsId: {
|
|
330
|
+
component: BsHeaderChild,
|
|
331
|
+
name: "货号ID",
|
|
332
|
+
key: "goodsId",
|
|
333
|
+
width: 100
|
|
334
|
+
},
|
|
335
|
+
colorName: {
|
|
336
|
+
component: BsHeaderChild,
|
|
337
|
+
name: "颜色名称",
|
|
338
|
+
key: "colorName",
|
|
339
|
+
width: 80
|
|
340
|
+
},
|
|
341
|
+
colorCode: {
|
|
342
|
+
component: BsHeaderChild,
|
|
343
|
+
name: "颜色代码",
|
|
344
|
+
key: "colorCode",
|
|
345
|
+
width: 80
|
|
346
|
+
},
|
|
347
|
+
sizeName: {
|
|
348
|
+
component: BsHeaderChild,
|
|
349
|
+
name: "尺码名称",
|
|
350
|
+
key: "sizeName",
|
|
351
|
+
width: 80
|
|
352
|
+
},
|
|
353
|
+
sizeCode: {
|
|
354
|
+
component: BsHeaderChild,
|
|
355
|
+
name: "尺码代码",
|
|
356
|
+
key: "sizeCode",
|
|
357
|
+
width: 80
|
|
358
|
+
},
|
|
359
|
+
brandName: {
|
|
360
|
+
component: BsHeaderChild,
|
|
361
|
+
name: "品牌名称",
|
|
362
|
+
key: "brandName",
|
|
363
|
+
width: 80
|
|
364
|
+
},
|
|
365
|
+
goodsNumber: {
|
|
366
|
+
component: BsHeaderChild,
|
|
367
|
+
name: "商品数量",
|
|
368
|
+
key: "goodsNumber",
|
|
369
|
+
width: 80
|
|
370
|
+
},
|
|
371
|
+
goodsPrice: {
|
|
372
|
+
component: BsHeaderChild,
|
|
373
|
+
name: "商品单价",
|
|
374
|
+
key: "goodsPrice",
|
|
375
|
+
width: 80
|
|
376
|
+
},
|
|
377
|
+
shopPrice: {
|
|
378
|
+
component: BsHeaderChild,
|
|
379
|
+
name: "商品网店售价",
|
|
380
|
+
key: "shopPrice",
|
|
381
|
+
width: 80
|
|
382
|
+
},
|
|
383
|
+
sharePrice: {
|
|
384
|
+
component: BsHeaderChild,
|
|
385
|
+
name: "分摊价",
|
|
386
|
+
key: "sharePrice",
|
|
387
|
+
width: 80
|
|
388
|
+
},
|
|
389
|
+
sharePayment: {
|
|
390
|
+
component: BsHeaderChild,
|
|
391
|
+
name: "分摊实付金额",
|
|
392
|
+
key: "sharePayment",
|
|
393
|
+
width: 80
|
|
394
|
+
},
|
|
395
|
+
payment: {
|
|
396
|
+
component: BsHeaderChild,
|
|
397
|
+
name: "实付金额",
|
|
398
|
+
key: "payment",
|
|
399
|
+
width: 80
|
|
400
|
+
},
|
|
401
|
+
tcSku: {
|
|
402
|
+
component: BsHeaderChild,
|
|
403
|
+
name: "套餐SKU",
|
|
404
|
+
key: "tcSku",
|
|
405
|
+
width: 120
|
|
406
|
+
},
|
|
407
|
+
tcGoodsNumber: {
|
|
408
|
+
component: BsHeaderChild,
|
|
409
|
+
name: "套餐套数",
|
|
410
|
+
key: "tcGoodsNumber",
|
|
411
|
+
width: 120
|
|
412
|
+
},
|
|
413
|
+
taoCanSingleSl: {
|
|
414
|
+
component: BsHeaderChild,
|
|
415
|
+
name: "单个套餐数量",
|
|
416
|
+
key: "taoCanSingleSl",
|
|
417
|
+
width: 80
|
|
418
|
+
},
|
|
419
|
+
isGift: {
|
|
420
|
+
component: BsHeaderChild,
|
|
421
|
+
name: "是否赠品",
|
|
422
|
+
key: "isGift",
|
|
423
|
+
width: 80,
|
|
424
|
+
render: function render(val) {
|
|
425
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
itemKey: {
|
|
430
|
+
sku: "SKU",
|
|
431
|
+
skuId: "SKU ID",
|
|
432
|
+
goodsName: "商品名称",
|
|
433
|
+
goodsShortName: "商品简称",
|
|
434
|
+
picPath: "商品图片",
|
|
435
|
+
goodsSn: "货号",
|
|
436
|
+
goodsId: "货号ID",
|
|
437
|
+
colorName: "颜色名称",
|
|
438
|
+
colorCode: "颜色代码",
|
|
439
|
+
sizeName: "尺码名称",
|
|
440
|
+
sizeCode: "尺码代码",
|
|
441
|
+
brandName: "品牌名称",
|
|
442
|
+
goodsNumber: "商品数量",
|
|
443
|
+
goodsPrice: "商品单价",
|
|
444
|
+
shopPrice: "商品网店售价",
|
|
445
|
+
sharePrice: "分摊价",
|
|
446
|
+
sharePayment: "分摊实付金额",
|
|
447
|
+
payment: "实付金额",
|
|
448
|
+
tcSku: "套餐SKU",
|
|
449
|
+
tcGoodsNumber: "套餐套数",
|
|
450
|
+
taoCanSingleSl: "单个套餐数量",
|
|
451
|
+
isGift: "是否赠品"
|
|
452
|
+
},
|
|
453
|
+
moneyKey: "payment"
|
|
454
|
+
},
|
|
455
|
+
BS_E3_REISSUE_GOODS: {
|
|
456
|
+
headerMap: {
|
|
457
|
+
sku: {
|
|
458
|
+
component: BsHeaderChild,
|
|
459
|
+
name: "SKU",
|
|
460
|
+
key: "sku",
|
|
461
|
+
width: 140
|
|
462
|
+
},
|
|
463
|
+
skuId: {
|
|
464
|
+
component: BsHeaderChild,
|
|
465
|
+
name: "SKU ID",
|
|
466
|
+
key: "skuId",
|
|
467
|
+
width: 140
|
|
468
|
+
},
|
|
469
|
+
goodsName: {
|
|
470
|
+
component: BsHeaderChild,
|
|
471
|
+
name: "商品名称",
|
|
472
|
+
key: "goodsName",
|
|
473
|
+
width: 200
|
|
474
|
+
},
|
|
475
|
+
goodsShortName: {
|
|
476
|
+
component: BsHeaderChild,
|
|
477
|
+
name: "商品简称",
|
|
478
|
+
key: "goodsShortName",
|
|
479
|
+
width: 150
|
|
480
|
+
},
|
|
481
|
+
picPath: {
|
|
482
|
+
component: BsHeaderChild,
|
|
483
|
+
name: "商品图片",
|
|
484
|
+
key: "picPath",
|
|
485
|
+
width: 80
|
|
486
|
+
},
|
|
487
|
+
goodsSn: {
|
|
488
|
+
component: BsHeaderChild,
|
|
489
|
+
name: "货号",
|
|
490
|
+
key: "goodsSn",
|
|
491
|
+
width: 140
|
|
492
|
+
},
|
|
493
|
+
goodsId: {
|
|
494
|
+
component: BsHeaderChild,
|
|
495
|
+
name: "货号ID",
|
|
496
|
+
key: "goodsId",
|
|
497
|
+
width: 100
|
|
498
|
+
},
|
|
499
|
+
colorName: {
|
|
500
|
+
component: BsHeaderChild,
|
|
501
|
+
name: "颜色名称",
|
|
502
|
+
key: "colorName",
|
|
503
|
+
width: 150
|
|
504
|
+
},
|
|
505
|
+
colorCode: {
|
|
506
|
+
component: BsHeaderChild,
|
|
507
|
+
name: "颜色代码",
|
|
508
|
+
key: "colorCode",
|
|
509
|
+
width: 150
|
|
510
|
+
},
|
|
511
|
+
sizeName: {
|
|
512
|
+
component: BsHeaderChild,
|
|
513
|
+
name: "尺码名称",
|
|
514
|
+
key: "sizeName",
|
|
515
|
+
width: 80
|
|
516
|
+
},
|
|
517
|
+
sizeCode: {
|
|
518
|
+
component: BsHeaderChild,
|
|
519
|
+
name: "尺码代码",
|
|
520
|
+
key: "sizeCode",
|
|
521
|
+
width: 150
|
|
522
|
+
},
|
|
523
|
+
brandName: {
|
|
524
|
+
component: BsHeaderChild,
|
|
525
|
+
name: "品牌名称",
|
|
526
|
+
key: "brandName",
|
|
527
|
+
width: 150
|
|
528
|
+
},
|
|
529
|
+
goodsNumber: {
|
|
530
|
+
component: BsHeaderChild,
|
|
531
|
+
name: "商品数量",
|
|
532
|
+
key: "goodsNumber",
|
|
533
|
+
width: 150
|
|
534
|
+
},
|
|
535
|
+
goodsPrice: {
|
|
536
|
+
component: BsHeaderChild,
|
|
537
|
+
name: "商品单价",
|
|
538
|
+
key: "goodsPrice",
|
|
539
|
+
width: 150
|
|
540
|
+
},
|
|
541
|
+
shopPrice: {
|
|
542
|
+
component: BsHeaderChild,
|
|
543
|
+
name: "商品网店售价",
|
|
544
|
+
key: "shopPrice",
|
|
545
|
+
width: 150
|
|
546
|
+
},
|
|
547
|
+
isGift: {
|
|
548
|
+
component: ReissueGift,
|
|
549
|
+
name: "是否赠品",
|
|
550
|
+
key: "isGift",
|
|
551
|
+
width: 150
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
itemKey: {
|
|
555
|
+
sku: "SKU",
|
|
556
|
+
skuId: "SKU ID",
|
|
557
|
+
goodsName: "商品名称",
|
|
558
|
+
goodsShortName: "商品简称",
|
|
559
|
+
picPath: "商品图片",
|
|
560
|
+
goodsSn: "货号",
|
|
561
|
+
goodsId: "货号ID",
|
|
562
|
+
colorName: "颜色名称",
|
|
563
|
+
colorCode: "颜色代码",
|
|
564
|
+
sizeName: "尺码名称",
|
|
565
|
+
sizeCode: "尺码代码",
|
|
566
|
+
brandName: "品牌名称",
|
|
567
|
+
goodsNumber: "商品数量",
|
|
568
|
+
goodsPrice: "商品单价",
|
|
569
|
+
shopPrice: "商品网店售价",
|
|
570
|
+
isGift: "是否赠品"
|
|
571
|
+
},
|
|
572
|
+
moneyKey: "goodPrice"
|
|
573
|
+
}
|
|
574
|
+
};
|
|
575
|
+
GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
|
|
576
|
+
var CommonHeaderGoods = /*#__PURE__*/_createClass(function CommonHeaderGoods(options) {
|
|
577
|
+
var _this = this,
|
|
578
|
+
_GoodHeaderMap$this$t;
|
|
579
|
+
_classCallCheck(this, CommonHeaderGoods);
|
|
580
|
+
_defineProperty(this, "name", void 0);
|
|
581
|
+
_defineProperty(this, "id", void 0);
|
|
582
|
+
_defineProperty(this, "sortField", void 0);
|
|
583
|
+
_defineProperty(this, "type", void 0);
|
|
584
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
585
|
+
_defineProperty(this, "align", void 0);
|
|
586
|
+
_defineProperty(this, "width", void 0);
|
|
587
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
588
|
+
_defineProperty(this, "formField", void 0);
|
|
589
|
+
_defineProperty(this, "canSort", void 0);
|
|
590
|
+
_defineProperty(this, "children", void 0);
|
|
591
|
+
_defineProperty(this, "dataType", void 0);
|
|
592
|
+
_defineProperty(this, "itemKey", void 0);
|
|
593
|
+
_defineProperty(this, "getParentId", function () {
|
|
594
|
+
var _this$id$split = _this.id.split("_"),
|
|
595
|
+
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
596
|
+
key = _this$id$split2[0],
|
|
597
|
+
name = _this$id$split2[1],
|
|
598
|
+
code = _this$id$split2[2];
|
|
599
|
+
return "".concat(key, "_").concat(name);
|
|
600
|
+
});
|
|
601
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
602
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
603
|
+
id: _this.id,
|
|
604
|
+
label: _this.name,
|
|
605
|
+
value: _this.getComponentValue(record)
|
|
606
|
+
}) : null;
|
|
607
|
+
});
|
|
608
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
609
|
+
var _this$getComponentVal;
|
|
610
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
611
|
+
});
|
|
612
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
613
|
+
var id = _this.getParentId();
|
|
614
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
615
|
+
return _this.renderPc(undefined, r);
|
|
616
|
+
});
|
|
617
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
618
|
+
var id = _this.getParentId();
|
|
619
|
+
var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
|
|
620
|
+
next[GoodHeaderMap[_this.type].moneyKey] && prv.push(next[GoodHeaderMap[_this.type].moneyKey]);
|
|
621
|
+
return prv;
|
|
622
|
+
}, []);
|
|
623
|
+
return list.join(",");
|
|
624
|
+
});
|
|
625
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
626
|
+
var _this$getComponentVal2;
|
|
627
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
|
|
628
|
+
});
|
|
629
|
+
_defineProperty(this, "editRender", function () {
|
|
630
|
+
return null;
|
|
631
|
+
});
|
|
632
|
+
_defineProperty(this, "filterConfig", function () {
|
|
633
|
+
return [];
|
|
634
|
+
});
|
|
635
|
+
this.name = options.name;
|
|
636
|
+
this.id = options.id;
|
|
637
|
+
this.sortField = options.id;
|
|
638
|
+
this.formField = options.id;
|
|
639
|
+
this.type = options.type;
|
|
640
|
+
this.componentConfig = options.componentConfig;
|
|
641
|
+
this.align = "left";
|
|
642
|
+
this.width = 200;
|
|
643
|
+
this.isCombinationComponent = true;
|
|
644
|
+
this.canSort = false;
|
|
645
|
+
this.dataType = "string";
|
|
646
|
+
this.itemKey = (_GoodHeaderMap$this$t = GoodHeaderMap[this.type]) === null || _GoodHeaderMap$this$t === void 0 ? void 0 : _GoodHeaderMap$this$t.itemKey;
|
|
647
|
+
this.children = _toConsumableArray(Object.keys(GoodHeaderMap[this.type].headerMap).reduce(function (prv, key) {
|
|
648
|
+
var _options$componentCon, _options$componentCon2;
|
|
649
|
+
if (options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && (_options$componentCon2 = _options$componentCon.showHeader) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.includes(key)) {
|
|
650
|
+
prv.push(new GoodHeaderMap[_this.type].headerMap[key].component(_objectSpread(_objectSpread({}, options), {}, {
|
|
651
|
+
name: _this.itemKey[key],
|
|
652
|
+
id: "".concat(options.id, "_").concat(GoodHeaderMap[_this.type].headerMap[key].key),
|
|
653
|
+
width: GoodHeaderMap[_this.type].headerMap[key].width
|
|
654
|
+
})));
|
|
655
|
+
}
|
|
656
|
+
return prv;
|
|
657
|
+
}, []));
|
|
658
|
+
});
|
|
659
|
+
export default CommonHeaderGoods;
|
|
@@ -15,6 +15,7 @@ declare class CommonHeaderGoods implements ComponentInterface {
|
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
16
|
itemKey: any;
|
|
17
17
|
constructor(options: PickOption);
|
|
18
|
+
getChildren(options: PickOption): any[];
|
|
18
19
|
getParentId: () => string;
|
|
19
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
21
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|