@kmkf-fe-packages/services-components 1.0.6-alpha.0 → 1.0.6-rc.11

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/README.md CHANGED
@@ -3,4 +3,3 @@
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
5
  ---
6
-
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryWdtLogisticsCompany" | "queryWdtSendData";
2
+ declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryWdtLogisticsCompany" | "queryWdtSendData" | "queryLabel";
3
3
  declare const Global: ({ children, requestList, repeatRequestList }: React.PropsWithChildren<{
4
4
  requestList?: RequestType[] | undefined;
5
5
  repeatRequestList?: Record<string, () => Promise<any>> | undefined;
@@ -15,7 +15,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useEffect, useState } from "react";
17
17
  import { Skeleton, Result, Button } from "antd";
18
- import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryAllLogisticsCompany, queryWdtLogisticsCompany, queryWdtSendData } from "../../service/api";
18
+ import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryWdtLogisticsCompany, queryWdtSendData, queryAllLogisticsCompany, queryLabel } from "../../service/api";
19
19
  import { servers } from '@kmkf-fe-packages/kmkf-utils';
20
20
  var Global = function Global(_ref) {
21
21
  var children = _ref.children,
@@ -39,8 +39,9 @@ var Global = function Global(_ref) {
39
39
  queryExpressInterceptData: queryExpressInterceptData,
40
40
  queryLogisticsAddressData: queryLogisticsAddressData,
41
41
  queryPlatData: queryPlatData,
42
- queryWdtAddressData: servers.queryWdtAddressData,
43
42
  queryAllLogisticsCompany: queryAllLogisticsCompany,
43
+ queryLabel: queryLabel,
44
+ queryWdtAddressData: servers.queryWdtAddressData,
44
45
  queryWdtLogisticsCompany: queryWdtLogisticsCompany,
45
46
  queryWdtSendData: queryWdtSendData
46
47
  };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  declare type Shop = {
3
3
  auditStatus: number;
4
4
  shopId: string;
@@ -10,5 +10,5 @@ declare type ShopListProps = {
10
10
  shopList: Shop[];
11
11
  [prop: string]: any;
12
12
  };
13
- declare const ShopList: ({ disabledList, shopList, valueMapping, onChange, setShopId, isShowSelectAll, ...prop }: ShopListProps) => React.JSX.Element;
13
+ declare const ShopList: ({ disabledList, shopList, valueMapping, onChange, setShopId, ...prop }: ShopListProps) => React.JSX.Element;
14
14
  export default ShopList;
@@ -1,18 +1,13 @@
1
- var _excluded = ["disabledList", "shopList", "valueMapping", "onChange", "setShopId", "isShowSelectAll"];
1
+ var _excluded = ["disabledList", "shopList", "valueMapping", "onChange", "setShopId"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
- 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."); }
5
- 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); }
6
- 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; }
7
- 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; } }
8
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { useRef, useState } from "react";
12
- import { Select, Checkbox, Divider } from "antd";
5
+ import React from 'react';
6
+ import { Select } from 'antd';
13
7
  import PlatformAvatar from "../PlatformAvatar";
