@kmkf-fe-packages/services-components 1.22.1-beta.34 → 1.22.1-beta.36
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/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +30 -5
- package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -4
- package/dist/esm/components/CommonSystemOrder/index.js +25 -25
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +3 -3
- package/dist/esm/components/CommonHeaderGood/index copy.d.ts +0 -27
- package/dist/esm/components/CommonHeaderGood/index copy.js +0 -659
|
@@ -18,7 +18,7 @@ export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: an
|
|
|
18
18
|
export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
|
|
19
19
|
export declare const JstGoodImage: ({ list, type, platformType, }: any) => any;
|
|
20
20
|
export declare const BsExpressRender: ({ list, showField, platformType, }: any) => any;
|
|
21
|
-
export declare const CommonOrderContent: ({ list, valueKey, failValue, options, isShowPopover, }: any) => any;
|
|
21
|
+
export declare const CommonOrderContent: ({ list, valueKey: initValueKey, failValue, options, isShowPopover, }: any) => any;
|
|
22
22
|
export declare const BsGoodImage: ({ item, index }: {
|
|
23
23
|
item: any;
|
|
24
24
|
index: number;
|
|
@@ -356,23 +356,48 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
356
356
|
export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
357
357
|
var _ref8$list = _ref8.list,
|
|
358
358
|
list = _ref8$list === void 0 ? [] : _ref8$list,
|
|
359
|
-
|
|
359
|
+
initValueKey = _ref8.valueKey,
|
|
360
360
|
failValue = _ref8.failValue,
|
|
361
361
|
_ref8$options = _ref8.options,
|
|
362
362
|
options = _ref8$options === void 0 ? [] : _ref8$options,
|
|
363
363
|
_ref8$isShowPopover = _ref8.isShowPopover,
|
|
364
364
|
isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover;
|
|
365
|
+
var getContentData = function getContentData(item, index) {
|
|
366
|
+
if (item.platformId) return {
|
|
367
|
+
text: "平台售后单号",
|
|
368
|
+
id: item.platformId
|
|
369
|
+
};
|
|
370
|
+
if (item.returnLogisticsCode) return {
|
|
371
|
+
text: "物流单号",
|
|
372
|
+
id: item.returnLogisticsCode
|
|
373
|
+
};
|
|
374
|
+
return {
|
|
375
|
+
text: "系统订单号" + (index + 1),
|
|
376
|
+
id: item.systemOrderId
|
|
377
|
+
};
|
|
378
|
+
};
|
|
365
379
|
var orderContent = function orderContent(item, index) {
|
|
366
|
-
var
|
|
367
|
-
var leftText = item.platformId ? "平台售后单号" : "系统订单号" + (index + 1);
|
|
380
|
+
var contentData = getContentData(item, index);
|
|
368
381
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
369
382
|
style: {
|
|
370
383
|
textAlign: "center"
|
|
371
384
|
}
|
|
372
|
-
},
|
|
385
|
+
}, contentData.text, "\uFF1A", contentData.id));
|
|
373
386
|
};
|
|
374
387
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
375
388
|
var _options$find;
|
|
389
|
+
var valueKey = "";
|
|
390
|
+
if (Array.isArray(initValueKey)) {
|
|
391
|
+
for (var _index = 0; _index < initValueKey.length; _index++) {
|
|
392
|
+
var itemKey = initValueKey[_index];
|
|
393
|
+
if (item[itemKey]) {
|
|
394
|
+
valueKey = itemKey;
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
} else {
|
|
399
|
+
valueKey = initValueKey;
|
|
400
|
+
}
|
|
376
401
|
var color = ((_options$find = options.find(function (it) {
|
|
377
402
|
return item[valueKey] === it.value;
|
|
378
403
|
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
|
|
@@ -390,7 +415,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
390
415
|
color: "#1890ff",
|
|
391
416
|
cursor: "pointer"
|
|
392
417
|
}
|
|
393
|
-
}, "".concat(item
|
|
418
|
+
}, "".concat(getContentData(item, index).text), ":")) : null, /*#__PURE__*/React.createElement("span", {
|
|
394
419
|
style: {
|
|
395
420
|
color: color
|
|
396
421
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class CommonSystemOrder implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -6,42 +6,42 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import some from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import some from "lodash/some";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import { CommonOrderContent } from "../Common";
|
|
13
|
-
import { CommonSystemOrder as SystemOrder } from
|
|
13
|
+
import { CommonSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
16
|
import { SYMBOL, batchInput } from "../../constant";
|
|
17
17
|
var typeMap = {
|
|
18
18
|
BS_DELIVERY_NO: {
|
|
19
|
-
key:
|
|
20
|
-
code:
|
|
21
|
-
name:
|
|
19
|
+
key: "deliveryNoList",
|
|
20
|
+
code: "deliveryNoIds",
|
|
21
|
+
name: "出库单",
|
|
22
22
|
type: 1,
|
|
23
|
-
valueKey:
|
|
23
|
+
valueKey: "deliveryNo"
|
|
24
24
|
},
|
|
25
25
|
RETURN_GOODS_TRADE_ID: {
|
|
26
|
-
key:
|
|
27
|
-
code:
|
|
28
|
-
name:
|
|
26
|
+
key: "returnGoodsTradeItemList",
|
|
27
|
+
code: "returnGoodsTradeIdList",
|
|
28
|
+
name: "退货单id",
|
|
29
29
|
type: 2,
|
|
30
|
-
valueKey:
|
|
30
|
+
valueKey: ["returnGoodsTradeId", "returnLogisticsCode"]
|
|
31
31
|
},
|
|
32
32
|
REISSUE_TRADE_ID: {
|
|
33
|
-
key:
|
|
34
|
-
code:
|
|
35
|
-
name:
|
|
33
|
+
key: "tradeItemList",
|
|
34
|
+
code: "tradeIdList",
|
|
35
|
+
name: "补发单id",
|
|
36
36
|
type: 3,
|
|
37
|
-
valueKey:
|
|
37
|
+
valueKey: "billNo"
|
|
38
38
|
},
|
|
39
39
|
EXCHANGE_TRADE_ID: {
|
|
40
|
-
key:
|
|
41
|
-
code:
|
|
42
|
-
name:
|
|
40
|
+
key: "tradeItemList",
|
|
41
|
+
code: "tradeIdList",
|
|
42
|
+
name: "换货单id",
|
|
43
43
|
type: 4,
|
|
44
|
-
valueKey:
|
|
44
|
+
valueKey: "billNo"
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
|
|
@@ -108,7 +108,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
108
108
|
return (list || []).map(function (item) {
|
|
109
109
|
var _typeMap$_this$type8;
|
|
110
110
|
return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.valueKey];
|
|
111
|
-
}).join(
|
|
111
|
+
}).join(",");
|
|
112
112
|
});
|
|
113
113
|
_defineProperty(this, "editRender", function (p) {
|
|
114
114
|
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _typeMap$_this$type9;
|
|
@@ -119,7 +119,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
119
119
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
120
120
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
121
121
|
required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
|
|
122
|
-
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip :
|
|
122
|
+
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip : "",
|
|
123
123
|
component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
|
|
124
124
|
type: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.type
|
|
125
125
|
}))
|
|
@@ -132,7 +132,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
132
132
|
type: item.type,
|
|
133
133
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code),
|
|
134
134
|
name: "".concat(_this.name),
|
|
135
|
-
filterComponentType:
|
|
135
|
+
filterComponentType: "Input",
|
|
136
136
|
filterFn: function filterFn(value) {
|
|
137
137
|
return function (i) {
|
|
138
138
|
var _typeMap$_this$type11;
|
|
@@ -153,7 +153,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
153
153
|
this.isCombinationComponent = false;
|
|
154
154
|
this.canSort = false;
|
|
155
155
|
this.children = [];
|
|
156
|
-
this.dataType =
|
|
156
|
+
this.dataType = "object";
|
|
157
157
|
this.rules = (_this$componentConfig7 = this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required ? [{
|
|
158
158
|
required: true,
|
|
159
159
|
validator: function validator(_, value) {
|
|
@@ -168,6 +168,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
168
168
|
return Promise.resolve();
|
|
169
169
|
}
|
|
170
170
|
}] : [];
|
|
171
|
-
this.align =
|
|
171
|
+
this.align = "left";
|
|
172
172
|
});
|
|
173
173
|
export default CommonSystemOrder;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsGoods | BsSystemOrder | BsE3Goods | BsE3Reissue | CommonMultiStatus | JstSendGood | MemberLevel | MsgStatus |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BsGoods | BsLogistics | BsSystemOrder | BsE3Goods | BsE3Reissue | BasicCascader | CommonMultiStatus | ItemEnCode | BasicInput | JstLogistics | JstSendGood | MemberLevel | MsgStatus | BasicPicture | BasicRadio | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.36",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.22.1-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.22.1-beta.36",
|
|
25
25
|
"@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.29",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6c587243d87027955f2b6a6bb9b89c94a6a80044",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
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;
|
|
@@ -1,659 +0,0 @@
|
|
|
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;
|