@kmkf-fe-packages/services-components 2.9.0-rc.0 → 2.9.1-beta.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 (130) 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 +437 -0
  7. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  8. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -3
  9. package/dist/esm/commonComponents/GlobalContext/index.js +61 -23
  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 +12 -9
  13. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  14. package/dist/esm/commonComponents/OperationLog/index.js +4 -4
  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/BsGoods/index.js +0 -1
  19. package/dist/esm/components/BS/BsLogistics/index.d.ts +2 -0
  20. package/dist/esm/components/BS/BsLogistics/index.js +50 -9
  21. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  22. package/dist/esm/components/BS/BsSystemOrder/index.js +62 -9
  23. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
  24. package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
  25. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  26. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  27. package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
  28. package/dist/esm/components/BS/common/BsMemo.js +5 -1
  29. package/dist/esm/components/BS/common/BsType.js +5 -1
  30. package/dist/esm/components/BS/common/SystemOrderNo.js +5 -1
  31. package/dist/esm/components/BS/common/expressCode.js +6 -0
  32. package/dist/esm/components/BS/common/expressCompany.js +20 -1
  33. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  34. package/dist/esm/components/Cascader/index.d.ts +8 -6
  35. package/dist/esm/components/Cascader/index.js +26 -22
  36. package/dist/esm/components/Common/constants/bs.js +2 -2
  37. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  38. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  39. package/dist/esm/components/Common/constants/wdt.js +104 -0
  40. package/dist/esm/components/Common/index.d.ts +2 -2
  41. package/dist/esm/components/Common/index.js +45 -24
  42. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  43. package/dist/esm/components/CommonDataTime/index.js +2 -2
  44. package/dist/esm/components/CommonHeaderGood/index.js +1417 -110
  45. package/dist/esm/components/CommonInput/index.js +11 -3
  46. package/dist/esm/components/CommonMultiStatus/index.js +96 -36
  47. package/dist/esm/components/CommonSystemOrder/index.js +7 -0
  48. package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
  49. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  50. package/dist/esm/components/ErpTradeId/index.js +7 -4
  51. package/dist/esm/components/File/index.d.ts +6 -6
  52. package/dist/esm/components/File/index.js +9 -10
  53. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  54. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  55. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  56. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  57. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  58. package/dist/esm/components/Input/index.d.ts +4 -4
  59. package/dist/esm/components/Input/index.js +35 -31
  60. package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
  61. package/dist/esm/components/JST/JstSendGood/index.js +66 -18
  62. package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
  63. package/dist/esm/components/KM/KmExchange/index.js +136 -0
  64. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  65. package/dist/esm/components/Logistics/index.d.ts +1 -0
  66. package/dist/esm/components/Logistics/index.js +10 -0
  67. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  68. package/dist/esm/components/LogisticsInterception/index.d.ts +21 -0
  69. package/dist/esm/components/LogisticsInterception/index.js +30 -7
  70. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
  71. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
  72. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  73. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  74. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  75. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
  76. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  77. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  78. package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
  79. package/dist/esm/components/OrderSubForm/index.js +18 -1
  80. package/dist/esm/components/Payment/index.d.ts +13 -12
  81. package/dist/esm/components/Payment/index.js +31 -11
  82. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  83. package/dist/esm/components/Picture/index.d.ts +5 -5
  84. package/dist/esm/components/Picture/index.js +20 -20
  85. package/dist/esm/components/PicturePro/PictureName.js +1 -3
  86. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  87. package/dist/esm/components/PicturePro/index.js +43 -28
  88. package/dist/esm/components/PostIng/index.d.ts +5 -0
  89. package/dist/esm/components/PostIng/index.js +42 -8
  90. package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
  91. package/dist/esm/components/Public/Exchange/index.js +10 -23
  92. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  93. package/dist/esm/components/Public/Goods/index.js +46 -2
  94. package/dist/esm/components/Public/ReissueGoods/index.js +82 -6
  95. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  96. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  97. package/dist/esm/components/Public/SystemOrderType/index.js +2 -2
  98. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  99. package/dist/esm/components/ReceiverAddress/index.js +43 -30
  100. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  101. package/dist/esm/components/Remark/index.d.ts +18 -2
  102. package/dist/esm/components/Remark/index.js +37 -2
  103. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  104. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  105. package/dist/esm/components/Select/index.d.ts +1 -0
  106. package/dist/esm/components/Select/index.js +18 -11
  107. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  108. package/dist/esm/components/ShopInput/index.js +12 -9
  109. package/dist/esm/components/StatusSelect/index.js +22 -2
  110. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  111. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  112. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  113. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  114. package/dist/esm/components/SubForm/index.js +78 -6
  115. package/dist/esm/components/TradeId/index.d.ts +6 -5
  116. package/dist/esm/components/TradeId/index.js +31 -15
  117. package/dist/esm/components/WDT/WdtGoods/index.js +2 -1
  118. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  119. package/dist/esm/constant.js +3 -0
  120. package/dist/esm/factory.d.ts +2 -2
  121. package/dist/esm/factory.js +41 -12
  122. package/dist/esm/index.d.ts +4 -0
  123. package/dist/esm/index.js +6 -1
  124. package/dist/esm/service/api.d.ts +3 -0
  125. package/dist/esm/service/api.js +42 -14
  126. package/dist/esm/service/request.js +1 -4
  127. package/dist/esm/type.d.ts +43 -3
  128. package/package.json +4 -4
  129. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  130. package/dist/esm/components/Common/constants/gy.js +0 -219
@@ -101,6 +101,9 @@ export { default as AsyncSelect } from "./components/Public/AsyncSelect";
101
101
  export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
102
102
  export { default as SkxGoods } from "./components/SKX/SkxGoods";
103
103
  export { default as OrderSubForm } from "./components/OrderSubForm";
104
+ export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
105
+ export { default as ReturnWarehouse } from "./components/Public/ReturnWarehouse";
106
+ export { default as KmExchange } from "./components/KM/KmExchange";
104
107
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
105
108
  export { factory } from "./factory";
106
109
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
@@ -113,3 +116,4 @@ export { default as Global } from "./commonComponents/GlobalContext";
113
116
  export * as ErpScenes from "./commonComponents/ErpContext";
114
117
  export * as servers from "./service/api";
115
118
  export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
119
+ export * from "./Hooks";
package/dist/esm/index.js CHANGED
@@ -101,6 +101,10 @@ export { default as AsyncSelect } from "./components/Public/AsyncSelect";
101
101
  export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
102
102
  export { default as SkxGoods } from "./components/SKX/SkxGoods";
103
103
  export { default as OrderSubForm } from "./components/OrderSubForm";
104
+ export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
105
+ export { default as ReturnWarehouse } from "./components/Public/ReturnWarehouse";
106
+ export { default as KmExchange } from "./components/KM/KmExchange";
107
+
104
108
  // TODO: ERP 打款工单使用
105
109
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
106
110
  export { factory } from "./factory";
@@ -115,4 +119,5 @@ import * as _ErpScenes from "./commonComponents/ErpContext";
115
119
  export { _ErpScenes as ErpScenes };
116
120
  import * as _servers from "./service/api";
117
121
  export { _servers as servers };
118
- export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
122
+ export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
123
+ export * from "./Hooks";
@@ -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",
@@ -122,6 +142,7 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
122
142
  SF: "顺丰",
123
143
  ZTO: "中通",
124
144
  JT: "极兔",
145
+ STO: "申通",
125
146
  DEFAULT: ""
126
147
  };
127
148
  var expressList = data.map(function (item) {
@@ -217,9 +238,7 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
217
238
  }
218
239
  });
219
240
  instance.statusConditionOptions = tempList;
220
- }).catch(function (e) {
221
- console.log(e);
222
- });
241
+ }).catch(function (e) {});
223
242
  };
224
243
  export var queryLogisticsAddressData = function queryLogisticsAddressData() {
225
244
  return request({
@@ -230,9 +249,7 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
230
249
  var data = res.data;
231
250
  var instance = LogisticsAddressData.getInstance();
232
251
  instance.addressData = data;
233
- }).catch(function (e) {
234
- console.log(e);
235
- });
252
+ }).catch(function (e) {});
236
253
  };
237
254
  export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
238
255
  return request({
@@ -255,37 +272,49 @@ export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
255
272
  var instance = ExpressData.getInstance("wdt");
256
273
  return servers.getWdtSellerLogisticsCompanyRelation().then(function (data) {
257
274
  instance.expressData = data;
258
- }).catch(console.log);
275
+ }).catch(function () {});
259
276
  };
260
277
  export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
261
278
  var instance = ExpressData.getInstance("bsE3");
262
279
  return servers.BSE3.getLogisticsDataAsync().then(function (data) {
263
280
  instance.expressData = data;
264
- }).catch(console.log);
281
+ }).catch(function () {});
265
282
  };
266
283
  export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
267
284
  var instance = ExpressData.getInstance("jst");
268
285
  return servers.JST.getLogisticsDataAsync().then(function (data) {
269
286
  instance.expressData = data;
270
- }).catch(console.log);
287
+ }).catch(function () {});
271
288
  };
272
289
  export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
273
290
  var instance = ExpressData.getInstance("gy");
274
291
  return servers.GY.getLogisticsDataAsync().then(function (data) {
275
292
  instance.expressData = data;
276
- }).catch(console.log);
293
+ }).catch(function () {});
294
+ };
295
+ export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
296
+ var instance = ExpressData.getInstance("jy");
297
+ return servers.JY.getLogisticsDataAsync().then(function (data) {
298
+ instance.expressData = data;
299
+ }).catch(function () {});
300
+ };
301
+ export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
302
+ var instance = ExpressData.getInstance("jky");
303
+ return servers.JKY.getLogisticsDataAsync().then(function (data) {
304
+ instance.expressData = data;
305
+ }).catch(function () {});
277
306
  };
278
307
  export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
279
308
  var instance = ExpressData.getInstance("wln");
280
309
  return servers.WLN.getLogisticsDataAsync().then(function (data) {
281
310
  instance.expressData = data;
282
- }).catch(console.log);
311
+ }).catch(function () {});
283
312
  };
284
313
  export var queryKMLogisticsCompany = function queryKMLogisticsCompany() {
285
314
  var instance = ExpressData.getInstance("km");
286
315
  return servers.KM.getLogisticsDataAsync().then(function (data) {
287
316
  instance.expressData = data;
288
- }).catch(console.log);
317
+ }).catch(function () {});
289
318
  };
290
319
  // 获取支付宝电子回单
291
320
  export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
@@ -309,7 +338,6 @@ export var queryLabel = function queryLabel() {
309
338
  var finalData = JSON.parse(data);
310
339
  instance.labelData = finalData;
311
340
  } catch (e) {
312
- console.error("转换标签数据数据异常");
313
341
  instance.labelData = [];
314
342
  }
315
343
  });
@@ -52,13 +52,10 @@ var requestApi = function requestApi(_ref) {
52
52
  message.warn(res.message);
53
53
  } else if (infoLevel === 'error') {
54
54
  message.error(res.message);
55
- } else {
56
- console.log(res.message);
57
- }
55
+ } else {}
58
56
  reject(res);
59
57
  }
60
58
  }).catch(function (e) {
61
- console.error('请求错误', e);
62
59
  reject(e);
63
60
  });
64
61
  });
@@ -33,9 +33,9 @@ export declare type FilterConfigType = {
33
33
  filterFn?: (p: any) => (r: Record) => unknown;
34
34
  formatFilterValue?: (p: any) => any;
35
35
  };
36
- export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput" | "AsyncSelect";
36
+ export declare type FilterComponentType = "MultipleSelect" | "TagsSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput" | "AsyncSelect";
37
37
  export interface ComponentInterface {
38
- transformValue?: (val: any, record?: any, parentName?: string) => any;
38
+ transformValue?: (val: any, record?: any, parentName?: string, parent?: any) => any;
39
39
  id: string;
40
40
  sortField: string;
41
41
  sortChildField?: {
@@ -64,6 +64,7 @@ export interface ComponentInterface {
64
64
  workOrderUniqueKey?: string;
65
65
  platform?: PlatForm;
66
66
  parentName?: string;
67
+ parent?: any;
67
68
  exampleValue?: any;
68
69
  compoundConfig?: Array<{
69
70
  id: string;
@@ -77,6 +78,34 @@ export interface ComponentInterface {
77
78
  */
78
79
  formItemIndex?: number;
79
80
  componentConfig?: {
81
+ /**
82
+ * @description 商品类组件选择商品来源配置
83
+ */
84
+ goodsSource?: {
85
+ source?: "workOrder" | "erp";
86
+ sourceSettings?: {
87
+ filterMode?: "some" | "every";
88
+ filterRules?: {
89
+ leftValue: string;
90
+ compareSymbol: any;
91
+ rightValue?: any;
92
+ }[];
93
+ dataFilterConfig: {
94
+ [cpId: string]: {
95
+ isFilter?: boolean;
96
+ isShow?: boolean;
97
+ index?: number;
98
+ };
99
+ };
100
+ keyMap: {
101
+ [key: string]: string;
102
+ };
103
+ workOrder: {
104
+ flowTemplateKey: string;
105
+ nodeId: string;
106
+ };
107
+ };
108
+ };
80
109
  /**
81
110
  * @description 特殊自定义组件有的值
82
111
  */
@@ -212,6 +241,7 @@ export interface ComponentInterface {
212
241
  repeatRange: string;
213
242
  repeatComponents: any[];
214
243
  };
244
+ sortColumns?: string;
215
245
  };
216
246
  effects?: {
217
247
  queryWorkOrderDetail?: (r: Record) => void;
@@ -219,6 +249,7 @@ export interface ComponentInterface {
219
249
  handleChangeSingleWorkOrderMark?: (t: string, r: Record, id?: string) => void;
220
250
  templateList?: any[];
221
251
  templateDetail?: any[];
252
+ workOrderDetail?: Record;
222
253
  isEditing?: boolean;
223
254
  form?: FormInstance;
224
255
  shopList?: any[];
@@ -293,7 +324,7 @@ export interface ComponentInterface {
293
324
  getComponentValue: (r: Record) => any;
294
325
  formDataTransform?: (r: any) => any;
295
326
  }
296
- export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
327
+ export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "parent" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
297
328
  export declare type ColumnConfig = {
298
329
  id: string;
299
330
  name: string;
@@ -303,3 +334,12 @@ export declare type ColumnConfig = {
303
334
  config?: ComponentInterface["componentConfig"];
304
335
  templateConfig?: ComponentInterface["componentConfig"];
305
336
  };
337
+ export interface ColumnsConfigI {
338
+ show: boolean;
339
+ delete: boolean;
340
+ width: number;
341
+ name: string;
342
+ id: string;
343
+ type: string;
344
+ config?: any;
345
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.9.0-rc.0",
3
+ "version": "2.9.1-beta.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.9.0-rc.0",
25
- "@kmkf-fe-packages/kmkf-utils": "2.9.0-rc.0",
24
+ "@kmkf-fe-packages/basic-components": "2.9.1-beta.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.9.1-beta.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": "b42dfb960ac3f140a6668c37243674aa5b4b444b",
44
+ "gitHead": "4b97a6cd35615a0cd1a8a51fe41b4a213d42fbcd",
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;