@kmkf-fe-packages/services-components 2.6.0-rc.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/esm/Hooks/index.d.ts +2 -0
  2. package/dist/esm/Hooks/index.js +2 -0
  3. package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
  4. package/dist/esm/Hooks/useColumnsConfig.js +243 -0
  5. package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
  6. package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
  7. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  8. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
  9. package/dist/esm/commonComponents/GlobalContext/index.js +60 -20
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +11 -9
  13. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  14. package/dist/esm/commonComponents/OperationLog/index.js +4 -2
  15. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
  16. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
  17. package/dist/esm/commonComponents/ShopList/index.js +3 -1
  18. package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -2
  19. package/dist/esm/components/BS/BsLogistics/index.js +61 -8
  20. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  21. package/dist/esm/components/BS/BsSystemOrder/index.js +56 -9
  22. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  23. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  24. package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
  25. package/dist/esm/components/BS/common/BsMemo.js +4 -1
  26. package/dist/esm/components/BS/common/BsType.js +4 -1
  27. package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
  28. package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
  29. package/dist/esm/components/BS/common/expressCode.js +16 -4
  30. package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
  31. package/dist/esm/components/BS/common/expressCompany.js +31 -5
  32. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  33. package/dist/esm/components/Cascader/index.d.ts +8 -6
  34. package/dist/esm/components/Cascader/index.js +26 -22
  35. package/dist/esm/components/Common/constants/bs.js +2 -2
  36. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  37. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  38. package/dist/esm/components/Common/constants/wdt.js +104 -0
  39. package/dist/esm/components/Common/index.d.ts +2 -2
  40. package/dist/esm/components/Common/index.js +40 -24
  41. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  42. package/dist/esm/components/CommonDataTime/index.js +2 -2
  43. package/dist/esm/components/CommonHeaderGood/index.js +1201 -40
  44. package/dist/esm/components/CommonInput/index.js +11 -3
  45. package/dist/esm/components/CommonMultiStatus/index.js +73 -36
  46. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  47. package/dist/esm/components/ErpTradeId/index.js +7 -4
  48. package/dist/esm/components/File/index.d.ts +6 -6
  49. package/dist/esm/components/File/index.js +9 -10
  50. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  51. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  52. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  53. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  54. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  55. package/dist/esm/components/Input/index.d.ts +4 -4
  56. package/dist/esm/components/Input/index.js +35 -31
  57. package/dist/esm/components/JST/JstSendGood/index.js +17 -1
  58. package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
  59. package/dist/esm/components/KM/KmExchange/index.js +136 -0
  60. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  61. package/dist/esm/components/Logistics/index.d.ts +1 -0
  62. package/dist/esm/components/Logistics/index.js +10 -0
  63. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  64. package/dist/esm/components/LogisticsInterception/index.d.ts +20 -0
  65. package/dist/esm/components/LogisticsInterception/index.js +10 -5
  66. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
  67. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
  68. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  69. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  70. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  71. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
  72. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  73. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  74. package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
  75. package/dist/esm/components/OrderSubForm/index.js +19 -2
  76. package/dist/esm/components/Payment/index.d.ts +13 -12
  77. package/dist/esm/components/Payment/index.js +31 -11
  78. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  79. package/dist/esm/components/Picture/index.d.ts +5 -5
  80. package/dist/esm/components/Picture/index.js +20 -20
  81. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  82. package/dist/esm/components/PicturePro/index.js +42 -25
  83. package/dist/esm/components/PostIng/index.d.ts +5 -0
  84. package/dist/esm/components/PostIng/index.js +42 -8
  85. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  86. package/dist/esm/components/Public/Goods/index.js +42 -2
  87. package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
  88. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  89. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  90. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  91. package/dist/esm/components/ReceiverAddress/index.js +41 -27
  92. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  93. package/dist/esm/components/Remark/index.d.ts +18 -2
  94. package/dist/esm/components/Remark/index.js +37 -2
  95. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  96. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  97. package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
  98. package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
  99. package/dist/esm/components/Select/index.d.ts +1 -0
  100. package/dist/esm/components/Select/index.js +19 -11
  101. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  102. package/dist/esm/components/ShopInput/index.js +12 -9
  103. package/dist/esm/components/StatusSelect/index.js +4 -0
  104. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  105. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  106. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  107. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  108. package/dist/esm/components/SubForm/index.js +78 -6
  109. package/dist/esm/components/TradeId/index.d.ts +5 -5
  110. package/dist/esm/components/TradeId/index.js +17 -14
  111. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  112. package/dist/esm/factory.d.ts +2 -2
  113. package/dist/esm/factory.js +34 -7
  114. package/dist/esm/index.d.ts +4 -0
  115. package/dist/esm/index.js +6 -1
  116. package/dist/esm/service/api.d.ts +3 -0
  117. package/dist/esm/service/api.js +34 -1
  118. package/dist/esm/type.d.ts +38 -0
  119. package/package.json +4 -4
  120. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  121. package/dist/esm/components/Common/constants/gy.js +0 -219
