@kmkf-fe-packages/services-components 2.9.1-beta.2 → 2.9.1-beta.23

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 (27) hide show
  1. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  2. package/dist/esm/Hooks/useGoodsSourceFormat.js +9 -5
  3. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  4. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +1 -0
  5. package/dist/esm/commonComponents/GlobalContext/index.js +3 -1
  6. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  7. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  8. package/dist/esm/commonComponents/OperationLog/index.js +2 -0
  9. package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
  10. package/dist/esm/components/BS/BsGoods/index.js +1 -0
  11. package/dist/esm/components/Common/dist/index.js +1019 -0
  12. package/dist/esm/components/Common/index.js +7 -7
  13. package/dist/esm/components/CommonMultiStatus/index.js +54 -4
  14. package/dist/esm/components/CommonSystemOrder/index.js +2 -2
  15. package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +2 -0
  16. package/dist/esm/components/PicturePro/PictureName.js +3 -1
  17. package/dist/esm/components/PicturePro/index.js +3 -1
  18. package/dist/esm/components/Public/AsyncSelect/index.js +7 -4
  19. package/dist/esm/components/ReceiverAddress/index.js +3 -2
  20. package/dist/esm/components/Remark/index.js +3 -1
  21. package/dist/esm/components/Select/index.js +1 -0
  22. package/dist/esm/components/StatusSelect/constants.js +8 -0
  23. package/dist/esm/factory.d.ts +1 -1
  24. package/dist/esm/factory.js +2 -0
  25. package/dist/esm/service/api.js +18 -10
  26. package/dist/esm/service/request.js +4 -1
  27. package/package.json +4 -4
@@ -337,15 +337,15 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
337
337
  idKey = _ref8.idKey;
338
338
  var getContentData = function getContentData(item, index) {
339
339
  if (item.platformId) return {
340
- text: "平台售后单号",
340
+ text: item.hiddenPrefix ? undefined : "平台售后单号",
341
341
  id: item.platformId
342
342
  };
343
343
  if (item.returnLogisticsCode) return {
344
- text: "物流单号",
344
+ text: item.hiddenPrefix ? undefined : "物流单号",
345
345
  id: item.returnLogisticsCode
346
346
  };
347
347
  return {
348
- text: "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1),
348
+ text: item.hiddenPrefix ? undefined : "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1),
349
349
  id: item.systemOrderId || item.systemOrderNo || (item === null || item === void 0 ? void 0 : item[idKey])
350
350
  };
351
351
  };
@@ -355,7 +355,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
355
355
  style: {
356
356
  textAlign: "center"
357
357
  }
358
- }, contentData.text, "\uFF1A", contentData.id));
358
+ }, contentData.text ? "".concat(contentData.text, "\uFF1A") : "", contentData.id));
359
359
  };
360
360
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
361
361
  var _options$find;
@@ -377,7 +377,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
377
377
  var currentOption = options.find(function (option) {
378
378
  return item[valueKey] === option.value;
379
379
  });
380
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, isShowPopover ? /*#__PURE__*/React.createElement(Popover, {
380
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, isShowPopover && getContentData(item, index).text ? /*#__PURE__*/React.createElement(Popover, {
381
381
  content: orderContent(item, index),
382
382
  overlayStyle: {
383
383
  zIndex: 1080
@@ -769,7 +769,7 @@ export var KmVideoRender = function KmVideoRender(_ref13) {
769
769
  src: fileUrl
770
770
  })));
771
771
  };
772
- var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
772
+ var RADIO_TABLE_KEYS = ["PLATFORM_AFTER_SALES_ORDER"];
773
773
  export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
774
774
  var value = _ref14.value,
775
775
  type = _ref14.type,
@@ -803,7 +803,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
803
803
  PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId"
804
804
  };
805
805
  var rowSelection = {
806
- type: isRadio ? 'radio' : 'checkbox',
806
+ type: isRadio ? "radio" : "checkbox",
807
807
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
808
808
  if (next.select) {
809
809
  prv.push(next[rowKeyMap[type]] || "billNo");
@@ -191,6 +191,56 @@ var typeMap = {
191
191
  idKey: "sourceTradeNo",
192
192
  failValue: "失败",
193
193
  dataType: "array_object"
194
+ },
195
+ KM_WAREHOUSING_STATUS: {
196
+ options: [{
197
+ value: "0",
198
+ label: "未入库",
199
+ color: "#ff4d4f"
200
+ }, {
201
+ value: "1",
202
+ label: "部分入库",
203
+ color: "#e7780f"
204
+ }, {
205
+ value: "2",
206
+ label: "全部入库",
207
+ color: "#52c41a"
208
+ }],
209
+ key: "kmInStockStatusItemList",
210
+ code: "kmInStockStatusList",
211
+ name: "商品入库状态",
212
+ type: 2,
213
+ valueKey: "status",
214
+ idKey: "systemOrderId",
215
+ failValue: "失败",
216
+ dataType: "array_object"
217
+ },
218
+ JST_WAREHOUSING_STATUS: {
219
+ options: [{
220
+ value: "1",
221
+ label: "未入库",
222
+ color: "#ff4d4f"
223
+ }, {
224
+ value: "2",
225
+ label: "部分入库",
226
+ color: "#e7780f"
227
+ }, {
228
+ value: "3",
229
+ label: "已入库",
230
+ color: "#52c41a"
231
+ }, {
232
+ label: "已入库-多收",
233
+ value: "4",
234
+ color: "#e7780f"
235
+ }],
236
+ key: "jstInStockStatusItemList",
237
+ code: "jstInStockStatusList",
238
+ name: "聚水潭商品入库状态",
239
+ type: 2,
240
+ valueKey: "status",
241
+ idKey: "sourceTradeNo",
242
+ failValue: "失败",
243
+ dataType: "array_object"
194
244
  }
195
245
  };
196
246
  var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
@@ -295,11 +345,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
295
345
  _defineProperty(this, "filterConfig", function (item) {
296
346
  var _typeMap$_this$type21, _item$templateConfig;
297
347
  return {
298
- searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
348
+ searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
299
349
  type: item.type,
300
350
  id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
301
351
  name: "".concat(_this.name),
302
- filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
352
+ filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
303
353
  props: {
304
354
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
305
355
  fieldNames: {
@@ -314,7 +364,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
314
364
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
315
365
  };
316
366
  },
317
- formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
367
+ formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
318
368
  if (value.type === "in") {
319
369
  return value.keywords;
320
370
  } else {
@@ -350,6 +400,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
350
400
  }
351
401
  }] : [];
352
402
  this.align = "left";
353
- this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "WLN_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
403
+ this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "WLN_WAREHOUSING_STATUS" || this.type === "JST_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
354
404
  });
355
405
  export default CommonMultiStatus;
@@ -88,7 +88,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
88
88
  value: /*#__PURE__*/React.createElement(CommonOrderContent, {
89
89
  list: record === null || record === void 0 ? void 0 : record[_this.id],
90
90
  valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
91
- isShowPopover: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.belongType) !== "wdt"
91
+ isShowPopover: !["wdt", "jst"].includes((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.belongType)
92
92
  })
93
93
  }) : null;
94
94
  });
@@ -104,7 +104,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
104
104
  list: list,
105
105
  type: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.type,
106
106
  valueKey: (_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.valueKey,
107
- isShowPopover: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.belongType) !== "wdt"
107
+ isShowPopover: !["wdt", "jst"].includes((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.belongType)
108
108
  }));
109
109
  });
110
110
  _defineProperty(this, "renderLog", function (r) {
@@ -1,6 +1,7 @@
1
1
  // 查询订单详情
2
2
  export var queryOrderDetail = function queryOrderDetail(tid) {
3
3
  var _window, _window$parent;
4
+ console.log('请求ERP订单详情', tid);
4
5
  (_window = window) === null || _window === void 0 ? void 0 : (_window$parent = _window.parent) === null || _window$parent === void 0 ? void 0 : _window$parent.postMessage({
5
6
  method: 'queryOrder',
6
7
  data: {
@@ -12,6 +13,7 @@ export var queryOrderDetail = function queryOrderDetail(tid) {
12
13
  // 查询抖店openId
13
14
  export var queryDouDianOpenId = function queryDouDianOpenId(originTid) {
14
15
  var _window2, _window2$parent;
16
+ console.log('查询抖音店铺买家id', originTid);
15
17
  (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$parent = _window2.parent) === null || _window2$parent === void 0 ? void 0 : _window2$parent.postMessage({
16
18
  method: 'queryDouDianOpenId',
17
19
  data: {
@@ -74,7 +74,9 @@ var PictureName = /*#__PURE__*/_createClass(function PictureName(options) {
74
74
  document.body.removeChild(a);
75
75
  window.URL.revokeObjectURL(url);
76
76
  });
77
- } catch (error) {}
77
+ } catch (error) {
78
+ console.error(error);
79
+ }
78
80
  };
79
81
  return /*#__PURE__*/React.createElement(Space, {
80
82
  className: "pictruePc"
@@ -92,7 +92,9 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
92
92
  document.body.removeChild(a);
93
93
  window.URL.revokeObjectURL(url);
94
94
  });
95
- } catch (error) {}
95
+ } catch (error) {
96
+ console.error(error);
97
+ }
96
98
  } else {
97
99
  copy("".concat(hostUrl, "/").concat(item.url));
98
100
  message.success('图片链接复制成功');
@@ -45,7 +45,9 @@ 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) {}
48
+ } catch (error) {
49
+ console.error(error);
50
+ }
49
51
  if (version === "flagship") return 1;
50
52
  },
51
53
  handleOptions: function handleOptions(options) {
@@ -227,14 +229,15 @@ var AsyncSelect = /*#__PURE__*/function () {
227
229
  componentConfig: this.componentConfig
228
230
  });
229
231
  }
230
- _context.next = 13;
232
+ _context.next = 14;
231
233
  break;
232
234
  case 11:
233
235
  _context.prev = 11;
234
236
  _context.t1 = _context["catch"](1);
235
- case 13:
236
- return _context.abrupt("return", options);
237
+ console.debug("api error", _context.t1);
237
238
  case 14:
239
+ return _context.abrupt("return", options);
240
+ case 15:
238
241
  case "end":
239
242
  return _context.stop();
240
243
  }
@@ -94,12 +94,13 @@ 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 = 18;
97
+ _context.next = 19;
98
98
  break;
99
99
  case 16:
100
100
  _context.prev = 16;
101
101
  _context.t0 = _context["catch"](1);
102
- case 18:
102
+ console.log(_context.t0);
103
+ case 19:
103
104
  case "end":
104
105
  return _context.stop();
105
106
  }
@@ -119,8 +119,10 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
119
119
  };
120
120
  },
121
121
  formatFilterValue: function formatFilterValue(value) {
122
- if (['in', 'anylike', 'nincludeLike'].includes(value.type)) {
122
+ if (['in', 'anylike'].includes(value.type)) {
123
123
  return batchInput(value.keywords);
124
+ } else if ('nincludeLike' === value.type) {
125
+ return value.keywords;
124
126
  } else {
125
127
  return value;
126
128
  }
@@ -83,6 +83,7 @@ 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());
86
87
  // 特殊自定义组件为平台状态时匹配出label
87
88
  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];
88
89
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -26,6 +26,14 @@ export var getSelectTypeAttribute = function getSelectTypeAttribute(_ref) {
26
26
  color: "#1890ff"
27
27
  });
28
28
  }
29
+ if (key === "erpAfterSalesOrderReviewStatusValue") {
30
+ var _dataMap$options2;
31
+ dataMap === null || dataMap === void 0 ? void 0 : (_dataMap$options2 = dataMap.options) === null || _dataMap$options2 === void 0 ? void 0 : _dataMap$options2.push({
32
+ value: "\u65E0\u9700\u5BA1\u6838",
33
+ label: "\u65E0\u9700\u5BA1\u6838",
34
+ color: "#1890ff"
35
+ });
36
+ }
29
37
  dataMap["failValue"] = dataMap.options[failValueIndex].value;
30
38
  return dataMap;
31
39
  };
@@ -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) => PublicExchange | PublicReissueGoods | ERemark | 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 | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | 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 | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | CommonSystemOrder | PublicExchange | PublicReissueGoods | ERemark | 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 | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | 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 | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
@@ -254,6 +254,8 @@ export var factory = function factory(type, options) {
254
254
  case "WDT_WAREHOUSING_STATUS":
255
255
  case "WLN_WAREHOUSING_STATUS":
256
256
  case "JKY_WAREHOUSING_STATUS":
257
+ case "KM_WAREHOUSING_STATUS":
258
+ case "JST_WAREHOUSING_STATUS":
257
259
  return new CommonMultiStatus(options);
258
260
  case "MSG_STATUS":
259
261
  return new MsgStatus(options);
@@ -211,6 +211,7 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
211
211
  value: _toConsumableArray(typeObj[key]).join(",")
212
212
  };
213
213
  });
214
+ console.log("typeObj---", typeObj, instance.typeOptions, companyTypeMap);
214
215
  instance.typeConditionOptions = Object.keys(instance.typeNameMap).map(function (key) {
215
216
  var type = key.split("|")[0];
216
217
  return {
@@ -238,7 +239,10 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
238
239
  }
239
240
  });