14
- import { PlatData } from "@kmkf-fe-packages/kmkf-utils";
8
+ import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
15
9
  var ShopList = function ShopList(_ref) {
10
+ var _shopList$filter;
16
11
  var _ref$disabledList = _ref.disabledList,
17
12
  disabledList = _ref$disabledList === void 0 ? [] : _ref$disabledList,
18
13
  shopList = _ref.shopList,
@@ -20,71 +15,32 @@ var ShopList = function ShopList(_ref) {
20
15
  valueMapping = _ref$valueMapping === void 0 ? "shopId" : _ref$valueMapping,
21
16
  onChange = _ref.onChange,
22
17
  setShopId = _ref.setShopId,
23
- _ref$isShowSelectAll = _ref.isShowSelectAll,
24
- isShowSelectAll = _ref$isShowSelectAll === void 0 ? false : _ref$isShowSelectAll,
25
18
  prop = _objectWithoutProperties(_ref, _excluded);
26
19
  var handleChange = function handleChange(val) {
27
20
  onChange === null || onChange === void 0 ? void 0 : onChange(val);
28
21
  setShopId === null || setShopId === void 0 ? void 0 : setShopId(val);
29
22
  };
30
23
  var platDatInstance = PlatData.getInstance();
31
- var _useState = useState(false),
32
- _useState2 = _slicedToArray(_useState, 2),
33
- selectAll = _useState2[0],
34
- setSelectAll = _useState2[1];
35
- var canSelectShopValueList = useRef([]);
36
- if (isShowSelectAll) {
37
- canSelectShopValueList.current = shopList.filter(function (item) {
38
- return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1 || (item === null || item === void 0 ? void 0 : item.disabled) || disabledList.includes(item === null || item === void 0 ? void 0 : item[valueMapping]);
39
- }).map(function (item) {
40
- return item === null || item === void 0 ? void 0 : item[valueMapping];
41
- });
42
- }
43
24
  return /*#__PURE__*/React.createElement(Select, _extends({
44
25
  onChange: handleChange
45
- }, prop, {
46
- dropdownRender: function dropdownRender() {
47
- var _shopList$filter;
48
- return /*#__PURE__*/React.createElement(React.Fragment, null, isShowSelectAll && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
49
- style: {
50
- padding: "4px 8px 8px 12px",
51
- cursor: "pointer"
52
- }
53
- }, /*#__PURE__*/React.createElement(Checkbox, {
54
- checked: selectAll,
55
- onChange: function onChange(e) {
56
- if (e.target.checked) {
57
- setSelectAll(true);
58
- handleChange(canSelectShopValueList.current.join(","));
59
- } else {
60
- setSelectAll(false);
61
- handleChange("");
62
- }
63
- }
64
- }, "\u5168\u9009")), /*#__PURE__*/React.createElement(Divider, {
65
- style: {
66
- margin: "0"
67
- }
68
- })), shopList === null || shopList === void 0 ? void 0 : (_shopList$filter = shopList.filter(function (item) {
69
- return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1;
70
- })) === null || _shopList$filter === void 0 ? void 0 : _shopList$filter.map(function (item) {
71
- var _platDatInstance$getP;
72
- var plat = (_platDatInstance$getP = platDatInstance.getPlatData()) === null || _platDatInstance$getP === void 0 ? void 0 : _platDatInstance$getP.find(function (plat) {
73
- return plat.platformType === item.shopSource;
74
- });
75
- return /*#__PURE__*/React.createElement(Select.Option, {
76
- disabled: item.disabled || disabledList.includes(item === null || item === void 0 ? void 0 : item[valueMapping]),
77
- value: item === null || item === void 0 ? void 0 : item[valueMapping],
78
- key: item === null || item === void 0 ? void 0 : item[valueMapping],
79
- label: "".concat((plat === null || plat === void 0 ? void 0 : plat.platformName) || "").concat(item.shopName)
80
- }, /*#__PURE__*/React.createElement(PlatformAvatar, {
81
- styles: {
82
- marginRight: 5
83
- },
84
- type: item.shopSource
85
- }), /*#__PURE__*/React.createElement("span", null, (plat === null || plat === void 0 ? void 0 : plat.platformName) && "\u3010".concat(plat === null || plat === void 0 ? void 0 : plat.platformName, "\u3011"), item.shopName));
86
- }));
87
- }
26
+ }, prop), shopList === null || shopList === void 0 ? void 0 : (_shopList$filter = shopList.filter(function (item) {
27
+ return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1;
28
+ })) === null || _shopList$filter === void 0 ? void 0 : _shopList$filter.map(function (item) {
29
+ var _platDatInstance$getP;
30
+ var plat = (_platDatInstance$getP = platDatInstance.getPlatData()) === null || _platDatInstance$getP === void 0 ? void 0 : _platDatInstance$getP.find(function (plat) {
31
+ return plat.platformType === item.shopSource;
32
+ });
33
+ return /*#__PURE__*/React.createElement(Select.Option, {
34
+ disabled: item.disabled || disabledList.includes(item === null || item === void 0 ? void 0 : item[valueMapping]),
35
+ value: item === null || item === void 0 ? void 0 : item[valueMapping],
36
+ key: item === null || item === void 0 ? void 0 : item[valueMapping],
37
+ label: "".concat((plat === null || plat === void 0 ? void 0 : plat.platformName) || '').concat(item.shopName)
38
+ }, /*#__PURE__*/React.createElement(PlatformAvatar, {
39
+ styles: {
40
+ marginRight: 5
41
+ },
42
+ type: item.shopSource
43
+ }), /*#__PURE__*/React.createElement("span", null, (plat === null || plat === void 0 ? void 0 : plat.platformName) && "\u3010".concat(plat === null || plat === void 0 ? void 0 : plat.platformName, "\u3011"), item.shopName));
88
44
  }));
89
45
  };
90
46
  export default ShopList;
@@ -18,7 +18,8 @@ var componentType = {
18
18
  BS_EXCHANGE_GOODS: 'bsExchangeType',
19
19
  BS_REISSUE_GOODS: 'bsReissueType',
20
20
  BS_RETURN_GOODS: 'bsReturnType',
21
- WDT_REISSUE_GOODS: 'wdtReissueType'
21
+ WDT_REISSUE_GOODS: 'wdtReissueType',
22
+ WDT_RETURN_GOODS: 'wdtReturnType'
22
23
  };
23
24
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
24
25
  var _this = this;
@@ -19,7 +19,8 @@ var componentType = {
19
19
  BS_EXCHANGE_GOODS: 'bsExchangeType',
20
20
  BS_REISSUE_GOODS: 'bsReissueType',
21
21
  BS_RETURN_GOODS: 'bsReturnType',
22
- WDT_REISSUE_GOODS: 'wdtReissueType'
22
+ WDT_REISSUE_GOODS: 'wdtReissueType',
23
+ WDT_RETURN_GOODS: 'wdtReturnType'
23
24
  };
24
25
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
25
26
  var _this = this;
@@ -13,6 +13,7 @@ declare class BasicCascader implements ComponentInterface {
13
13
  children: ComponentInterface[];
14
14
  dataType: ComponentInterface['dataType'];
15
15
  format: ComponentInterface['format'];
16
+ options: ComponentInterface['options'];
16
17
  constructor(options: PickOption);
17
18
  /**
18
19
  * 通过值计算展示内容
@@ -15,7 +15,8 @@ import ItemView from "../../commonComponents/ItemView";
15
15
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
16
  import { SYMBOL } from "../../constant";
17
17
  var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
18
- var _this = this;
18
+ var _this = this,
19
+ _this$componentConfig7;
19
20
  _classCallCheck(this, BasicCascader);
20
21
  _defineProperty(this, "name", void 0);
21
22
  _defineProperty(this, "id", void 0);
@@ -29,6 +30,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
29
30
  _defineProperty(this, "children", void 0);
30
31
  _defineProperty(this, "dataType", void 0);
31
32
  _defineProperty(this, "format", void 0);
33
+ _defineProperty(this, "options", void 0);
32
34
  _defineProperty(this, "getValues", function (value) {
33
35
  var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
34
36
  return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
@@ -147,6 +149,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
147
149
  this.canSort = true;
148
150
  this.dataType = 'array';
149
151
  this.format = 'cascader';
152
+ this.options = ((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.options) || [];
150
153
  }
151
154
 
152
155
  /**
@@ -16,10 +16,10 @@ import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Ty
16
16
  import React, { useState, useMemo } from "react";
17
17
  import { ExpressData, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { getAlipayBillReceipt } from "../../service/api";
19
- import { CopyToClipboard } from 'react-copy-to-clipboard';
19
+ import { CopyToClipboard } from "react-copy-to-clipboard";
20
+ import CopyText from "../../commonComponents/CopyText";
20
21
  import styles from "./index.module.less";
21
22
  import defaultImg from "./img/default-img.png";
22
- import CopyText from "../../commonComponents/CopyText";
23
23
  var Paragraph = Typography.Paragraph;
24
24
  export var getFormItem = function getFormItem(_ref) {
25
25
  var name = _ref.name,
@@ -415,7 +415,6 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
415
415
  text = _ref11$text === void 0 ? '' : _ref11$text,
416
416
  type = _ref11.type;
417
417
  //商品信息
418
-
419
418
  var COLUMNS_MAP = function COLUMNS_MAP() {
420
419
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
421
420
  return function (type) {
@@ -568,6 +567,186 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
568
567
  }
569
568
  }];
570
569
  break;
570
+ case 'WDT_RETURN_GOODS':
571
+ {
572
+ columns = [{
573
+ dataIndex: 'goodId',
574
+ title: "SPUID",
575
+ align: 'center',
576
+ ellipsis: true,
577
+ width: 70
578
+ }, {
579
+ dataIndex: 'goodNo',
580
+ title: "\u5546\u54C1SPU\u7F16\u7801",
581
+ align: 'center',
582
+ ellipsis: true,
583
+ width: 180
584
+ }, {
585
+ dataIndex: 'goodName',
586
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
587
+ align: 'center',
588
+ ellipsis: true,
589
+ width: 250
590
+ }, {
591
+ dataIndex: 'specId',
592
+ title: "".concat(text, "SKUID"),
593
+ align: 'center',
594
+ ellipsis: true,
595
+ width: 100
596
+ }, {
597
+ dataIndex: 'specNo',
598
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
599
+ align: 'center',
600
+ ellipsis: true,
601
+ width: 180
602
+ }, {
603
+ dataIndex: 'specName',
604
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
605
+ align: 'center',
606
+ ellipsis: true,
607
+ width: 250
608
+ }, {
609
+ dataIndex: 'num',
610
+ title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
611
+ align: 'center',
612
+ ellipsis: true,
613
+ width: 100
614
+ }, {
615
+ dataIndex: 'sharePrice',
616
+ title: "\u5206\u644A\u4EF7",
617
+ align: 'center',
618
+ ellipsis: true,
619
+ width: 80
620
+ }, {
621
+ dataIndex: 'returnPrice',
622
+ title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
623
+ align: 'center',
624
+ ellipsis: true,
625
+ width: 100
626
+ }, {
627
+ dataIndex: 'giftType',
628
+ title: "\u8D60\u54C1\u65B9\u5F0F",
629
+ align: 'center',
630
+ ellipsis: true,
631
+ width: 100,
632
+ render: function render(val) {
633
+ var giftTypeMap = {
634
+ 0: '非赠品',
635
+ 1: '自动赠送',
636
+ 2: '手工赠送',
637
+ 3: '回购自动送赠品',
638
+ 4: '前N有礼送赠品',
639
+ 6: '天猫优仓赠品',
640
+ 7: '淘宝CRM会员送赠'
641
+ };
642
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
643
+ }
644
+ }, {
645
+ dataIndex: 'type',
646
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
647
+ align: 'center',
648
+ ellipsis: true,
649
+ width: 100,
650
+ render: function render(val) {
651
+ var typeMap = {
652
+ '1': '单品',
653
+ '2': '组合装'
654
+ };
655
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
656
+ }
657
+ }];
658
+ }
659
+ break;
660
+ case 'WDT_EXCHANGE_GOODS':
661
+ {
662
+ columns = [{
663
+ dataIndex: 'goodId',
664
+ title: "SPUID",
665
+ align: 'center',
666
+ ellipsis: true,
667
+ width: 70
668
+ }, {
669
+ dataIndex: 'goodNo',
670
+ title: "\u5546\u54C1SPU\u7F16\u7801",
671
+ align: 'center',
672
+ ellipsis: true,
673
+ width: 180
674
+ }, {
675
+ dataIndex: 'goodName',
676
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
677
+ align: 'center',
678
+ ellipsis: true,
679
+ width: 250
680
+ }, {
681
+ dataIndex: 'specId',
682
+ title: "".concat(text, "SKUID"),
683
+ align: 'center',
684
+ ellipsis: true,
685
+ width: 100
686
+ }, {
687
+ dataIndex: 'specNo',
688
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
689
+ align: 'center',
690
+ ellipsis: true,
691
+ width: 180
692
+ }, {
693
+ dataIndex: 'specName',
694
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
695
+ align: 'center',
696
+ ellipsis: true,
697
+ width: 250
698
+ }, {
699
+ dataIndex: 'num',
700
+ title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
701
+ align: 'center',
702
+ ellipsis: true,
703
+ width: 100
704
+ }, {
705
+ dataIndex: 'price',
706
+ title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
707
+ align: 'center',
708
+ ellipsis: true,
709
+ width: 100
710
+ }, {
711
+ dataIndex: 'exchangePrice',
712
+ title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
713
+ align: 'center',
714
+ ellipsis: true,
715
+ width: 100
716
+ }, {
717
+ dataIndex: 'giftType',
718
+ title: "\u8D60\u54C1\u65B9\u5F0F",
719
+ align: 'center',
720
+ ellipsis: true,
721
+ width: 100,
722
+ render: function render(val) {
723
+ var giftTypeMap = {
724
+ 0: '非赠品',
725
+ 1: '自动赠送',
726
+ 2: '手工赠送',
727
+ 3: '回购自动送赠品',
728
+ 4: '前N有礼送赠品',
729
+ 6: '天猫优仓赠品',
730
+ 7: '淘宝CRM会员送赠'
731
+ };
732
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
733
+ }
734
+ }, {
735
+ dataIndex: 'type',
736
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
737
+ align: 'center',
738
+ ellipsis: true,
739
+ width: 100,
740
+ render: function render(val) {
741
+ var typeMap = {
742
+ '1': '单品',
743
+ '2': '组合装'
744
+ };
745
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
746
+ }
747
+ }];
748
+ }
749
+ break;
571
750
  default:
572
751
  columns = [{
573
752
  dataIndex: 'mark',
@@ -104,6 +104,188 @@ var GoodHeaderMap = {
104
104
  giftType: "赠品方式"
105
105
  },
106
106
  moneyKey: "orderPrice"
107
+ },
108
+ "WDT_RETURN_GOODS": {
109
+ headerMap: {
110
+ goodId: {
111
+ component: BsHeaderChild,
112
+ name: "SPUID",
113
+ key: "goodId",
114
+ width: 140
115
+ },
116
+ goodNo: {
117
+ component: BsHeaderChild,
118
+ name: "商品SPU编码",
119
+ key: "goodNo",
120
+ width: 180
121
+ },
122
+ goodName: {
123
+ component: BsHeaderChild,
124
+ name: "商品名称",
125
+ key: "goodName",
126
+ width: 100
127
+ },
128
+ specId: {
129
+ component: BsHeaderChild,
130
+ name: "SKUID",
131
+ key: "specId",
132
+ width: 200
133
+ },
134
+ specNo: {
135
+ component: BsHeaderChild,
136
+ name: "商品SKU编码",
137
+ key: "specNo",
138
+ width: 180
139
+ },
140
+ specName: {
141
+ component: BsHeaderChild,
142
+ name: "商品SKU名称",
143
+ key: "specName",
144
+ width: 140
145
+ },
146
+ num: {
147
+ component: BsHeaderChild,
148
+ name: "退货数量",
149
+ key: "num",
150
+ width: 100
151
+ },
152
+ sharePrice: {
153
+ component: BsHeaderChild,
154
+ name: "分摊价",
155
+ key: "sharePrice",
156
+ width: 120
157
+ },
158
+ returnPrice: {
159
+ component: BsHeaderChild,
160
+ name: "退款金额",
161
+ key: "returnPrice",
162
+ width: 120
163
+ },
164
+ giftType: {
165
+ component: BsHeaderChild,
166
+ name: "赠品方式",
167
+ key: "giftType",
168
+ width: 150
169
+ },
170
+ type: {
171
+ component: BsHeaderChild,
172
+ name: "商品类型",
173
+ key: "type",
174
+ width: 100,
175
+ render: function render(val) {
176
+ var typeMap = {
177
+ '1': '单品',
178
+ '2': '组合装'
179
+ };
180
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
181
+ }
182
+ }
183
+ },
184
+ itemKey: {
185
+ goodId: "SPUID",
186
+ goodNo: "商品SPU编码",
187
+ goodName: "商品名称",
188
+ specId: "SKUID",
189
+ specNo: "商品SKU编码",
190
+ specName: "商品SKU名称",
191
+ num: "退货数量",
192
+ sharePrice: "分摊价",
193
+ returnPrice: "退款金额",
194
+ giftType: "赠品方式",
195
+ type: "商品类型"
196
+ },
197
+ moneyKey: "returnPrice"
198
+ },
199
+ "WDT_EXCHANGE_GOODS": {
200
+ headerMap: {
201
+ goodId: {
202
+ component: BsHeaderChild,
203
+ name: "SPUID",
204
+ key: "goodId",
205
+ width: 140
206
+ },
207
+ goodNo: {
208
+ component: BsHeaderChild,
209
+ name: "商品SPU编码",
210
+ key: "goodNo",
211
+ width: 180
212
+ },
213
+ goodName: {
214
+ component: BsHeaderChild,
215
+ name: "商品名称",
216
+ key: "goodName",
217
+ width: 100
218
+ },
219
+ specId: {
220
+ component: BsHeaderChild,
221
+ name: "SKUID",
222
+ key: "specId",
223
+ width: 200
224
+ },
225
+ specNo: {
226
+ component: BsHeaderChild,
227
+ name: "商品SKU编码",
228
+ key: "specNo",
229
+ width: 180
230
+ },
231
+ specName: {
232
+ component: BsHeaderChild,
233
+ name: "商品SKU名称",
234
+ key: "specName",
235
+ width: 140
236
+ },
237
+ num: {
238
+ component: BsHeaderChild,
239
+ name: "换出数量",
240
+ key: "num",
241
+ width: 100
242
+ },
243
+ productPrice: {
244
+ component: BsHeaderChild,
245
+ name: "商品单价",
246
+ key: "productPrice",
247
+ width: 120
248
+ },
249
+ exchangePrice: {
250
+ component: BsHeaderChild,
251
+ name: "换出金额",
252
+ key: "exchangePrice",
253
+ width: 120
254
+ },
255
+ type: {
256
+ component: BsHeaderChild,
257
+ name: "商品类型",
258
+ key: "type",
259
+ width: 100,
260
+ render: function render(val) {
261
+ var typeMap = {
262
+ '1': '单品',
263
+ '2': '组合装'
264
+ };
265
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
266
+ }
267
+ },
268
+ giftType: {
269
+ component: BsHeaderChild,
270
+ name: "赠品方式",
271
+ key: "giftType",
272
+ width: 150
273
+ }
274
+ },
275
+ itemKey: {
276
+ goodId: "SPUID",
277
+ goodNo: "商品SPU编码",
278
+ goodName: "商品名称",
279
+ specId: "SKUID",
280
+ specNo: "商品SKU编码",
281
+ specName: "商品SKU名称",
282
+ num: "换出数量",
283
+ productPrice: "商品单价",
284
+ exchangePrice: "换出金额",
285
+ type: "商品类型",
286
+ giftType: "赠品方式"
287
+ },
288
+ moneyKey: "exchangePrice"
107
289
  }
108
290
  };
109
291
  GoodHeaderMap['WDT_REISSUE_GOODS'] = GoodHeaderMap['WDT_GOODS'];
@@ -0,0 +1,33 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
+ import { LabelData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class Label implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ options: ComponentInterface["options"];
17
+ labelDateInstance: InstanceType<typeof LabelData>;
18
+ constructor(options: PickOption);
19
+ getComponentValue: (r: Record) => any;
20
+ editRender: (p: any) => React.JSX.Element;
21
+ renderClient: (record: any) => React.JSX.Element | null;
22
+ showDetail: (value: Array<{
23
+ labelId: string;
24
+ labelName: string;
25
+ labelShowName: string;
26
+ openId: string;
27
+ }>) => React.JSX.Element;
28
+ renderPc: (value: any, record: Record) => React.JSX.Element;
29
+ renderLog: (r: Record) => React.JSX.Element;
30
+ renderExport: (value: any, record: Record) => any;
31
+ filterConfig: (item: ColumnConfig) => never[];
32
+ }
33
+ export default Label;