@kmkf-fe-packages/services-components 2.2.31 → 2.2.33

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.
@@ -1,6 +1,6 @@
1
1
  import LogisticsInterception from "../components/LogisticsInterception";
2
2
  import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
3
- export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/TradeId").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/CommonDataTime").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/BS/BsSystemOrder").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/CommonSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default;
3
+ export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/ActualPayment").default | import("../components/Address").default | import("../components/AfterSalesOrderId").default | import("../components/Alipay").default | import("../components/BS/BsExchange").default | import("../components/BS/BsGoods").default | import("../components/BS/BsLogistics").default | import("../components/BS/BsPosting").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/BS/BsSystemOrder").default | import("../components/BsE3/BsGoods").default | import("../components/BsE3/BsReissueE3").default | import("../components/BuyerNick").default | import("../components/Calculation").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/CommonDataTime").default | import("../components/CommonInput").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/CompletedUser").default | import("../components/DataTime").default | import("../components/EItemEnCode").default | import("../components/EItemId").default | import("../components/EItemSelect").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/Remark").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
4
4
  export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
5
5
  queryWorkOrderDetail?: ((p: any) => void) | undefined;
6
6
  flatTemplateList?: any;
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
11
  import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
14
+ import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
15
15
  import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
@@ -25,7 +25,8 @@ var typeMap = {
25
25
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG,
26
26
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG,
27
27
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG,
28
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG
28
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
29
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG
29
30
  };
30
31
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
31
32
  var _this = this,
@@ -121,6 +122,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
121
122
  columns: ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.columns) || [],
122
123
  showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
123
124
  })) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
125
+ console.log("column", column, "".concat(options.id, "_").concat(typeMap[options.type].key, "_").concat(column.dataIndex));
124
126
  return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
125
127
  transformValue: column.render,
126
128
  renderExport: column.renderExport,
@@ -21,9 +21,10 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
21
21
  import styles from "./index.module.less";
22
22
  import defaultImg from "./img/default-img.png";
23
23
  import CopyText from "../../commonComponents/CopyText";
24
- import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
24
+ import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
25
25
  import { getColumnsMap } from "./constants/columnsBaseInfoMap";
26
26
  import { VideoCameraTwoTone } from "@ant-design/icons";
27
+ import { ApaasImage } from "@kmkf-fe-packages/basic-components";
27
28
  var Paragraph = Typography.Paragraph;
28
29
  export var getFormItem = function getFormItem(_ref) {
29
30
  var name = _ref.name,
@@ -455,7 +456,7 @@ export var BsGoodPic = function BsGoodPic(list) {
455
456
  onClick: function onClick(e) {
456
457
  return e.stopPropagation();
457
458
  }
458
- }, /*#__PURE__*/React.createElement(Image, {
459
+ }, /*#__PURE__*/React.createElement(ApaasImage, {
459
460
  width: 60,
460
461
  src: finalSrc
461
462
  }));
@@ -780,7 +781,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
780
781
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
781
782
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
782
783
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
783
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
784
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
785
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
784
786
  };
785
787
  var rowKeyMap = {
786
788
  BS_SYSTEM_ORDER: "billNo",
@@ -790,7 +792,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
790
792
  BS_E3_SYSTEM_ORDER: "orderSn",
791
793
  GY_SYSTEM_ORDER: "billNo",
792
794
  JST_SYSTEM_ORDER: "oId",
793
- JY_SYSTEM_ORDER: "tradeNo"
795
+ JY_SYSTEM_ORDER: "tradeNo",
796
+ WDT_RETURN_BILL_NO: "refundNo"
794
797
  };
795
798
  var rowSelection = {
796
799
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
@@ -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 } from "@kmkf-fe-packages/basic-components";
23
+ var orderGoodsHeaderComponentMap = {
24
+ pic: BsHeaderPic
25
+ };
22
26
  var GoodHeaderMap = {
23
27
  WDT_GOODS: {
24
28
  headerMap: {
@@ -146,6 +150,146 @@ var GoodHeaderMap = {
146
150
  },
147
151
  moneyKey: "orderPrice"
148
152
  },
153
+ WDT_AFTERSALE_GOODS: {
154
+ headerMap: {
155
+ oid: {
156
+ component: BsHeaderChild,
157
+ name: "原始子单号",
158
+ key: "oid",
159
+ width: 200
160
+ },
161
+ goodsName: {
162
+ component: BsHeaderChild,
163
+ name: "货品名称",
164
+ key: "goodsName",
165
+ width: 150
166
+ },
167
+ goodsNo: {
168
+ component: BsHeaderChild,
169
+ name: "货品编码",
170
+ key: "goodsNo",
171
+ width: 150
172
+ },
173
+ specName: {
174
+ component: BsHeaderChild,
175
+ name: "规格名称",
176
+ key: "specName",
177
+ width: 150
178
+ },
179
+ specNo: {
180
+ component: BsHeaderChild,
181
+ name: "商家编码",
182
+ key: "specNo",
183
+ width: 150
184
+ },
185
+ specCode: {
186
+ component: BsHeaderChild,
187
+ name: "规格编号",
188
+ key: "specCode",
189
+ width: 150
190
+ },
191
+ barcode: {
192
+ component: BsHeaderChild,
193
+ name: "条码",
194
+ key: "barcode",
195
+ width: 150
196
+ },
197
+ apiGoodsName: {
198
+ component: BsHeaderChild,
199
+ name: "平台货品名称",
200
+ key: "apiGoodsName",
201
+ width: 150
202
+ },
203
+ apiSpecName: {
204
+ component: BsHeaderChild,
205
+ name: "平台规格名称",
206
+ key: "apiSpecName",
207
+ width: 150
208
+ },
209
+ suiteName: {
210
+ component: BsHeaderChild,
211
+ name: "组合装名称",
212
+ key: "suiteName",
213
+ width: 150
214
+ },
215
+ suiteNo: {
216
+ component: BsHeaderChild,
217
+ name: "组合装编号",
218
+ key: "suiteNo",
219
+ width: 150
220
+ },
221
+ stockinNum: {
222
+ component: BsHeaderChild,
223
+ name: "入库数量",
224
+ key: "stockinNum",
225
+ width: 150
226
+ },
227
+ refundNum: {
228
+ component: BsHeaderChild,
229
+ name: "退款数量",
230
+ key: "refundNum",
231
+ width: 150
232
+ },
233
+ totalAmount: {
234
+ component: BsHeaderChild,
235
+ name: "退货总额",
236
+ key: "totalAmount",
237
+ width: 150
238
+ },
239
+ refundAmount: {
240
+ component: BsHeaderChild,
241
+ name: "已退款金额",
242
+ key: "refundAmount",
243
+ width: 150
244
+ },
245
+ orderNum: {
246
+ component: BsHeaderChild,
247
+ name: "实际发出数量",
248
+ key: "orderNum",
249
+ width: 150
250
+ },
251
+ price: {
252
+ component: BsHeaderChild,
253
+ name: "价格",
254
+ key: "price",
255
+ width: 150
256
+ },
257
+ originalPrice: {
258
+ component: BsHeaderChild,
259
+ name: "原价",
260
+ key: "originalPrice",
261
+ width: 150
262
+ },
263
+ giftType: {
264
+ component: BsHeaderChild,
265
+ name: "赠品类型",
266
+ key: "giftType",
267
+ width: 150
268
+ }
269
+ },
270
+ itemKey: {
271
+ oid: "原始子单号",
272
+ goodsName: "货品名称",
273
+ goodsNo: "货品编码",
274
+ specName: "规格名称",
275
+ specNo: "商家编码",
276
+ specCode: "规格编号",
277
+ barcode: "条码",
278
+ apiGoodsName: "平台货品名称",
279
+ apiSpecName: "平台规格名称",
280
+ suiteName: "组合装名称",
281
+ suiteNo: "组合装编号",
282
+ stockinNum: "入库数量",
283
+ refundNum: "退款数量",
284
+ totalAmount: "退货总额",
285
+ refundAmount: "已退款金额",
286
+ orderNum: "实际发出数量",
287
+ price: "价格",
288
+ originalPrice: "原价",
289
+ giftType: "赠品类型"
290
+ },
291
+ moneyKey: "totalAmount"
292
+ },
149
293
  WDT_RETURN_GOODS: {
150
294
  headerMap: {
151
295
  goodId: {
@@ -1029,6 +1173,22 @@ var GoodHeaderMap = {
1029
1173
  },
1030
1174
  moneyKey: "salePrice"
1031
1175
  },
1176
+ JST_AFTERSALE_GOODS: {
1177
+ headerMap: getJstColumns()["JST_AFTERSALE_GOODS"].reduce(function (acc, item) {
1178
+ acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
1179
+ component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
1180
+ name: item.title,
1181
+ key: item.dataIndex,
1182
+ width: item.width || 150
1183
+ });
1184
+ return acc;
1185
+ }, {}),
1186
+ itemKey: getJstColumns()["JST_AFTERSALE_GOODS"].reduce(function (acc, item) {
1187
+ acc[item.dataIndex] = item.title;
1188
+ return acc;
1189
+ }, {}),
1190
+ moneyKey: "price"
1191
+ },
1032
1192
  JST_REISSUE_GOODS: {
1033
1193
  headerMap: {
1034
1194
  name: "商品名称",
@@ -28,6 +28,14 @@ var CONFIG_MAP = {
28
28
  JY_GOODS: {
29
29
  name: "巨益",
30
30
  key: "jyGoods"
31
+ },
32
+ WDT_AFTERSALE_GOODS: {
33
+ name: "旺店通售后",
34
+ key: "wdtAftersaleGoods"
35
+ },
36
+ JST_AFTERSALE_GOODS: {
37
+ name: "jst售后",
38
+ key: "jstAftersaleGoods"
31
39
  }
32
40
  };
33
41
  var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
@@ -1,8 +1,8 @@
1
- import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
- import React from 'react';
3
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
- import Express from '../Express';
5
- import ExpressCode from '../ExpressCode';
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
+ import React from "react";
3
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ import Express from "../Express";
5
+ import ExpressCode from "../ExpressCode";
6
6
  declare class ReturnLogistics implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
@@ -18,7 +18,8 @@ declare class ReturnLogistics implements ComponentInterface {
18
18
  formField: string;
19
19
  canSort: boolean;
20
20
  children: ComponentInterface[];
21
- dataType: ComponentInterface['dataType'];
21
+ dataType: ComponentInterface["dataType"];
22
+ isChange: boolean;
22
23
  constructor(options: PickOption);
23
24
  renderClient: (record: any) => React.JSX.Element;
24
25
  renderPc: () => null;
@@ -8,9 +8,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  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; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  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); }
11
- import React from 'react';
12
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
13
- import { ExpressLogistics } from '@kmkf-fe-packages/basic-components';
11
+ import React from "react";
12
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
13
+ import { ExpressLogistics } from "@kmkf-fe-packages/basic-components";
14
14
  import Express from "../Express";
15
15
  import ExpressCode from "../ExpressCode";
16
16
  import GetFormItem from "../GetFormItem";
@@ -33,6 +33,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
33
33
  _defineProperty(this, "canSort", void 0);
34
34
  _defineProperty(this, "children", void 0);
35
35
  _defineProperty(this, "dataType", void 0);
36
+ _defineProperty(this, "isChange", void 0);
36
37
  _defineProperty(this, "renderClient", function (record) {
37
38
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
38
39
  });
@@ -53,6 +54,20 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
53
54
  });
54
55
  _defineProperty(this, "editRender", function (p) {
55
56
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
57
+ var onReturnLogisticsCodeBlur = function onReturnLogisticsCodeBlur(val) {
58
+ if (_this.isChange) {
59
+ var _p$onBlur;
60
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, val, "returnLogisticsCode");
61
+ _this.isChange = false;
62
+ }
63
+ };
64
+ var onReturnLogisticsCodeChange = function onReturnLogisticsCodeChange() {
65
+ _this.isChange = true;
66
+ for (var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++) {
67
+ e[_key] = arguments[_key];
68
+ }
69
+ p === null || p === void 0 ? void 0 : p.onChange.apply(p, e);
70
+ };
56
71
  return /*#__PURE__*/React.createElement(GetFormItem, {
57
72
  title: _this.name,
58
73
  name: _this.id,
@@ -60,18 +75,19 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
60
75
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
61
76
  display: p === null || p === void 0 ? void 0 : p.display,
62
77
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
63
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
78
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
64
79
  component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
65
80
  options: _this.expressDateInstance.getExpressData(),
66
- onBlur: p === null || p === void 0 ? void 0 : p.onBlur
81
+ onBlur: onReturnLogisticsCodeBlur,
82
+ onChange: onReturnLogisticsCodeChange
67
83
  }))
68
84
  });
69
85
  });
70
86
  _defineProperty(this, "filterConfig", function (item) {
71
87
  return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
72
- subKey: 'returnLogisticsCompany'
88
+ subKey: "returnLogisticsCompany"
73
89
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
74
- subKey: 'returnLogisticsCode'
90
+ subKey: "returnLogisticsCode"
75
91
  }))];
76
92
  });
77
93
  this.name = options.name;
@@ -80,37 +96,38 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
80
96
  this.formField = options.id;
81
97
  this.type = options.type;
82
98
  this.showContains = false;
83
- this.dataType = 'string';
99
+ this.dataType = "string";
84
100
  this.componentConfig = options.componentConfig;
85
101
  this.expressDateInstance = ExpressData.getInstance();
86
102
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
87
- name: '退货物流公司',
103
+ name: "退货物流公司",
88
104
  id: "".concat(options.id, "_returnLogisticsCompany")
89
105
  }));
90
106
  this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, options), {}, {
91
- name: '退货物流单号',
107
+ name: "退货物流单号",
92
108
  id: "".concat(options.id, "_returnLogisticsCode")
93
109
  }));
94
110
  this.isCombinationComponent = true;
95
111
  this.canSort = false;
96
- this.dataType = 'object';
112
+ this.dataType = "object";
97
113
  this.children = [this.express, this.expressCode];
114
+ this.isChange = false;
98
115
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
99
116
  validator: function validator(_, value) {
100
117
  var _this$componentConfig6;
101
118
  if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.isSingle) {
102
119
  var _this$componentConfig7, _this$componentConfig8;
103
- if (((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.showField) === 'EXPRESS_COMPANY' && !(value !== null && value !== void 0 && value.company)) {
104
- return Promise.reject(new Error('请选择物流公司'));
105
- } else if (((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.showField) === 'EXPRESS_WAYBILL_CODE' && !(value !== null && value !== void 0 && value.order)) {
106
- return Promise.reject(new Error('请输入物流单号'));
120
+ if (((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.showField) === "EXPRESS_COMPANY" && !(value !== null && value !== void 0 && value.company)) {
121
+ return Promise.reject(new Error("请选择物流公司"));
122
+ } else if (((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.showField) === "EXPRESS_WAYBILL_CODE" && !(value !== null && value !== void 0 && value.order)) {
123
+ return Promise.reject(new Error("请输入物流单号"));
107
124
  }
108
125
  } else {
109
126
  if (!(value !== null && value !== void 0 && value.company)) {
110
- return Promise.reject(new Error('请选择物流公司'));
127
+ return Promise.reject(new Error("请选择物流公司"));
111
128
  }
112
129
  if (!(value !== null && value !== void 0 && value.order)) {
113
- return Promise.reject(new Error('请输入物流单号'));
130
+ return Promise.reject(new Error("请输入物流单号"));
114
131
  }
115
132
  }
116
133
  return Promise.resolve();
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => CommonInput | StatusSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonInput | JstSendGood | MsgStatus | StatusSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
@@ -145,6 +145,7 @@ export var factory = function factory(type, options) {
145
145
  case "GY_SYSTEM_ORDER":
146
146
  case "JST_SYSTEM_ORDER":
147
147
  case "JY_SYSTEM_ORDER":
148
+ case "WDT_RETURN_BILL_NO":
148
149
  return new BsSystemOrder(options);
149
150
  case "JST_SEND_GOOD":
150
151
  case "BS_SEND_GOOD":
@@ -166,6 +167,8 @@ export var factory = function factory(type, options) {
166
167
  case "JY_GOODS":
167
168
  case "KM_GOODS":
168
169
  case "JST_GOODS":
170
+ case "WDT_AFTERSALE_GOODS":
171
+ case "JST_AFTERSALE_GOODS":
169
172
  return new PublicGoods(options);
170
173
  case "JST_REISSUE_GOODS":
171
174
  case "KM_REISSUE_GOODS":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.2.31",
3
+ "version": "2.2.33",
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.2.31",
25
- "@kmkf-fe-packages/kmkf-utils": "2.2.30",
24
+ "@kmkf-fe-packages/basic-components": "2.2.33",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.2.33",
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": "c47de88a6fd7ea054dde5fdb58a9d70b029fb77f",
44
+ "gitHead": "d0e41a890aec89ae7cd91737060b00c04df2d6c9",
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;
@@ -1,3 +0,0 @@
1
- import { GetColumnsBaseInfoMapFnType } from "./columnsBaseInfoMap";
2
- declare const getColumns: GetColumnsBaseInfoMapFnType;
3
- export default getColumns;
@@ -1,308 +0,0 @@
1
- import React from "react";
2
- import { Image } from "antd";
3
- import { CopyTextIcon } from "@kmkf-fe-packages/basic-components";
4
- var getColumns = function getColumns(_ref) {
5
- var _ref$text = _ref.text,
6
- text = _ref$text === void 0 ? "" : _ref$text;
7
- var data = {
8
- //旺店通商品信息
9
- WDT_GOODS: [{
10
- dataIndex: "goodId",
11
- title: "\u5546\u54C1ID",
12
- align: "center",
13
- ellipsis: true,
14
- width: 70
15
- }, {
16
- dataIndex: "goodNo",
17
- title: "\u5546\u54C1\u7F16\u7801",
18
- align: "center",
19
- ellipsis: true,
20
- width: 180
21
- }, {
22
- dataIndex: "goodName",
23
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
24
- align: "center",
25
- width: 250,
26
- render: function render(text) {
27
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
28
- val: text
29
- });
30
- }
31
- }, {
32
- dataIndex: "specId",
33
- title: "".concat(text, "SKUID"),
34
- align: "center",
35
- ellipsis: true,
36
- width: 100
37
- }, {
38
- dataIndex: "specNo",
39
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
40
- align: "center",
41
- ellipsis: true,
42
- width: 180
43
- }, {
44
- dataIndex: "specName",
45
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
46
- align: "center",
47
- width: 250,
48
- render: function render(text) {
49
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
50
- val: text
51
- });
52
- }
53
- }, {
54
- dataIndex: "imgUrl",
55
- title: "\u56FE\u7247",
56
- align: "center",
57
- ellipsis: true,
58
- width: 100,
59
- render: function render(val) {
60
- return /*#__PURE__*/React.createElement(Image, {
61
- width: 60,
62
- src: val
63
- });
64
- }
65
- }, {
66
- dataIndex: "orderPrice",
67
- title: "\u6210\u4EA4\u603B\u91D1\u989D",
68
- align: "center",
69
- ellipsis: true,
70
- width: 100,
71
- render: function render(val, record) {
72
- return (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null;
73
- }
74
- }, {
75
- dataIndex: "num",
76
- title: "".concat(text, "\u6570\u91CF"),
77
- align: "center",
78
- ellipsis: true,
79
- width: 100
80
- },
81
- // {
82
- // dataIndex: 'actualNum',
83
- // title: `${text}实发数量`,
84
- // align: 'center',
85
- // ellipsis: true,
86
- // width: 100,
87
- // },
88
- {
89
- dataIndex: "sharePrice",
90
- title: "\u5206\u644A\u4EF7",
91
- align: "center",
92
- ellipsis: true,
93
- width: 70
94
- }, {
95
- dataIndex: "giftType",
96
- title: "\u8D60\u54C1\u65B9\u5F0F",
97
- align: "center",
98
- ellipsis: true,
99
- width: 100,
100
- render: function render(val) {
101
- var giftTypeMap = {
102
- 0: "非赠品",
103
- 1: "自动赠送",
104
- 2: "手工赠送",
105
- 3: "回购自动送赠品",
106
- 4: "前N有礼送赠品",
107
- 6: "天猫优仓赠品",
108
- 7: "淘宝CRM会员送赠"
109
- };
110
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
111
- }
112
- }],
113
- //旺店通退货商品信息
114
- WDT_RETURN_GOODS: [{
115
- dataIndex: "goodId",
116
- title: "\u5546\u54C1ID",
117
- align: "center",
118
- ellipsis: true,
119
- width: 70
120
- }, {
121
- dataIndex: "goodNo",
122
- title: "\u5546\u54C1\u7F16\u7801",
123
- align: "center",
124
- ellipsis: true,
125
- width: 180
126
- }, {
127
- dataIndex: "goodName",
128
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
129
- align: "center",
130
- width: 250,
131
- render: function render(text) {
132
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
133
- val: text
134
- });
135
- }
136
- }, {
137
- dataIndex: "specId",
138
- title: "".concat(text, "SKUID"),
139
- align: "center",
140
- ellipsis: true,
141
- width: 100
142
- }, {
143
- dataIndex: "specNo",
144
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
145
- align: "center",
146
- ellipsis: true,
147
- width: 180
148
- }, {
149
- dataIndex: "specName",
150
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
151
- align: "center",
152
- width: 250,
153
- render: function render(text) {
154
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
155
- val: text
156
- });
157
- }
158
- }, {
159
- dataIndex: "num",
160
- title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
161
- align: "center",
162
- ellipsis: true,
163
- width: 100
164
- }, {
165
- dataIndex: "sharePrice",
166
- title: "\u5206\u644A\u4EF7",
167
- align: "center",
168
- ellipsis: true,
169
- width: 80
170
- }, {
171
- dataIndex: "returnPrice",
172
- title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
173
- align: "center",
174
- ellipsis: true,
175
- width: 100
176
- }, {
177
- dataIndex: "giftType",
178
- title: "\u8D60\u54C1\u65B9\u5F0F",
179
- align: "center",
180
- ellipsis: true,
181
- width: 100,
182
- render: function render(val) {
183
- var giftTypeMap = {
184
- 0: "非赠品",
185
- 1: "自动赠送",
186
- 2: "手工赠送",
187
- 3: "回购自动送赠品",
188
- 4: "前N有礼送赠品",
189
- 6: "天猫优仓赠品",
190
- 7: "淘宝CRM会员送赠"
191
- };
192
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
193
- }
194
- }, {
195
- dataIndex: "type",
196
- title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
197
- align: "center",
198
- ellipsis: true,
199
- width: 100,
200
- render: function render(val) {
201
- var typeMap = {
202
- "1": "单品",
203
- "2": "组合装"
204
- };
205
- return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
206
- }
207
- }],
208
- //旺店通换出商品信息
209
- WDT_EXCHANGE_GOODS: [{
210
- dataIndex: "goodId",
211
- title: "\u5546\u54C1ID",
212
- align: "center",
213
- ellipsis: true,
214
- width: 70
215
- }, {
216
- dataIndex: "goodNo",
217
- title: "\u5546\u54C1\u7F16\u7801",
218
- align: "center",
219
- ellipsis: true,
220
- width: 180
221
- }, {
222
- dataIndex: "goodName",
223
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
224
- align: "center",
225
- width: 250,
226
- render: function render(text) {
227
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
228
- val: text
229
- });
230
- }
231
- }, {
232
- dataIndex: "specId",
233
- title: "".concat(text, "SKUID"),
234
- align: "center",
235
- ellipsis: true,
236
- width: 100
237
- }, {
238
- dataIndex: "specNo",
239
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
240
- align: "center",
241
- ellipsis: true,
242
- width: 180
243
- }, {
244
- dataIndex: "specName",
245
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
246
- align: "center",
247
- width: 250,
248
- render: function render(text) {
249
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
250
- val: text
251
- });
252
- }
253
- }, {
254
- dataIndex: "num",
255
- title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
256
- align: "center",
257
- ellipsis: true,
258
- width: 100
259
- }, {
260
- dataIndex: "price",
261
- title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
262
- align: "center",
263
- ellipsis: true,
264
- width: 100
265
- }, {
266
- dataIndex: "exchangePrice",
267
- title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
268
- align: "center",
269
- ellipsis: true,
270
- width: 100
271
- }, {
272
- dataIndex: "giftType",
273
- title: "\u8D60\u54C1\u65B9\u5F0F",
274
- align: "center",
275
- ellipsis: true,
276
- width: 100,
277
- render: function render(val) {
278
- var giftTypeMap = {
279
- 0: "非赠品",
280
- 1: "自动赠送",
281
- 2: "手工赠送",
282
- 3: "回购自动送赠品",
283
- 4: "前N有礼送赠品",
284
- 6: "天猫优仓赠品",
285
- 7: "淘宝CRM会员送赠"
286
- };
287
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
288
- }
289
- }, {
290
- dataIndex: "type",
291
- title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
292
- align: "center",
293
- ellipsis: true,
294
- width: 100,
295
- render: function render(val) {
296
- var typeMap = {
297
- "1": "单品",
298
- "2": "组合装"
299
- };
300
- return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
301
- }
302
- }]
303
- };
304
- //旺店通补发商品信息
305
- data["WDT_REISSUE_GOODS"] = data["WDT_GOODS"];
306
- return data;
307
- };
308
- export default getColumns;