@@ -2,6 +2,7 @@ export declare const replaceCheck: (data: any) => Promise<any>;
2
2
  export declare const queryAddressData: () => Promise<void>;
3
3
  export declare const queryBsAddressData: () => Promise<void>;
4
4
  export declare const queryWdtAddressData: () => Promise<void>;
5
+ export declare const queryJstAddressData: () => Promise<void>;
5
6
  export declare const queryPlatData: () => Promise<void>;
6
7
  export declare const queryExpressInterceptData: () => Promise<void>;
7
8
  export declare const queryLogisticsAddressData: () => Promise<void>;
@@ -10,6 +11,8 @@ export declare const queryWdtLogisticsCompany: () => Promise<void>;
10
11
  export declare const queryBsE3LogisticsCompany: () => Promise<void>;
11
12
  export declare const queryJSTLogisticsCompany: () => Promise<void>;
12
13
  export declare const queryGYLogisticsCompany: () => Promise<void>;
14
+ export declare const queryJYLogisticsCompany: () => Promise<void>;
15
+ export declare const queryJKYLogisticsCompany: () => Promise<void>;
13
16
  export declare const queryWLNLogisticsCompany: () => Promise<void>;
14
17
  export declare const queryKMLogisticsCompany: () => Promise<void>;
15
18
  export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
10
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
11
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
12
  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; }
13
- import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, servers } from "@kmkf-fe-packages/kmkf-utils";
13
+ import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, servers, JstAddressData } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import get from "lodash/get";
15
15
  import request from "./request";
16
16
  // 重复校验
@@ -80,6 +80,26 @@ export var queryWdtAddressData = function queryWdtAddressData() {
80
80
  instance.addressOptions = toTree(list, 1);
81
81
  });
82
82
  };
83
+ export var queryJstAddressData = function queryJstAddressData() {
84
+ return request({
85
+ url: "/qy/gdfw/template/queryJstAreas/noLogin",
86
+ method: "get",
87
+ data: {}
88
+ }).then(function (resp) {
89
+ var map = {};
90
+ var res = {};
91
+ var _resp$data3 = resp.data,
92
+ list = _resp$data3 === void 0 ? [] : _resp$data3;
93
+ for (var i = 0; i < list.length; i++) {
94
+ res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
95
+ map[list[i]["name"]] = list[i]["id"];
96
+ }
97
+ var instance = JstAddressData.getInstance();
98
+ instance.addrData = res;
99
+ instance.addrNameMap = map;
100
+ instance.addressOptions = toTree(list, 1);
101
+ });
102
+ };
83
103
  export var queryPlatData = function queryPlatData() {
84
104
  return request({
85
105
  url: "/qy/platform/listPlatform/noLogin",
@@ -275,6 +295,19 @@ export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
275
295
  instance.expressData = data;
276
296
  }).catch(console.log);
277
297
  };
298
+ export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
299
+ var instance = ExpressData.getInstance("jy");
300
+ return servers.JY.getLogisticsDataAsync().then(function (data) {
301
+ instance.expressData = data;
302
+ }).catch(console.log);
303
+ };
304
+ export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
305
+ var instance = ExpressData.getInstance("jky");
306
+ console.log("queryJKYLogisticsCompany");
307
+ return servers.JKY.getLogisticsDataAsync().then(function (data) {
308
+ instance.expressData = data;
309
+ }).catch(console.log);
310
+ };
278
311
  export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
279
312
  var instance = ExpressData.getInstance("wln");
280
313
  return servers.WLN.getLogisticsDataAsync().then(function (data) {
@@ -77,6 +77,34 @@ export interface ComponentInterface {
77
77
  */
78
78
  formItemIndex?: number;
79
79
  componentConfig?: {
80
+ /**
81
+ * @description 商品类组件选择商品来源配置
82
+ */
83
+ goodsSource?: {
84
+ source?: "workOrder" | "erp";
85
+ sourceSettings?: {
86
+ filterMode?: "some" | "every";
87
+ filterRules?: {
88
+ leftValue: string;
89
+ compareSymbol: any;
90
+ rightValue?: any;
91
+ }[];
92
+ dataFilterConfig: {
93
+ [cpId: string]: {
94
+ isFilter?: boolean;
95
+ isShow?: boolean;
96
+ index?: number;
97
+ };
98
+ };
99
+ keyMap: {
100
+ [key: string]: string;
101
+ };
102
+ workOrder: {
103
+ flowTemplateKey: string;
104
+ nodeId: string;
105
+ };
106
+ };
107
+ };
80
108
  /**
81
109
  * @description 特殊自定义组件有的值
82
110
  */
@@ -212,6 +240,7 @@ export interface ComponentInterface {
212
240
  repeatRange: string;
213
241
  repeatComponents: any[];
214
242
  };
243
+ sortColumns?: string;
215
244
  };
216
245
  effects?: {
217
246
  queryWorkOrderDetail?: (r: Record) => void;
@@ -303,3 +332,12 @@ export declare type ColumnConfig = {
303
332
  config?: ComponentInterface["componentConfig"];
304
333
  templateConfig?: ComponentInterface["componentConfig"];
305
334
  };
335
+ export interface ColumnsConfigI {
336
+ show: boolean;
337
+ delete: boolean;
338
+ width: number;
339
+ name: string;
340
+ id: string;
341
+ type: string;
342
+ config?: any;
343
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.6.0-rc.0",
3
+ "version": "2.6.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.5.0-rc.0",
25
- "@kmkf-fe-packages/kmkf-utils": "2.5.0-rc.0",
24
+ "@kmkf-fe-packages/basic-components": "2.6.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.6.0",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "aedc6405e1932ddfbca73a5c85c487df12f543bc",
44
+ "gitHead": "271b117e3e4afe8fadcc540ebecb963017e789bf",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }
@@ -1,3 +0,0 @@
1
- import { GetColumnsBaseInfoMapFnType } from "./columnsBaseInfoMap";
2
- declare const getColumns: GetColumnsBaseInfoMapFnType;
3
- export default getColumns;
@@ -1,219 +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 _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- import React from "react";
8
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
9
- var getYesOrNo = function getYesOrNo(val) {
10
- if (isNull(val)) return null;
11
- return val ? "是" : "否";
12
- };
13
- var getColumns = function getColumns() {
14
- var data = {
15
- //管易商品信息
16
- GY_GOODS: [{
17
- dataIndex: "goodName",
18
- title: "\u5546\u54C1\u540D\u79F0",
19
- width: 150
20
- }, {
21
- dataIndex: "goodShortName",
22
- title: "\u5546\u54C1\u7B80\u79F0",
23
- width: 150
24
- }, {
25
- dataIndex: "goodNo",
26
- title: "\u5546\u54C1\u7F16\u7801",
27
- width: 200
28
- }, {
29
- dataIndex: "specName",
30
- title: "SKU\u540D\u79F0",
31
- align: "center",
32
- ellipsis: true,
33
- width: 250
34
- }, {
35
- dataIndex: "specNo",
36
- title: "SKU\u7F16\u7801",
37
- align: "center",
38
- ellipsis: true,
39
- width: 150
40
- }, {
41
- dataIndex: "qty",
42
- title: "\u6570\u91CF",
43
- width: 100
44
- }, {
45
- dataIndex: "price",
46
- title: "\u5B9E\u9645\u5355\u4EF7",
47
- width: 150
48
- }, {
49
- dataIndex: "amount",
50
- title: "\u5B9E\u9645\u91D1\u989D",
51
- width: 150
52
- }, {
53
- dataIndex: "originPrice",
54
- title: "\u6807\u51C6\u5355\u4EF7",
55
- width: 150
56
- }, {
57
- dataIndex: "originAmount",
58
- title: "\u6807\u51C6\u91D1\u989D",
59
- width: 150
60
- }, {
61
- dataIndex: "discountFee",
62
- title: "\u8BA9\u5229\u91D1\u989D",
63
- width: 150
64
- }, {
65
- dataIndex: "amountAfter",
66
- title: "\u8BA9\u5229\u540E\u91D1\u989D",
67
- width: 150
68
- }, {
69
- dataIndex: "cancel",
70
- title: "\u662F\u5426\u53D6\u6D88",
71
- width: 150,
72
- render: function render(val) {
73
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
74
- }
75
- }, {
76
- dataIndex: "isGift",
77
- title: "\u662F\u5426\u8D60\u54C1",
78
- width: 150,
79
- render: function render(val) {
80
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
81
- }
82
- }, {
83
- dataIndex: "skuNote",
84
- title: "\u5546\u54C1\u5907\u6CE8",
85
- width: 150
86
- }].map(function (item) {
87
- return _objectSpread(_objectSpread({}, item), {}, {
88
- align: "center",
89
- ellipsis: true
90
- });
91
- }),
92
- //管易补发商品信息
93
- GY_REISSUE_GOODS: [{
94
- dataIndex: "goodName",
95
- title: "\u5546\u54C1\u540D\u79F0",
96
- width: 150
97
- }, {
98
- dataIndex: "goodShortName",
99
- title: "\u5546\u54C1\u7B80\u79F0",
100
- width: 150
101
- }, {
102
- dataIndex: "goodNo",
103
- title: "\u5546\u54C1\u7F16\u7801",
104
- width: 200
105
- }, {
106
- dataIndex: "specName",
107
- title: "SKU\u540D\u79F0",
108
- align: "center",
109
- ellipsis: true,
110
- width: 250
111
- }, {
112
- dataIndex: "specNo",
113
- title: "SKU\u7F16\u7801",
114
- align: "center",
115
- ellipsis: true,
116
- width: 150
117
- }, {
118
- dataIndex: "qty",
119
- title: "\u6570\u91CF",
120
- width: 100
121
- }, {
122
- dataIndex: "price",
123
- title: "\u5B9E\u9645\u5355\u4EF7",
124
- width: 150
125
- }, {
126
- dataIndex: "amount",
127
- title: "\u5B9E\u9645\u91D1\u989D",
128
- width: 150
129
- }, {
130
- dataIndex: "originPrice",
131
- title: "\u6807\u51C6\u5355\u4EF7",
132
- width: 150
133
- }, {
134
- dataIndex: "originAmount",
135
- title: "\u6807\u51C6\u91D1\u989D",
136
- width: 150
137
- }, {
138
- dataIndex: "isGift",
139
- title: "\u662F\u5426\u8D60\u54C1",
140
- width: 150,
141
- render: function render(val) {
142
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
143
- }
144
- }].map(function (item) {
145
- return _objectSpread(_objectSpread({}, item), {}, {
146
- align: "center",
147
- ellipsis: true
148
- });
149
- }),
150
- //管易退货商品信息
151
- GY_RETURN_GOODS: [{
152
- dataIndex: "goodName",
153
- title: "\u5546\u54C1\u540D\u79F0",
154
- width: 150
155
- }, {
156
- dataIndex: "goodShortName",
157
- title: "\u5546\u54C1\u7B80\u79F0",
158
- width: 150
159
- }, {
160
- dataIndex: "goodNo",
161
- title: "\u5546\u54C1\u7F16\u7801",
162
- width: 200
163
- }, {
164
- dataIndex: "specName",
165
- title: "SKU\u540D\u79F0",
166
- align: "center",
167
- ellipsis: true,
168
- width: 250
169
- }, {
170
- dataIndex: "specNo",
171
- title: "SKU\u7F16\u7801",
172
- align: "center",
173
- ellipsis: true,
174
- width: 150
175
- }, {
176
- dataIndex: "qty",
177
- title: "\u6570\u91CF",
178
- width: 100
179
- }, {
180
- dataIndex: "price",
181
- title: "\u5B9E\u9645\u5355\u4EF7",
182
- width: 150
183
- }, {
184
- dataIndex: "amount",
185
- title: "\u5B9E\u9645\u91D1\u989D",
186
- width: 150
187
- }, {
188
- dataIndex: "originPrice",
189
- title: "\u6807\u51C6\u5355\u4EF7",
190
- width: 150
191
- }, {
192
- dataIndex: "originAmount",
193
- title: "\u6807\u51C6\u91D1\u989D",
194
- width: 150
195
- }, {
196
- dataIndex: "discountFee",
197
- title: "\u8BA9\u5229\u91D1\u989D",
198
- width: 150
199
- }, {
200
- dataIndex: "amountAfter",
201
- title: "\u8BA9\u5229\u540E\u91D1\u989D",
202
- width: 150
203
- }, {
204
- dataIndex: "isGift",
205
- title: "\u662F\u5426\u8D60\u54C1",
206
- width: 150,
207
- render: function render(val) {
208
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
209
- }
210
- }].map(function (item) {
211
- return _objectSpread(_objectSpread({}, item), {}, {
212
- align: "center",
213
- ellipsis: true
214
- });
215
- })
216
- };
217
- return data;
218
- };
219
- export default getColumns;