240
241
  instance.statusConditionOptions = tempList;
241
- }).catch(function (e) {});
242
+ console.log("instance-----2", instance);
243
+ }).catch(function (e) {
244
+ console.log(e);
245
+ });
242
246
  };
243
247
  export var queryLogisticsAddressData = function queryLogisticsAddressData() {
244
248
  return request({
@@ -249,7 +253,9 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
249
253
  var data = res.data;
250
254
  var instance = LogisticsAddressData.getInstance();
251
255
  instance.addressData = data;
252
- }).catch(function (e) {});
256
+ }).catch(function (e) {
257
+ console.log(e);
258
+ });
253
259
  };
254
260
  export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
255
261
  return request({
@@ -272,49 +278,50 @@ export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
272
278
  var instance = ExpressData.getInstance("wdt");
273
279
  return servers.getWdtSellerLogisticsCompanyRelation().then(function (data) {
274
280
  instance.expressData = data;
275
- }).catch(function () {});
281
+ }).catch(console.log);
276
282
  };
277
283
  export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
278
284
  var instance = ExpressData.getInstance("bsE3");
279
285
  return servers.BSE3.getLogisticsDataAsync().then(function (data) {
280
286
  instance.expressData = data;
281
- }).catch(function () {});
287
+ }).catch(console.log);
282
288
  };
283
289
  export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
284
290
  var instance = ExpressData.getInstance("jst");
285
291
  return servers.JST.getLogisticsDataAsync().then(function (data) {
286
292
  instance.expressData = data;
287
- }).catch(function () {});
293
+ }).catch(console.log);
288
294
  };
289
295
  export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
290
296
  var instance = ExpressData.getInstance("gy");
291
297
  return servers.GY.getLogisticsDataAsync().then(function (data) {
292
298
  instance.expressData = data;
293
- }).catch(function () {});
299
+ }).catch(console.log);
294
300
  };
295
301
  export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
296
302
  var instance = ExpressData.getInstance("jy");
297
303
  return servers.JY.getLogisticsDataAsync().then(function (data) {
298
304
  instance.expressData = data;
299
- }).catch(function () {});
305
+ }).catch(console.log);
300
306
  };
301
307
  export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
302
308
  var instance = ExpressData.getInstance("jky");
309
+ console.log("queryJKYLogisticsCompany");
303
310
  return servers.JKY.getLogisticsDataAsync().then(function (data) {
304
311
  instance.expressData = data;
305
- }).catch(function () {});
312
+ }).catch(console.log);
306
313
  };
307
314
  export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
308
315
  var instance = ExpressData.getInstance("wln");
309
316
  return servers.WLN.getLogisticsDataAsync().then(function (data) {
310
317
  instance.expressData = data;
311
- }).catch(function () {});
318
+ }).catch(console.log);
312
319
  };
313
320
  export var queryKMLogisticsCompany = function queryKMLogisticsCompany() {
314
321
  var instance = ExpressData.getInstance("km");
315
322
  return servers.KM.getLogisticsDataAsync().then(function (data) {
316
323
  instance.expressData = data;
317
- }).catch(function () {});
324
+ }).catch(console.log);
318
325
  };
319
326
  // 获取支付宝电子回单
320
327
  export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
@@ -338,6 +345,7 @@ export var queryLabel = function queryLabel() {
338
345
  var finalData = JSON.parse(data);
339
346
  instance.labelData = finalData;
340
347
  } catch (e) {
348
+ console.error("转换标签数据数据异常");
341
349
  instance.labelData = [];
342
350
  }
343
351
  });
@@ -52,10 +52,13 @@ 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 {}
55
+ } else {
56
+ console.log(res.message);
57
+ }
56
58
  reject(res);
57
59
  }
58
60
  }).catch(function (e) {
61
+ console.error('请求错误', e);
59
62
  reject(e);
60
63
  });
61
64
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.9.1-beta.2",
3
+ "version": "2.9.1-beta.23",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.9.1-beta.0",
25
- "@kmkf-fe-packages/kmkf-utils": "2.9.1-beta.0",
24
+ "@kmkf-fe-packages/basic-components": "2.9.1-beta.20",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.9.1-beta.16",
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": "184b76125c9b46144c410b5589985bfa2dca2bea",
44
+ "gitHead": "fbd4e6a7d1d0412250b5ad09c0be30fb2bb8b7ec",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }