@kmkf-fe-packages/services-components 2.10.12 → 2.10.14

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.
@@ -20,6 +20,10 @@ import { BsHeaderPic, BsHeaderChild } from "../BS/common";
20
20
  import ReissueGift from "../BsE3/ReissueGift";
21
21
  import { erpColumnsMap } from "@kmkf-fe-packages/basic-components";
22
22
  import { getJstColumns, getKmColumns } from "@kmkf-fe-packages/basic-components";
23
+ var isNullNotFalse = function isNullNotFalse(val) {
24
+ if (val === false) return false;
25
+ return isNull(val);
26
+ };
23
27
  var orderGoodsHeaderComponentMap = {
24
28
  pic: BsHeaderPic
25
29
  };
@@ -1188,19 +1192,19 @@ var GoodHeaderMap = {
1188
1192
  saleBasePrice: {
1189
1193
  name: "原价",
1190
1194
  transformValue: function transformValue(price) {
1191
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1195
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1192
1196
  },
1193
1197
  renderExport: function renderExport(price) {
1194
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1198
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1195
1199
  }
1196
1200
  },
1197
1201
  salePrice: {
1198
1202
  name: "单价",
1199
1203
  transformValue: function transformValue(price) {
1200
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1204
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1201
1205
  },
1202
1206
  renderExport: function renderExport(price) {
1203
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1207
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1204
1208
  }
1205
1209
  },
1206
1210
  qty: "数量",
@@ -1209,12 +1213,12 @@ var GoodHeaderMap = {
1209
1213
  transformValue: function transformValue(val, record, parentName) {
1210
1214
  if (!record) return "--";
1211
1215
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1212
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1216
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1213
1217
  },
1214
1218
  renderExport: function renderExport(val, record, parentName) {
1215
1219
  if (!record) return "--";
1216
1220
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1217
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1221
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1218
1222
  }
1219
1223
  },
1220
1224
  batchId: "批次号",
@@ -1260,19 +1264,19 @@ var GoodHeaderMap = {
1260
1264
  saleBasePrice: {
1261
1265
  name: "原价",
1262
1266
  transformValue: function transformValue(price) {
1263
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1267
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1264
1268
  },
1265
1269
  renderExport: function renderExport(price) {
1266
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1270
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1267
1271
  }
1268
1272
  },
1269
1273
  salePrice: {
1270
1274
  name: "单价",
1271
1275
  transformValue: function transformValue(price) {
1272
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1276
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1273
1277
  },
1274
1278
  renderExport: function renderExport(price) {
1275
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1279
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1276
1280
  }
1277
1281
  },
1278
1282
  qty: "数量",
@@ -1302,19 +1306,19 @@ var GoodHeaderMap = {
1302
1306
  saleBasePrice: {
1303
1307
  name: "原价",
1304
1308
  transformValue: function transformValue(price) {
1305
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1309
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1306
1310
  },
1307
1311
  renderExport: function renderExport(price) {
1308
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1312
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1309
1313
  }
1310
1314
  },
1311
1315
  salePrice: {
1312
1316
  name: "单价",
1313
1317
  transformValue: function transformValue(price) {
1314
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1318
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1315
1319
  },
1316
1320
  renderExport: function renderExport(price) {
1317
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1321
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1318
1322
  }
1319
1323
  },
1320
1324
  qty: "数量",
@@ -1323,12 +1327,12 @@ var GoodHeaderMap = {
1323
1327
  transformValue: function transformValue(val, record, parentName) {
1324
1328
  if (!record) return "--";
1325
1329
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1326
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1330
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1327
1331
  },
1328
1332
  renderExport: function renderExport(val, record, parentName) {
1329
1333
  if (!record) return "--";
1330
1334
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1331
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1335
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1332
1336
  }
1333
1337
  },
1334
1338
  batchId: "批次号",
@@ -1359,19 +1363,19 @@ var GoodHeaderMap = {
1359
1363
  saleBasePrice: {
1360
1364
  name: "原价",
1361
1365
  transformValue: function transformValue(price) {
1362
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1366
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1363
1367
  },
1364
1368
  renderExport: function renderExport(price) {
1365
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1369
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1366
1370
  }
1367
1371
  },
1368
1372
  salePrice: {
1369
1373
  name: "单价",
1370
1374
  transformValue: function transformValue(price) {
1371
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1375
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1372
1376
  },
1373
1377
  renderExport: function renderExport(price) {
1374
- return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1378
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
1375
1379
  }
1376
1380
  },
1377
1381
  qty: "数量",
@@ -1380,12 +1384,12 @@ var GoodHeaderMap = {
1380
1384
  transformValue: function transformValue(val, record, parentName) {
1381
1385
  if (!record) return "--";
1382
1386
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1383
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1387
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1384
1388
  },
1385
1389
  renderExport: function renderExport(val, record, parentName) {
1386
1390
  if (!record) return "--";
1387
1391
  var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1388
- return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1392
+ return Number(amount).toFixed(4).replace(/\.?0+$/, "");
1389
1393
  }
1390
1394
  },
1391
1395
  isGift: {
@@ -1473,11 +1477,11 @@ var GoodHeaderMap = {
1473
1477
  name: "赠品类型",
1474
1478
  width: 100,
1475
1479
  transformValue: function transformValue(val) {
1476
- if (isNull(val)) return "--";
1480
+ if (isNullNotFalse(val)) return "--";
1477
1481
  return val ? "赠品" : "非赠品";
1478
1482
  },
1479
1483
  renderExport: function renderExport(val) {
1480
- if (isNull(val)) return "--";
1484
+ if (isNullNotFalse(val)) return "--";
1481
1485
  return val ? "赠品" : "非赠品";
1482
1486
  }
1483
1487
  },
@@ -1485,11 +1489,11 @@ var GoodHeaderMap = {
1485
1489
  width: 200,
1486
1490
  name: "是否组合商品",
1487
1491
  transformValue: function transformValue(val) {
1488
- if (isNull(val)) return "--";
1492
+ if (isNullNotFalse(val)) return "--";
1489
1493
  return val ? "是" : "否";
1490
1494
  },
1491
1495
  renderExport: function renderExport(val) {
1492
- if (isNull(val)) return "--";
1496
+ if (isNullNotFalse(val)) return "--";
1493
1497
  return val ? "是" : "否";
1494
1498
  }
1495
1499
  },
@@ -1497,11 +1501,11 @@ var GoodHeaderMap = {
1497
1501
  width: 100,
1498
1502
  name: "是否退款",
1499
1503
  transformValue: function transformValue(val) {
1500
- if (isNull(val)) return "--";
1504
+ if (isNullNotFalse(val)) return "--";
1501
1505
  return val ? "是" : "否";
1502
1506
  },
1503
1507
  renderExport: function renderExport(val) {
1504
- if (isNull(val)) return "--";
1508
+ if (isNullNotFalse(val)) return "--";
1505
1509
  return val ? "是" : "否";
1506
1510
  }
1507
1511
  },
@@ -1587,11 +1591,11 @@ var GoodHeaderMap = {
1587
1591
  name: "赠品类型",
1588
1592
  width: 100,
1589
1593
  transformValue: function transformValue(val) {
1590
- if (isNull(val)) return "--";
1594
+ if (isNullNotFalse(val)) return "--";
1591
1595
  return val ? "赠品" : "非赠品";
1592
1596
  },
1593
1597
  renderExport: function renderExport(val) {
1594
- if (isNull(val)) return "--";
1598
+ if (isNullNotFalse(val)) return "--";
1595
1599
  return val ? "赠品" : "非赠品";
1596
1600
  }
1597
1601
  },
@@ -1599,11 +1603,11 @@ var GoodHeaderMap = {
1599
1603
  width: 200,
1600
1604
  name: "是否组合商品",
1601
1605
  transformValue: function transformValue(val) {
1602
- if (isNull(val)) return "--";
1606
+ if (isNullNotFalse(val)) return "--";
1603
1607
  return val ? "是" : "否";
1604
1608
  },
1605
1609
  renderExport: function renderExport(val) {
1606
- if (isNull(val)) return "--";
1610
+ if (isNullNotFalse(val)) return "--";
1607
1611
  return val ? "是" : "否";
1608
1612
  }
1609
1613
  },
@@ -1611,11 +1615,11 @@ var GoodHeaderMap = {
1611
1615
  width: 100,
1612
1616
  name: "是否退款",
1613
1617
  transformValue: function transformValue(val) {
1614
- if (isNull(val)) return "--";
1618
+ if (isNullNotFalse(val)) return "--";
1615
1619
  return val ? "是" : "否";
1616
1620
  },
1617
1621
  renderExport: function renderExport(val) {
1618
- if (isNull(val)) return "--";
1622
+ if (isNullNotFalse(val)) return "--";
1619
1623
  return val ? "是" : "否";
1620
1624
  }
1621
1625
  },
@@ -1,7 +1,6 @@
1
1
  // 查询订单详情
2
2
  export var queryOrderDetail = function queryOrderDetail(tid) {
3
3
  var _window, _window$parent;
4
- console.log('请求ERP订单详情', tid);
5
4
  (_window = window) === null || _window === void 0 ? void 0 : (_window$parent = _window.parent) === null || _window$parent === void 0 ? void 0 : _window$parent.postMessage({
6
5
  method: 'queryOrder',
7
6
  data: {
@@ -13,7 +12,6 @@ export var queryOrderDetail = function queryOrderDetail(tid) {
13
12
  // 查询抖店openId
14
13
  export var queryDouDianOpenId = function queryDouDianOpenId(originTid) {
15
14
  var _window2, _window2$parent;
16
- console.log('查询抖音店铺买家id', originTid);
17
15
  (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$parent = _window2.parent) === null || _window2$parent === void 0 ? void 0 : _window2$parent.postMessage({
18
16
  method: 'queryDouDianOpenId',
19
17
  data: {
@@ -74,9 +74,7 @@ var PictureName = /*#__PURE__*/_createClass(function PictureName(options) {
74
74
  document.body.removeChild(a);
75
75
  window.URL.revokeObjectURL(url);
76
76
  });
77
- } catch (error) {
78
- console.error(error);
79
- }
77
+ } catch (error) {}
80
78
  };
81
79
  return /*#__PURE__*/React.createElement(Space, {
82
80
  className: "pictruePc"
@@ -92,9 +92,7 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
92
92
  document.body.removeChild(a);
93
93
  window.URL.revokeObjectURL(url);
94
94
  });
95
- } catch (error) {
96
- console.error(error);
97
- }
95
+ } catch (error) {}
98
96
  } else {
99
97
  copy("".concat(hostUrl, "/").concat(item.url));
100
98
  message.success('图片链接复制成功');
@@ -45,9 +45,7 @@ var typeMap = {
45
45
  }
46
46
  version = ((_companyUserConfig = companyUserConfig) === null || _companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl = _companyUserConfig.plugins) === null || _companyUserConfig$pl === void 0 ? void 0 : (_companyUserConfig$pl2 = _companyUserConfig$pl.wdt) === null || _companyUserConfig$pl2 === void 0 ? void 0 : _companyUserConfig$pl2.version) || "flagship";
47
47
  }
48
- } catch (error) {
49
- console.error(error);
50
- }
48
+ } catch (error) {}
51
49
  if (version === "flagship") return 1;
52
50
  },
53
51
  handleOptions: function handleOptions(options) {
@@ -229,15 +227,14 @@ var AsyncSelect = /*#__PURE__*/function () {
229
227
  componentConfig: this.componentConfig
230
228
  });
231
229
  }
232
- _context.next = 14;
230
+ _context.next = 13;
233
231
  break;
234
232
  case 11:
235
233
  _context.prev = 11;
236
234
  _context.t1 = _context["catch"](1);
237
- console.debug("api error", _context.t1);
238
- case 14:
235
+ case 13:
239
236
  return _context.abrupt("return", options);
240
- case 15:
237
+ case 14:
241
238
  case "end":
242
239
  return _context.stop();
243
240
  }
@@ -94,13 +94,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
94
94
  copy("".concat(addressText).concat(detail));
95
95
  message.success('复制成功');
96
96
  case 14:
97
- _context.next = 19;
97
+ _context.next = 18;
98
98
  break;
99
99
  case 16:
100
100
  _context.prev = 16;
101
101
  _context.t0 = _context["catch"](1);
102
- console.log(_context.t0);
103
- case 19:
102
+ case 18:
104
103
  case "end":
105
104
  return _context.stop();
106
105
  }
@@ -83,7 +83,6 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
83
83
  });
84
84
  _defineProperty(this, "renderClient", function (record) {
85
85
  var _this$optionsMap;
86
- console.log("renderClient", record, _this.getIsValue());
87
86
  // 特殊自定义组件为平台状态时匹配出label
88
87
  var label = _this.getIsValue() ? (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]] : record === null || record === void 0 ? void 0 : record[_this.id];
89
88
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -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, 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, ReturnWarehouse, KmExchange } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | CommonSystemOrder | JstSendGood | JstSupply | MsgStatus | PublicExchange | PublicReissueGoods | ReturnWarehouse | ReissueLogistics | 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 | JstItemSelect | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonMultiStatus | JstSendGood | JstSupply | PublicGoods | ReturnWarehouse | ReissueLogistics | 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 | JstItemSelect | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
@@ -237,9 +237,7 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
237
237
  }
238
238
  });
239
239
  instance.statusConditionOptions = tempList;
240
- }).catch(function (e) {
241
- console.log(e);
242
- });
240
+ }).catch(function (e) {});
243
241
  };
244
242
  export var queryLogisticsAddressData = function queryLogisticsAddressData() {
245
243
  return request({
@@ -250,9 +248,7 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
250
248
  var data = res.data;
251
249
  var instance = LogisticsAddressData.getInstance();
252
250
  instance.addressData = data;
253
- }).catch(function (e) {
254
- console.log(e);
255
- });
251
+ }).catch(function (e) {});
256
252
  };
257
253
  export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
258
254
  return request({
@@ -275,50 +271,49 @@ export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
275
271
  var instance = ExpressData.getInstance("wdt");
276
272
  return servers.getWdtSellerLogisticsCompanyRelation().then(function (data) {
277
273
  instance.expressData = data;
278
- }).catch(console.log);
274
+ }).catch(function () {});
279
275
  };
280
276
  export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
281
277
  var instance = ExpressData.getInstance("bsE3");
282
278
  return servers.BSE3.getLogisticsDataAsync().then(function (data) {
283
279
  instance.expressData = data;
284
- }).catch(console.log);
280
+ }).catch(function () {});
285
281
  };
286
282
  export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
287
283
  var instance = ExpressData.getInstance("jst");
288
284
  return servers.JST.getLogisticsDataAsync().then(function (data) {
289
285
  instance.expressData = data;
290
- }).catch(console.log);
286
+ }).catch(function () {});
291
287
  };
292
288
  export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
293
289
  var instance = ExpressData.getInstance("gy");
294
290
  return servers.GY.getLogisticsDataAsync().then(function (data) {
295
291
  instance.expressData = data;
296
- }).catch(console.log);
292
+ }).catch(function () {});
297
293
  };
298
294
  export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
299
295
  var instance = ExpressData.getInstance("jy");
300
296
  return servers.JY.getLogisticsDataAsync().then(function (data) {
301
297
  instance.expressData = data;
302
- }).catch(console.log);
298
+ }).catch(function () {});
303
299
  };
304
300
  export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
305
301
  var instance = ExpressData.getInstance("jky");
306
- console.log("queryJKYLogisticsCompany");
307
302
  return servers.JKY.getLogisticsDataAsync().then(function (data) {
308
303
  instance.expressData = data;
309
- }).catch(console.log);
304
+ }).catch(function () {});
310
305
  };
311
306
  export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
312
307
  var instance = ExpressData.getInstance("wln");
313
308
  return servers.WLN.getLogisticsDataAsync().then(function (data) {
314
309
  instance.expressData = data;
315
- }).catch(console.log);
310
+ }).catch(function () {});
316
311
  };
317
312
  export var queryKMLogisticsCompany = function queryKMLogisticsCompany() {
318
313
  var instance = ExpressData.getInstance("km");
319
314
  return servers.KM.getLogisticsDataAsync().then(function (data) {
320
315
  instance.expressData = data;
321
- }).catch(console.log);
316
+ }).catch(function () {});
322
317
  };
323
318
  // 获取支付宝电子回单
324
319
  export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
@@ -342,7 +337,6 @@ export var queryLabel = function queryLabel() {
342
337
  var finalData = JSON.parse(data);
343
338
  instance.labelData = finalData;
344
339
  } catch (e) {
345
- console.error("转换标签数据数据异常");
346
340
  instance.labelData = [];
347
341
  }
348
342
  });
@@ -52,13 +52,10 @@ var requestApi = function requestApi(_ref) {
52
52
  message.warn(res.message);
53
53
  } else if (infoLevel === 'error') {
54
54
  message.error(res.message);
55
- } else {
56
- console.log(res.message);
57
- }
55
+ } else {}
58
56
  reject(res);
59
57
  }
60
58
  }).catch(function (e) {
61
- console.error('请求错误', e);
62
59
  reject(e);
63
60
  });
64
61
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.10.12",
3
+ "version": "2.10.14",
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.10.10",
25
- "@kmkf-fe-packages/kmkf-utils": "2.10.10",
24
+ "@kmkf-fe-packages/basic-components": "2.10.14",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.10.14",
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": "801065400f87405e41bb4e7a6f57a8eb13eba428",
44
+ "gitHead": "f39208196a64c8def6860f31bf3895b1f96ee765",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }