@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
@@ -1,6 +1,4 @@
1
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
2
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
3
  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."); }
6
4
  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); }
@@ -10,6 +8,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
8
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
9
  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); } }
12
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
+ 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; }
12
+ 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; }
13
13
  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; }
14
14
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
15
  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); }
@@ -19,6 +19,10 @@ import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
19
19
  import { BsHeaderPic, BsHeaderChild } from "../BS/common";
20
20
  import ReissueGift from "../BsE3/ReissueGift";
21
21
  import { erpColumnsMap } from "@kmkf-fe-packages/basic-components";
22
+ import { getJstColumns, getKmColumns } from "@kmkf-fe-packages/basic-components";
23
+ var orderGoodsHeaderComponentMap = {
24
+ pic: BsHeaderPic
25
+ };
22
26
  var GoodHeaderMap = {
23
27
  WDT_GOODS: {
24
28
  headerMap: {
@@ -88,6 +92,12 @@ var GoodHeaderMap = {
88
92
  key: "platformSpecId",
89
93
  width: 140
90
94
  },
95
+ brandName: {
96
+ component: BsHeaderChild,
97
+ name: "品牌名称",
98
+ key: "brandName",
99
+ width: 150
100
+ },
91
101
  orderPrice: {
92
102
  component: BsHeaderChild,
93
103
  name: "成交总金额",
@@ -119,6 +129,18 @@ var GoodHeaderMap = {
119
129
  name: "赠品方式",
120
130
  key: "giftType",
121
131
  width: 150
132
+ },
133
+ unitName: {
134
+ component: BsHeaderChild,
135
+ name: "基本单位",
136
+ key: "unitName",
137
+ width: 150
138
+ },
139
+ auxUnitName: {
140
+ component: BsHeaderChild,
141
+ name: "辅助单位",
142
+ key: "auxUnitName",
143
+ width: 150
122
144
  }
123
145
  },
124
146
  itemKey: {
@@ -132,13 +154,170 @@ var GoodHeaderMap = {
132
154
  specName: "商品SKU名称",
133
155
  apiSpecName: "平台规格名称",
134
156
  platformSpecId: "平台规格ID",
157
+ brandName: "品牌名称",
135
158
  orderPrice: "成交总金额",
136
159
  num: "数量",
137
160
  sharePrice: "分摊价",
138
- giftType: "赠品方式"
161
+ giftType: "赠品方式",
162
+ unitName: "基本单位",
163
+ auxUnitName: "辅助单位"
139
164
  },
140
165
  moneyKey: "orderPrice"
141
166
  },
167
+ WDT_AFTERSALE_GOODS: {
168
+ headerMap: {
169
+ oid: {
170
+ component: BsHeaderChild,
171
+ name: "原始子单号",
172
+ key: "oid",
173
+ width: 300
174
+ },
175
+ goodsName: {
176
+ component: BsHeaderChild,
177
+ name: "货品名称",
178
+ key: "goodsName",
179
+ width: 150
180
+ },
181
+ goodsNo: {
182
+ component: BsHeaderChild,
183
+ name: "货品编码",
184
+ key: "goodsNo",
185
+ width: 150
186
+ },
187
+ specName: {
188
+ component: BsHeaderChild,
189
+ name: "规格名称",
190
+ key: "specName",
191
+ width: 150
192
+ },
193
+ specNo: {
194
+ component: BsHeaderChild,
195
+ name: "商家编码",
196
+ key: "specNo",
197
+ width: 150
198
+ },
199
+ specCode: {
200
+ component: BsHeaderChild,
201
+ name: "规格编号",
202
+ key: "specCode",
203
+ width: 150
204
+ },
205
+ barcode: {
206
+ component: BsHeaderChild,
207
+ name: "条码",
208
+ key: "barcode",
209
+ width: 150
210
+ },
211
+ apiGoodsName: {
212
+ component: BsHeaderChild,
213
+ name: "平台货品名称",
214
+ key: "apiGoodsName",
215
+ width: 150
216
+ },
217
+ apiSpecName: {
218
+ component: BsHeaderChild,
219
+ name: "平台规格名称",
220
+ key: "apiSpecName",
221
+ width: 150
222
+ },
223
+ suiteName: {
224
+ component: BsHeaderChild,
225
+ name: "组合装名称",
226
+ key: "suiteName",
227
+ width: 250
228
+ },
229
+ suiteNo: {
230
+ component: BsHeaderChild,
231
+ name: "组合装编号",
232
+ key: "suiteNo",
233
+ width: 150
234
+ },
235
+ stockinNum: {
236
+ component: BsHeaderChild,
237
+ name: "入库数量",
238
+ key: "stockinNum",
239
+ width: 150
240
+ },
241
+ refundNum: {
242
+ component: BsHeaderChild,
243
+ name: "退款数量",
244
+ key: "refundNum",
245
+ width: 150
246
+ },
247
+ totalAmount: {
248
+ component: BsHeaderChild,
249
+ name: "退货总额",
250
+ key: "totalAmount",
251
+ width: 150
252
+ },
253
+ refundAmount: {
254
+ component: BsHeaderChild,
255
+ name: "已退款金额",
256
+ key: "refundAmount",
257
+ width: 150
258
+ },
259
+ num: {
260
+ component: BsHeaderChild,
261
+ name: "实际发出数量",
262
+ key: "num",
263
+ width: 150
264
+ },
265
+ price: {
266
+ component: BsHeaderChild,
267
+ name: "价格",
268
+ key: "price",
269
+ width: 150
270
+ },
271
+ originalPrice: {
272
+ component: BsHeaderChild,
273
+ name: "原价",
274
+ key: "originalPrice",
275
+ width: 150
276
+ },
277
+ giftTypeDesc: {
278
+ component: BsHeaderChild,
279
+ name: "赠品类型",
280
+ key: "giftTypeDesc",
281
+ width: 150
282
+ },
283
+ unitName: {
284
+ component: BsHeaderChild,
285
+ name: "基本单位",
286
+ key: "unitName",
287
+ width: 150
288
+ },
289
+ auxUnitName: {
290
+ component: BsHeaderChild,
291
+ name: "辅助单位",
292
+ key: "auxUnitName",
293
+ width: 150
294
+ }
295
+ },
296
+ itemKey: {
297
+ oid: "原始子单号",
298
+ goodsName: "货品名称",
299
+ goodsNo: "货品编码",
300
+ specName: "规格名称",
301
+ specNo: "商家编码",
302
+ specCode: "规格编号",
303
+ barcode: "条码",
304
+ apiGoodsName: "平台货品名称",
305
+ apiSpecName: "平台规格名称",
306
+ suiteName: "组合装名称",
307
+ suiteNo: "组合装编号",
308
+ stockinNum: "入库数量",
309
+ refundNum: "退款数量",
310
+ totalAmount: "退货总额",
311
+ refundAmount: "已退款金额",
312
+ num: "实际发出数量",
313
+ price: "价格",
314
+ originalPrice: "原价",
315
+ giftTypeDesc: "赠品类型",
316
+ unitName: "基本单位",
317
+ auxUnitName: "辅助单位"
318
+ },
319
+ moneyKey: "totalAmount"
320
+ },
142
321
  WDT_RETURN_GOODS: {
143
322
  headerMap: {
144
323
  goodId: {
@@ -201,6 +380,12 @@ var GoodHeaderMap = {
201
380
  key: "platformSpecId",
202
381
  width: 140
203
382
  },
383
+ brandName: {
384
+ component: BsHeaderChild,
385
+ name: "品牌名称",
386
+ key: "brandName",
387
+ width: 150
388
+ },
204
389
  num: {
205
390
  component: BsHeaderChild,
206
391
  name: "退货数量",
@@ -237,6 +422,18 @@ var GoodHeaderMap = {
237
422
  };
238
423
  return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
239
424
  }
425
+ },
426
+ unitName: {
427
+ component: BsHeaderChild,
428
+ name: "基本单位",
429
+ key: "unitName",
430
+ width: 150
431
+ },
432
+ auxUnitName: {
433
+ component: BsHeaderChild,
434
+ name: "辅助单位",
435
+ key: "auxUnitName",
436
+ width: 150
240
437
  }
241
438
  },
242
439
  itemKey: {
@@ -250,11 +447,14 @@ var GoodHeaderMap = {
250
447
  specName: "商品SKU名称",
251
448
  apiSpecName: "平台规格名称",
252
449
  platformSpecId: "平台规格ID",
450
+ brandName: "品牌名称",
253
451
  num: "退货数量",
254
452
  sharePrice: "分摊价",
255
453
  returnPrice: "退款金额",
256
454
  giftType: "赠品方式",
257
- type: "商品类型"
455
+ type: "商品类型",
456
+ unitName: "基本单位",
457
+ auxUnitName: "辅助单位"
258
458
  },
259
459
  moneyKey: "returnPrice"
260
460
  },
@@ -320,6 +520,12 @@ var GoodHeaderMap = {
320
520
  key: "platformSpecId",
321
521
  width: 140
322
522
  },
523
+ brandName: {
524
+ component: BsHeaderChild,
525
+ name: "品牌名称",
526
+ key: "brandName",
527
+ width: 150
528
+ },
323
529
  num: {
324
530
  component: BsHeaderChild,
325
531
  name: "换出数量",
@@ -356,6 +562,18 @@ var GoodHeaderMap = {
356
562
  name: "赠品方式",
357
563
  key: "giftType",
358
564
  width: 150
565
+ },
566
+ unitName: {
567
+ component: BsHeaderChild,
568
+ name: "基本单位",
569
+ key: "unitName",
570
+ width: 150
571
+ },
572
+ auxUnitName: {
573
+ component: BsHeaderChild,
574
+ name: "辅助单位",
575
+ key: "auxUnitName",
576
+ width: 150
359
577
  }
360
578
  },
361
579
  itemKey: {
@@ -369,11 +587,14 @@ var GoodHeaderMap = {
369
587
  specName: "商品SKU名称",
370
588
  apiSpecName: "平台规格名称",
371
589
  platformSpecId: "平台规格ID",
590
+ brandName: "品牌名称",
372
591
  num: "换出数量",
373
592
  productPrice: "商品单价",
374
593
  exchangePrice: "换出金额",
375
594
  type: "商品类型",
376
- giftType: "赠品方式"
595
+ giftType: "赠品方式",
596
+ unitName: "基本单位",
597
+ auxUnitName: "辅助单位"
377
598
  },
378
599
  moneyKey: "exchangePrice"
379
600
  },
@@ -967,19 +1188,19 @@ var GoodHeaderMap = {
967
1188
  saleBasePrice: {
968
1189
  name: "原价",
969
1190
  transformValue: function transformValue(price) {
970
- return price || price === 0 ? Number(price).toFixed(2) : "";
1191
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
971
1192
  },
972
1193
  renderExport: function renderExport(price) {
973
- return price || price === 0 ? Number(price).toFixed(2) : "";
1194
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
974
1195
  }
975
1196
  },
976
1197
  salePrice: {
977
1198
  name: "单价",
978
1199
  transformValue: function transformValue(price) {
979
- return price || price === 0 ? Number(price).toFixed(2) : "";
1200
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
980
1201
  },
981
1202
  renderExport: function renderExport(price) {
982
- return price || price === 0 ? Number(price).toFixed(2) : "";
1203
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
983
1204
  }
984
1205
  },
985
1206
  qty: "数量",
@@ -987,11 +1208,13 @@ var GoodHeaderMap = {
987
1208
  name: "总金额",
988
1209
  transformValue: function transformValue(val, record, parentName) {
989
1210
  if (!record) return "--";
990
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1211
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1212
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
991
1213
  },
992
1214
  renderExport: function renderExport(val, record, parentName) {
993
1215
  if (!record) return "--";
994
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1216
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1217
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
995
1218
  }
996
1219
  },
997
1220
  batchId: "批次号",
@@ -1008,6 +1231,22 @@ var GoodHeaderMap = {
1008
1231
  },
1009
1232
  moneyKey: "salePrice"
1010
1233
  },
1234
+ JST_AFTERSALE_GOODS: {
1235
+ headerMap: getJstColumns()["JST_AFTERSALE_GOODS"].reduce(function (acc, item) {
1236
+ acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
1237
+ component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
1238
+ name: item.title,
1239
+ key: item.dataIndex,
1240
+ width: item.width || 150
1241
+ });
1242
+ return acc;
1243
+ }, {}),
1244
+ itemKey: getJstColumns()["JST_AFTERSALE_GOODS"].reduce(function (acc, item) {
1245
+ acc[item.dataIndex] = item.title;
1246
+ return acc;
1247
+ }, {}),
1248
+ moneyKey: "price"
1249
+ },
1011
1250
  JST_REISSUE_GOODS: {
1012
1251
  headerMap: {
1013
1252
  name: "商品名称",
@@ -1021,19 +1260,19 @@ var GoodHeaderMap = {
1021
1260
  saleBasePrice: {
1022
1261
  name: "原价",
1023
1262
  transformValue: function transformValue(price) {
1024
- return price || price === 0 ? Number(price).toFixed(2) : "";
1263
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1025
1264
  },
1026
1265
  renderExport: function renderExport(price) {
1027
- return price || price === 0 ? Number(price).toFixed(2) : "";
1266
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1028
1267
  }
1029
1268
  },
1030
1269
  salePrice: {
1031
1270
  name: "单价",
1032
1271
  transformValue: function transformValue(price) {
1033
- return price || price === 0 ? Number(price).toFixed(2) : "";
1272
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1034
1273
  },
1035
1274
  renderExport: function renderExport(price) {
1036
- return price || price === 0 ? Number(price).toFixed(2) : "";
1275
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1037
1276
  }
1038
1277
  },
1039
1278
  qty: "数量",
@@ -1063,19 +1302,19 @@ var GoodHeaderMap = {
1063
1302
  saleBasePrice: {
1064
1303
  name: "原价",
1065
1304
  transformValue: function transformValue(price) {
1066
- return price || price === 0 ? Number(price).toFixed(2) : "";
1305
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1067
1306
  },
1068
1307
  renderExport: function renderExport(price) {
1069
- return price || price === 0 ? Number(price).toFixed(2) : "";
1308
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1070
1309
  }
1071
1310
  },
1072
1311
  salePrice: {
1073
1312
  name: "单价",
1074
1313
  transformValue: function transformValue(price) {
1075
- return price || price === 0 ? Number(price).toFixed(2) : "";
1314
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1076
1315
  },
1077
1316
  renderExport: function renderExport(price) {
1078
- return price || price === 0 ? Number(price).toFixed(2) : "";
1317
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1079
1318
  }
1080
1319
  },
1081
1320
  qty: "数量",
@@ -1083,11 +1322,13 @@ var GoodHeaderMap = {
1083
1322
  name: "总金额",
1084
1323
  transformValue: function transformValue(val, record, parentName) {
1085
1324
  if (!record) return "--";
1086
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1325
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1326
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1087
1327
  },
1088
1328
  renderExport: function renderExport(val, record, parentName) {
1089
1329
  if (!record) return "--";
1090
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1330
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1331
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1091
1332
  }
1092
1333
  },
1093
1334
  batchId: "批次号",
@@ -1118,19 +1359,19 @@ var GoodHeaderMap = {
1118
1359
  saleBasePrice: {
1119
1360
  name: "原价",
1120
1361
  transformValue: function transformValue(price) {
1121
- return price || price === 0 ? Number(price).toFixed(2) : "";
1362
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1122
1363
  },
1123
1364
  renderExport: function renderExport(price) {
1124
- return price || price === 0 ? Number(price).toFixed(2) : "";
1365
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1125
1366
  }
1126
1367
  },
1127
1368
  salePrice: {
1128
1369
  name: "单价",
1129
1370
  transformValue: function transformValue(price) {
1130
- return price || price === 0 ? Number(price).toFixed(2) : "";
1371
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1131
1372
  },
1132
1373
  renderExport: function renderExport(price) {
1133
- return price || price === 0 ? Number(price).toFixed(2) : "";
1374
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1134
1375
  }
1135
1376
  },
1136
1377
  qty: "数量",
@@ -1138,11 +1379,13 @@ var GoodHeaderMap = {
1138
1379
  name: "总金额",
1139
1380
  transformValue: function transformValue(val, record, parentName) {
1140
1381
  if (!record) return "--";
1141
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1382
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1383
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1142
1384
  },
1143
1385
  renderExport: function renderExport(val, record, parentName) {
1144
1386
  if (!record) return "--";
1145
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1387
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1388
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1146
1389
  }
1147
1390
  },
1148
1391
  isGift: {
@@ -1235,6 +1478,10 @@ var GoodHeaderMap = {
1235
1478
  },
1236
1479
  KM_GOODS: {
1237
1480
  headerMap: {
1481
+ sysItemOuterId: {
1482
+ name: "系统主商家编码",
1483
+ width: 250
1484
+ },
1238
1485
  sysSkuPropertiesName: {
1239
1486
  name: "规格名称",
1240
1487
  width: 250
@@ -1263,6 +1510,14 @@ var GoodHeaderMap = {
1263
1510
  name: "系统规格ID",
1264
1511
  width: 150
1265
1512
  },
1513
+ skuId: {
1514
+ name: "平台规格ID",
1515
+ width: 150
1516
+ },
1517
+ outerSkuId: {
1518
+ name: "平台规格编码",
1519
+ width: 150
1520
+ },
1266
1521
  itemSysId: {
1267
1522
  name: "系统商品ID",
1268
1523
  width: 150
@@ -1270,7 +1525,10 @@ var GoodHeaderMap = {
1270
1525
  sysPicPath: {
1271
1526
  name: "商品图片",
1272
1527
  width: 100,
1273
- component: BsHeaderPic
1528
+ component: BsHeaderPic,
1529
+ transformValue: function transformValue(val) {
1530
+ return val !== null && val !== void 0 && val.startsWith("http") ? val : "https://erp.superboss.cc".concat(val);
1531
+ }
1274
1532
  },
1275
1533
  num: {
1276
1534
  name: "数量",
@@ -1287,12 +1545,28 @@ var GoodHeaderMap = {
1287
1545
  type: {
1288
1546
  name: "商品类型",
1289
1547
  width: 100
1548
+ },
1549
+ supplierName: {
1550
+ name: "供应商名称",
1551
+ width: 150
1552
+ },
1553
+ supplierCode: {
1554
+ name: "供应商编码",
1555
+ width: 150
1556
+ },
1557
+ remark: {
1558
+ name: "备注",
1559
+ width: 200
1290
1560
  }
1291
1561
  },
1292
1562
  moneyKey: "money"
1293
1563
  },
1294
1564
  KM_REISSUE_GOODS: {
1295
1565
  headerMap: {
1566
+ sysItemOuterId: {
1567
+ name: "系统主商家编码",
1568
+ width: 250
1569
+ },
1296
1570
  sysSkuPropertiesName: {
1297
1571
  name: "规格名称",
1298
1572
  width: 250
@@ -1345,6 +1619,14 @@ var GoodHeaderMap = {
1345
1619
  name: "商品类型",
1346
1620
  width: 150
1347
1621
  },
1622
+ supplierName: {
1623
+ name: "供应商名称",
1624
+ width: 150
1625
+ },
1626
+ supplierCode: {
1627
+ name: "供应商编码",
1628
+ width: 150
1629
+ },
1348
1630
  sysPicPath: {
1349
1631
  name: "商品图片",
1350
1632
  width: 100,
@@ -1353,21 +1635,900 @@ var GoodHeaderMap = {
1353
1635
  },
1354
1636
  moneyKey: "money"
1355
1637
  },
1356
- SKX_GOODS: {
1638
+ KM_RETURN_GOODS: {
1639
+ headerMap: getKmColumns()["KM_RETURN_GOODS"].reduce(function (acc, item) {
1640
+ acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
1641
+ component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
1642
+ name: item.title,
1643
+ key: item.dataIndex,
1644
+ width: item.width || 150
1645
+ });
1646
+ return acc;
1647
+ }, {}),
1648
+ itemKey: getKmColumns()["KM_RETURN_GOODS"].reduce(function (acc, item) {
1649
+ acc[item.dataIndex] = item.title;
1650
+ return acc;
1651
+ }, {}),
1652
+ moneyKey: "price"
1653
+ },
1654
+ KM_EXCHANGE_GOODS: {
1655
+ headerMap: getKmColumns()["KM_EXCHANGE_GOODS"].reduce(function (acc, item) {
1656
+ acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
1657
+ component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
1658
+ name: item.title,
1659
+ key: item.dataIndex,
1660
+ width: item.width || 150
1661
+ });
1662
+ return acc;
1663
+ }, {}),
1664
+ itemKey: getKmColumns()["KM_EXCHANGE_GOODS"].reduce(function (acc, item) {
1665
+ acc[item.dataIndex] = item.title;
1666
+ return acc;
1667
+ }, {}),
1668
+ moneyKey: "price"
1669
+ },
1670
+ JY_GOODS: {
1357
1671
  headerMap: {
1358
- skuEcode: {
1359
- name: "[SKX]发货单明细-skuEcode",
1360
- width: 200
1672
+ productName: {
1673
+ component: BsHeaderChild,
1674
+ name: "系统商品名称",
1675
+ key: "productName",
1676
+ width: 150
1361
1677
  },
1362
- subOrderId: {
1363
- name: "[SKX]发货单-子订单号",
1364
- width: 300
1678
+ productCode: {
1679
+ component: BsHeaderChild,
1680
+ name: "系统商品编码",
1681
+ key: "productCode",
1682
+ width: 150
1365
1683
  },
1366
- onBillNo: {
1367
- name: "[SKX]ON出库通知单号",
1368
- width: 200
1369
- }
1370
- }
1684
+ productId: {
1685
+ component: BsHeaderChild,
1686
+ name: "系统商品ID",
1687
+ key: "productId",
1688
+ width: 150
1689
+ },
1690
+ skuName: {
1691
+ component: BsHeaderChild,
1692
+ name: "系统规格名称",
1693
+ key: "skuName",
1694
+ width: 150
1695
+ },
1696
+ skuCode: {
1697
+ component: BsHeaderChild,
1698
+ name: "系统规格编码",
1699
+ key: "skuCode",
1700
+ width: 150
1701
+ },
1702
+ specId: {
1703
+ component: BsHeaderChild,
1704
+ name: "规格ID",
1705
+ key: "specId",
1706
+ width: 150
1707
+ },
1708
+ // goodsName: {
1709
+ // component: BsHeaderChild,
1710
+ // name: "货品名称",
1711
+ // key: "goodsName",
1712
+ // width: 250,
1713
+ // },
1714
+ // goodsCode: {
1715
+ // component: BsHeaderChild,
1716
+ // name: "货品编号",
1717
+ // key: "goodsCode",
1718
+ // width: 200,
1719
+ // },
1720
+ // goodsId: {
1721
+ // component: BsHeaderChild,
1722
+ // name: "货品ID",
1723
+ // key: "goodsId",
1724
+ // width: 150,
1725
+ // },
1726
+ goodsClass: {
1727
+ component: BsHeaderChild,
1728
+ name: "货品类别",
1729
+ key: "goodsClass",
1730
+ width: 150
1731
+ },
1732
+ code: {
1733
+ component: BsHeaderChild,
1734
+ name: "条码",
1735
+ key: "code",
1736
+ width: 150
1737
+ },
1738
+ // specName: {
1739
+ // component: BsHeaderChild,
1740
+ // name: "规格名称",
1741
+ // key: "specName",
1742
+ // width: 200,
1743
+ // },
1744
+ // specCode: {
1745
+ // component: BsHeaderChild,
1746
+ // name: "规格编号",
1747
+ // key: "specCode",
1748
+ // width: 150,
1749
+ // },
1750
+
1751
+ mallProductName: {
1752
+ component: BsHeaderChild,
1753
+ name: "平台商品名称",
1754
+ key: "mallProductName",
1755
+ width: 250
1756
+ },
1757
+ mallProductOutCode: {
1758
+ component: BsHeaderChild,
1759
+ name: "平台商品编码",
1760
+ key: "mallProductOutCode",
1761
+ width: 150
1762
+ },
1763
+ mallProductId: {
1764
+ component: BsHeaderChild,
1765
+ name: "平台商品ID",
1766
+ key: "mallProductId",
1767
+ width: 250
1768
+ },
1769
+ mallSkuName: {
1770
+ component: BsHeaderChild,
1771
+ name: "平台规格名称",
1772
+ key: "mallSkuName",
1773
+ width: 250
1774
+ },
1775
+ mallSkuId: {
1776
+ component: BsHeaderChild,
1777
+ name: "平台规格ID",
1778
+ key: "mallSkuId",
1779
+ width: 250
1780
+ },
1781
+ sellCount: {
1782
+ component: BsHeaderChild,
1783
+ name: "数量",
1784
+ key: "sellCount",
1785
+ width: 100
1786
+ },
1787
+ sellPrice: {
1788
+ component: BsHeaderChild,
1789
+ name: "单价",
1790
+ key: "sellPrice",
1791
+ width: 150
1792
+ },
1793
+ mallSellingPrice: {
1794
+ component: BsHeaderChild,
1795
+ name: "平台商品价格",
1796
+ key: "mallSellingPrice",
1797
+ width: 150
1798
+ },
1799
+ sellTotal: {
1800
+ component: BsHeaderChild,
1801
+ name: "金额",
1802
+ key: "sellTotal",
1803
+ width: 150
1804
+ },
1805
+ settlementPrice: {
1806
+ component: BsHeaderChild,
1807
+ name: "结算价",
1808
+ key: "settlementPrice",
1809
+ width: 150
1810
+ },
1811
+ divideOrderFee: {
1812
+ component: BsHeaderChild,
1813
+ name: "分摊实付金额",
1814
+ key: "divideOrderFee",
1815
+ width: 150
1816
+ },
1817
+ bfit: {
1818
+ component: BsHeaderChild,
1819
+ name: "是否组合装",
1820
+ key: "bfit",
1821
+ width: 150,
1822
+ transformValue: function transformValue(val) {
1823
+ if (isNull(val)) return "--";
1824
+ return val === "True" ? "是" : "否";
1825
+ },
1826
+ renderExport: function renderExport(val) {
1827
+ if (isNull(val)) return "--";
1828
+ return val === "True" ? "是" : "否";
1829
+ }
1830
+ },
1831
+ combinationName: {
1832
+ component: BsHeaderChild,
1833
+ name: "组合商品名称",
1834
+ key: "combinationName",
1835
+ width: 150
1836
+ },
1837
+ combinationCode: {
1838
+ component: BsHeaderChild,
1839
+ name: "组合商品编码",
1840
+ key: "combinationCode",
1841
+ width: 150
1842
+ },
1843
+ gift: {
1844
+ component: BsHeaderChild,
1845
+ name: "是否赠品",
1846
+ key: "gift",
1847
+ width: 150,
1848
+ transformValue: function transformValue(val) {
1849
+ if (isNull(val)) return "--";
1850
+ return val === "1" ? "是" : "否";
1851
+ },
1852
+ renderExport: function renderExport(val) {
1853
+ if (isNull(val)) return "--";
1854
+ return val === "1" ? "是" : "否";
1855
+ }
1856
+ },
1857
+ skuNote: {
1858
+ component: BsHeaderChild,
1859
+ name: "商品备注",
1860
+ key: "skuNote",
1861
+ width: 150
1862
+ }
1863
+ },
1864
+ itemKey: {
1865
+ // goodsName: "货品名称",
1866
+ // goodsCode: "货品编号",
1867
+ // goodsId: "货品ID",
1868
+ goodsClass: "货品类别",
1869
+ code: "条码",
1870
+ // specName: "规格名称",
1871
+ // specCode: "规格编号",
1872
+ specId: "规格ID",
1873
+ productName: "系统商品名称",
1874
+ productCode: "系统商品编码",
1875
+ productId: "系统商品ID",
1876
+ skuName: "系统规格名称",
1877
+ skuCode: "系统规格编码",
1878
+ mallProductName: "平台商品名称",
1879
+ mallProductOutCode: "平台商品编码",
1880
+ mallProductId: "平台商品ID",
1881
+ mallSkuName: "平台规格名称",
1882
+ mallSkuId: "平台规格ID",
1883
+ sellCount: "数量",
1884
+ sellPrice: "单价",
1885
+ mallSellingPrice: "平台商品价格",
1886
+ sellTotal: "金额",
1887
+ settlementPrice: "结算价",
1888
+ divideOrderFee: "分摊实付金额",
1889
+ bfit: "是否组合装",
1890
+ combinationName: "组合商品名称",
1891
+ combinationCode: "组合商品编码",
1892
+ gift: "是否赠品",
1893
+ skuNote: "商品备注"
1894
+ },
1895
+ moneyKey: "sellTotal"
1896
+ },
1897
+ JY_REISSUE_GOODS: {
1898
+ headerMap: {
1899
+ productName: {
1900
+ component: BsHeaderChild,
1901
+ name: "系统商品名称",
1902
+ key: "productName",
1903
+ width: 150
1904
+ },
1905
+ productCode: {
1906
+ component: BsHeaderChild,
1907
+ name: "系统商品编码",
1908
+ key: "productCode",
1909
+ width: 150
1910
+ },
1911
+ productId: {
1912
+ component: BsHeaderChild,
1913
+ name: "系统商品ID",
1914
+ key: "productId",
1915
+ width: 150
1916
+ },
1917
+ skuName: {
1918
+ component: BsHeaderChild,
1919
+ name: "系统规格名称",
1920
+ key: "skuName",
1921
+ width: 150
1922
+ },
1923
+ skuCode: {
1924
+ component: BsHeaderChild,
1925
+ name: "系统规格编码",
1926
+ key: "skuCode",
1927
+ width: 150
1928
+ },
1929
+ specId: {
1930
+ component: BsHeaderChild,
1931
+ name: "规格ID",
1932
+ key: "specId",
1933
+ width: 150
1934
+ },
1935
+ // goodsName: {
1936
+ // component: BsHeaderChild,
1937
+ // name: "货品名称",
1938
+ // key: "goodsName",
1939
+ // width: 250,
1940
+ // },
1941
+ // goodsCode: {
1942
+ // component: BsHeaderChild,
1943
+ // name: "货品编号",
1944
+ // key: "goodsCode",
1945
+ // width: 200,
1946
+ // },
1947
+ // goodsId: {
1948
+ // component: BsHeaderChild,
1949
+ // name: "货品ID",
1950
+ // key: "goodsId",
1951
+ // width: 150,
1952
+ // },
1953
+ goodsClass: {
1954
+ component: BsHeaderChild,
1955
+ name: "货品类别",
1956
+ key: "goodsClass",
1957
+ width: 150
1958
+ },
1959
+ code: {
1960
+ component: BsHeaderChild,
1961
+ name: "条码",
1962
+ key: "code",
1963
+ width: 150
1964
+ },
1965
+ // specName: {
1966
+ // component: BsHeaderChild,
1967
+ // name: "规格名称",
1968
+ // key: "specName",
1969
+ // width: 200,
1970
+ // },
1971
+ // specCode: {
1972
+ // component: BsHeaderChild,
1973
+ // name: "规格编号",
1974
+ // key: "specCode",
1975
+ // width: 150,
1976
+ // },
1977
+
1978
+ mallProductName: {
1979
+ component: BsHeaderChild,
1980
+ name: "平台商品名称",
1981
+ key: "mallProductName",
1982
+ width: 250
1983
+ },
1984
+ mallProductOutCode: {
1985
+ component: BsHeaderChild,
1986
+ name: "平台商品编码",
1987
+ key: "mallProductOutCode",
1988
+ width: 150
1989
+ },
1990
+ mallProductId: {
1991
+ component: BsHeaderChild,
1992
+ name: "平台商品ID",
1993
+ key: "mallProductId",
1994
+ width: 250
1995
+ },
1996
+ mallSkuName: {
1997
+ component: BsHeaderChild,
1998
+ name: "平台规格名称",
1999
+ key: "mallSkuName",
2000
+ width: 250
2001
+ },
2002
+ mallSkuId: {
2003
+ component: BsHeaderChild,
2004
+ name: "平台规格ID",
2005
+ key: "mallSkuId",
2006
+ width: 250
2007
+ },
2008
+ sellCount: {
2009
+ component: BsHeaderChild,
2010
+ name: "数量",
2011
+ key: "sellCount",
2012
+ width: 100
2013
+ },
2014
+ sellPrice: {
2015
+ component: BsHeaderChild,
2016
+ name: "单价",
2017
+ key: "sellPrice",
2018
+ width: 150
2019
+ },
2020
+ mallSellingPrice: {
2021
+ component: BsHeaderChild,
2022
+ name: "平台商品价格",
2023
+ key: "mallSellingPrice",
2024
+ width: 150
2025
+ },
2026
+ sellTotal: {
2027
+ component: BsHeaderChild,
2028
+ name: "金额",
2029
+ key: "sellTotal",
2030
+ width: 150
2031
+ },
2032
+ bfit: {
2033
+ component: BsHeaderChild,
2034
+ name: "是否组合装",
2035
+ key: "bfit",
2036
+ width: 150,
2037
+ transformValue: function transformValue(val) {
2038
+ if (isNull(val)) return "--";
2039
+ return val === "True" ? "是" : "否";
2040
+ },
2041
+ renderExport: function renderExport(val) {
2042
+ if (isNull(val)) return "--";
2043
+ return val === "True" ? "是" : "否";
2044
+ }
2045
+ },
2046
+ combinationName: {
2047
+ component: BsHeaderChild,
2048
+ name: "组合商品名称",
2049
+ key: "combinationName",
2050
+ width: 150
2051
+ },
2052
+ combinationCode: {
2053
+ component: BsHeaderChild,
2054
+ name: "组合商品编码",
2055
+ key: "combinationCode",
2056
+ width: 150
2057
+ },
2058
+ gift: {
2059
+ component: BsHeaderChild,
2060
+ name: "是否赠品",
2061
+ key: "gift",
2062
+ width: 150,
2063
+ transformValue: function transformValue(val) {
2064
+ if (isNull(val)) return "--";
2065
+ return val === "1" ? "是" : "否";
2066
+ },
2067
+ renderExport: function renderExport(val) {
2068
+ if (isNull(val)) return "--";
2069
+ return val === "1" ? "是" : "否";
2070
+ }
2071
+ }
2072
+ },
2073
+ itemKey: {
2074
+ // goodsName: "货品名称",
2075
+ // goodsCode: "货品编号",
2076
+ // goodsId: "货品ID",
2077
+ goodsClass: "货品类别",
2078
+ code: "条码",
2079
+ // specName: "规格名称",
2080
+ // specCode: "规格编号",
2081
+ specId: "规格ID",
2082
+ productName: "系统商品名称",
2083
+ productCode: "系统商品编码",
2084
+ productId: "系统商品ID",
2085
+ skuName: "系统规格名称",
2086
+ skuCode: "系统规格编码",
2087
+ mallProductName: "平台商品名称",
2088
+ mallProductOutCode: "平台商品编码",
2089
+ mallProductId: "平台商品ID",
2090
+ mallSkuName: "平台规格名称",
2091
+ mallSkuId: "平台规格ID",
2092
+ sellCount: "数量",
2093
+ sellPrice: "单价",
2094
+ mallSellingPrice: "平台商品价格",
2095
+ sellTotal: "金额",
2096
+ divideOrderFee: "分摊实付金额",
2097
+ bfit: "是否组合装",
2098
+ combinationName: "组合商品名称",
2099
+ combinationCode: "组合商品编码",
2100
+ gift: "是否赠品"
2101
+ },
2102
+ moneyKey: "sellTotal"
2103
+ },
2104
+ SKX_GOODS: {
2105
+ headerMap: {
2106
+ skuEcode: {
2107
+ name: "[SKX]发货单明细-skuEcode",
2108
+ width: 250
2109
+ },
2110
+ subOrderId: {
2111
+ name: "[SKX]发货单-子订单号",
2112
+ width: 300
2113
+ },
2114
+ onBillNo: {
2115
+ name: "[SKX]ON出库通知单号",
2116
+ width: 200
2117
+ }
2118
+ }
2119
+ },
2120
+ SKX_RETURN_GOODS: {
2121
+ headerMap: {
2122
+ returnSkuEcode: {
2123
+ name: "[SKX]退货单明细-returnSkuEcode",
2124
+ width: 300
2125
+ },
2126
+ returnSubOrderId: {
2127
+ name: "[SKX]退货单-子订单号",
2128
+ width: 300
2129
+ },
2130
+ returnBillNo: {
2131
+ name: "[SKX]TH退换货单号",
2132
+ width: 200
2133
+ }
2134
+ }
2135
+ },
2136
+ JKY_GOODS: {
2137
+ headerMap: {
2138
+ goodsNo: {
2139
+ component: BsHeaderChild,
2140
+ name: "货品编号",
2141
+ key: "goodsNo",
2142
+ width: 150
2143
+ },
2144
+ goodsName: {
2145
+ component: BsHeaderChild,
2146
+ name: "货品名称",
2147
+ key: "goodsName",
2148
+ width: 150
2149
+ },
2150
+ goodsId: {
2151
+ component: BsHeaderChild,
2152
+ name: "货品ID",
2153
+ key: "goodsId",
2154
+ width: 150
2155
+ },
2156
+ barcode: {
2157
+ component: BsHeaderChild,
2158
+ name: "货品条码",
2159
+ key: "barcode",
2160
+ width: 150
2161
+ },
2162
+ specName: {
2163
+ component: BsHeaderChild,
2164
+ name: "规格名称",
2165
+ key: "specName",
2166
+ width: 150
2167
+ },
2168
+ specId: {
2169
+ component: BsHeaderChild,
2170
+ name: "规格ID",
2171
+ key: "specId",
2172
+ width: 150
2173
+ },
2174
+ skuImgUrl: {
2175
+ component: BsHeaderPic,
2176
+ name: "规格图片",
2177
+ key: "skuImgUrl",
2178
+ width: 150
2179
+ },
2180
+ sellCount: {
2181
+ component: BsHeaderChild,
2182
+ name: "数量",
2183
+ key: "sellCount",
2184
+ width: 100
2185
+ },
2186
+ actualSendCount: {
2187
+ component: BsHeaderChild,
2188
+ name: "实发数量",
2189
+ key: "actualSendCount",
2190
+ width: 150
2191
+ },
2192
+ sellPrice: {
2193
+ component: BsHeaderChild,
2194
+ name: "单价",
2195
+ key: "sellPrice",
2196
+ width: 150
2197
+ },
2198
+ sellTotal: {
2199
+ component: BsHeaderChild,
2200
+ name: "总金额",
2201
+ key: "sellTotal",
2202
+ width: 150
2203
+ },
2204
+ discountTotal: {
2205
+ component: BsHeaderChild,
2206
+ name: "抵扣金额",
2207
+ key: "discountTotal",
2208
+ width: 150
2209
+ },
2210
+ shareFavourableFee: {
2211
+ component: BsHeaderChild,
2212
+ name: "分摊金额",
2213
+ key: "shareFavourableFee",
2214
+ width: 150
2215
+ },
2216
+ shareFavourableAfterFee: {
2217
+ component: BsHeaderChild,
2218
+ name: "分摊后金额",
2219
+ key: "shareFavourableAfterFee",
2220
+ width: 150
2221
+ },
2222
+ customerPrice: {
2223
+ component: BsHeaderChild,
2224
+ name: "终端销售单价",
2225
+ key: "customerPrice",
2226
+ width: 150
2227
+ },
2228
+ customerTotal: {
2229
+ component: BsHeaderChild,
2230
+ name: "终端销售金额",
2231
+ key: "customerTotal",
2232
+ width: 150
2233
+ },
2234
+ divideSellTotal: {
2235
+ component: BsHeaderChild,
2236
+ name: "实付金额",
2237
+ key: "divideSellTotal",
2238
+ width: 150
2239
+ },
2240
+ isGift: {
2241
+ component: BsHeaderChild,
2242
+ name: "是否赠品",
2243
+ key: "isGift",
2244
+ width: 150,
2245
+ transformValue: function transformValue(val) {
2246
+ if (isNull(val)) return "--";
2247
+ return val === "1" ? "是" : "否";
2248
+ },
2249
+ renderExport: function renderExport(val) {
2250
+ if (isNull(val)) return "--";
2251
+ return val === "1" ? "是" : "否";
2252
+ }
2253
+ },
2254
+ isFit: {
2255
+ component: BsHeaderChild,
2256
+ name: "是否组合装",
2257
+ key: "isFit",
2258
+ width: 150,
2259
+ transformValue: function transformValue(val) {
2260
+ if (isNull(val)) return "--";
2261
+ return val === "1" ? "是" : "否";
2262
+ },
2263
+ renderExport: function renderExport(val) {
2264
+ if (isNull(val)) return "--";
2265
+ return val === "1" ? "是" : "否";
2266
+ }
2267
+ },
2268
+ isPresell: {
2269
+ component: BsHeaderChild,
2270
+ name: "是否预售货品",
2271
+ key: "isPresell",
2272
+ width: 150,
2273
+ transformValue: function transformValue(val) {
2274
+ if (isNull(val)) return "--";
2275
+ return val === "1" ? "是" : "否";
2276
+ },
2277
+ renderExport: function renderExport(val) {
2278
+ if (isNull(val)) return "--";
2279
+ return val === "1" ? "是" : "否";
2280
+ }
2281
+ },
2282
+ brandName: {
2283
+ component: BsHeaderChild,
2284
+ name: "品牌",
2285
+ key: "brandName",
2286
+ width: 200
2287
+ },
2288
+ cateName: {
2289
+ component: BsHeaderChild,
2290
+ name: "货品类别",
2291
+ key: "cateName",
2292
+ width: 150
2293
+ },
2294
+ goodsTags: {
2295
+ component: BsHeaderChild,
2296
+ name: "货品标签",
2297
+ key: "goodsTags",
2298
+ width: 250
2299
+ },
2300
+ goodsMemo: {
2301
+ component: BsHeaderChild,
2302
+ name: "货品备注",
2303
+ key: "goodsMemo",
2304
+ width: 250
2305
+ },
2306
+ tradeGoodsNo: {
2307
+ component: BsHeaderChild,
2308
+ name: "交易货品编号",
2309
+ key: "tradeGoodsNo",
2310
+ width: 250
2311
+ },
2312
+ tradeGoodsName: {
2313
+ component: BsHeaderChild,
2314
+ name: "交易货品名称",
2315
+ key: "tradeGoodsName",
2316
+ width: 250
2317
+ },
2318
+ tradeGoodsSpec: {
2319
+ component: BsHeaderChild,
2320
+ name: "交易规格名称",
2321
+ key: "tradeGoodsSpec",
2322
+ width: 250
2323
+ },
2324
+ sourceSubtradeNo: {
2325
+ component: BsHeaderChild,
2326
+ name: "网店子订单号",
2327
+ key: "sourceSubtradeNo",
2328
+ width: 250
2329
+ },
2330
+ platGoodsId: {
2331
+ component: BsHeaderChild,
2332
+ name: "平台商品ID",
2333
+ key: "platGoodsId",
2334
+ width: 250
2335
+ },
2336
+ subTradeId: {
2337
+ component: BsHeaderChild,
2338
+ name: "商品明细ID",
2339
+ key: "subTradeId",
2340
+ width: 250
2341
+ },
2342
+ batchNo: {
2343
+ component: BsHeaderChild,
2344
+ name: "批次号",
2345
+ key: "batchNo",
2346
+ width: 250
2347
+ },
2348
+ sendCount: {
2349
+ component: BsHeaderChild,
2350
+ name: "批次数量",
2351
+ key: "sendCount",
2352
+ width: 250
2353
+ },
2354
+ productDate: {
2355
+ component: BsHeaderChild,
2356
+ name: "生产日期",
2357
+ key: "productDate",
2358
+ width: 250
2359
+ },
2360
+ expireDate: {
2361
+ component: BsHeaderChild,
2362
+ name: "到期日期",
2363
+ key: "expireDate",
2364
+ width: 250
2365
+ }
2366
+ },
2367
+ itemKey: {
2368
+ goodsNo: "货品编号",
2369
+ goodsName: "货品名称",
2370
+ goodsId: "货品ID",
2371
+ barcode: "货品条码",
2372
+ specName: "规格名称",
2373
+ specId: "规格ID",
2374
+ skuImgUrl: "规格图片",
2375
+ sellCount: "数量",
2376
+ actualSendCount: "实发数量",
2377
+ sellPrice: "单价",
2378
+ sellTotal: "金额",
2379
+ discountTotal: "抵扣金额",
2380
+ shareFavourableFee: "分摊金额",
2381
+ shareFavourableAfterFee: "分摊后金额",
2382
+ customerPrice: "终端销售单价",
2383
+ customerTotal: "终端销售金额",
2384
+ divideSellTotal: "实付金额",
2385
+ isGift: "是否赠品",
2386
+ isFit: "是否组合装",
2387
+ isPresell: "是否预售货品",
2388
+ brandName: "品牌",
2389
+ cateName: "货品类别",
2390
+ goodsTags: "货品标签",
2391
+ goodsMemo: "货品备注",
2392
+ tradeGoodsNo: "交易货品编号",
2393
+ tradeGoodsName: "交易货品名称",
2394
+ tradeGoodsSpec: "交易规格名称",
2395
+ sourceSubtradeNo: "网店子订单号",
2396
+ platGoodsId: "平台商品ID",
2397
+ subTradeId: "商品明细ID",
2398
+ batchNo: "批次号",
2399
+ sendCount: "批次数量",
2400
+ productDate: "生产日期",
2401
+ expireDate: "到期日期"
2402
+ },
2403
+ moneyKey: "sellTotal"
2404
+ },
2405
+ JKY_REISSUE_GOODS: {
2406
+ headerMap: {
2407
+ goodsNo: {
2408
+ component: BsHeaderChild,
2409
+ name: "货品编号",
2410
+ key: "goodsNo",
2411
+ width: 150
2412
+ },
2413
+ goodsName: {
2414
+ component: BsHeaderChild,
2415
+ name: "货品名称",
2416
+ key: "goodsName",
2417
+ width: 150
2418
+ },
2419
+ goodsId: {
2420
+ component: BsHeaderChild,
2421
+ name: "货品ID",
2422
+ key: "goodsId",
2423
+ width: 150
2424
+ },
2425
+ barcode: {
2426
+ component: BsHeaderChild,
2427
+ name: "货品条码",
2428
+ key: "barcode",
2429
+ width: 150
2430
+ },
2431
+ specName: {
2432
+ component: BsHeaderChild,
2433
+ name: "规格名称",
2434
+ key: "specName",
2435
+ width: 150
2436
+ },
2437
+ specId: {
2438
+ component: BsHeaderChild,
2439
+ name: "规格ID",
2440
+ key: "specId",
2441
+ width: 150
2442
+ },
2443
+ skuImgUrl: {
2444
+ component: BsHeaderPic,
2445
+ name: "规格图片",
2446
+ key: "skuImgUrl",
2447
+ width: 150
2448
+ },
2449
+ sellCount: {
2450
+ component: BsHeaderChild,
2451
+ name: "发货数量",
2452
+ key: "sellCount",
2453
+ width: 100
2454
+ },
2455
+ sellPrice: {
2456
+ component: BsHeaderChild,
2457
+ name: "单价",
2458
+ key: "sellPrice",
2459
+ width: 150
2460
+ },
2461
+ sellTotal: {
2462
+ component: BsHeaderChild,
2463
+ name: "总金额",
2464
+ key: "sellTotal",
2465
+ width: 150
2466
+ },
2467
+ reason: {
2468
+ component: BsHeaderChild,
2469
+ name: "退换原因",
2470
+ key: "reason",
2471
+ width: 250
2472
+ },
2473
+ isGift: {
2474
+ component: BsHeaderChild,
2475
+ name: "是否赠品",
2476
+ key: "isGift",
2477
+ width: 150,
2478
+ transformValue: function transformValue(val) {
2479
+ if (isNull(val)) return "--";
2480
+ return val === "1" ? "是" : "否";
2481
+ },
2482
+ renderExport: function renderExport(val) {
2483
+ if (isNull(val)) return "--";
2484
+ return val === "1" ? "是" : "否";
2485
+ }
2486
+ },
2487
+ isFit: {
2488
+ component: BsHeaderChild,
2489
+ name: "是否组合装",
2490
+ key: "isFit",
2491
+ width: 150,
2492
+ transformValue: function transformValue(val) {
2493
+ if (isNull(val)) return "--";
2494
+ return val === "1" ? "是" : "否";
2495
+ },
2496
+ renderExport: function renderExport(val) {
2497
+ if (isNull(val)) return "--";
2498
+ return val === "1" ? "是" : "否";
2499
+ }
2500
+ },
2501
+ brandName: {
2502
+ component: BsHeaderChild,
2503
+ name: "品牌",
2504
+ key: "brandName",
2505
+ width: 150
2506
+ },
2507
+ cateName: {
2508
+ component: BsHeaderChild,
2509
+ name: "货品类别",
2510
+ key: "cateName",
2511
+ width: 150
2512
+ }
2513
+ },
2514
+ itemKey: {
2515
+ goodsNo: "货品编号",
2516
+ goodsName: "货品名称",
2517
+ goodsId: "货品ID",
2518
+ barcode: "货品条码",
2519
+ specName: "规格名称",
2520
+ specId: "规格ID",
2521
+ skuImgUrl: "规格图片",
2522
+ sellCount: "发货数量",
2523
+ sellPrice: "单价",
2524
+ sellTotal: "总金额",
2525
+ reason: "退换原因",
2526
+ isGift: "是否赠品",
2527
+ isFit: "是否组合装",
2528
+ brandName: "品牌",
2529
+ cateName: "货品类别"
2530
+ },
2531
+ moneyKey: "sellTotal"
1371
2532
  }
1372
2533
  };
1373
2534
  GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];