@kmkf-fe-packages/services-components 2.11.0 → 2.11.1

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 (29) hide show
  1. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  2. package/dist/esm/Hooks/useGoodsSourceFormat.js +5 -9
  3. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +49 -0
  4. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +0 -1
  5. package/dist/esm/commonComponents/GlobalContext/index.js +1 -3
  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 +0 -2
  9. package/dist/esm/components/BS/BsGoods/dist/index.js +110 -0
  10. package/dist/esm/components/BS/BsGoods/index.js +0 -1
  11. package/dist/esm/components/Common/dist/index.js +1017 -0
  12. package/dist/esm/components/Common/index.js +0 -1
  13. package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
  14. package/dist/esm/components/GY/GyReissue/index.js +1 -3
  15. package/dist/esm/components/GY/GyReturn/index.js +1 -3
  16. package/dist/esm/components/PicturePro/PictureName.js +1 -3
  17. package/dist/esm/components/PicturePro/index.js +1 -3
  18. package/dist/esm/components/Public/AsyncSelect/index.js +5 -8
  19. package/dist/esm/components/Public/Exchange/index.d.ts +8 -8
  20. package/dist/esm/components/Public/Exchange/index.js +13 -15
  21. package/dist/esm/components/Public/Goods/index.js +11 -4
  22. package/dist/esm/components/Public/ReissueGoods/index.js +1 -3
  23. package/dist/esm/components/ReceiverAddress/index.js +2 -3
  24. package/dist/esm/components/Select/index.js +0 -1
  25. package/dist/esm/components/WDT/WdtRessuie/index.js +1 -3
  26. package/dist/esm/factory.d.ts +1 -1
  27. package/dist/esm/service/api.js +12 -18
  28. package/dist/esm/service/request.js +1 -4
  29. package/package.json +4 -4
@@ -314,7 +314,6 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
314
314
  var logisticsCompany = item.logisticsCompany,
315
315
  logisticsCompanyName = item.logisticsCompanyName;
316
316
  var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany;
317
- console.log("00001--", [platformType, logisticsCompany, ExpressData.getInstance(platformType), ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany]);
318
317
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
319
318
  content: content(item, index),
320
319
  overlayStyle: {
@@ -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: {
@@ -205,9 +205,7 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
205
205
  required: isRequired,
206
206
  validator: function validator(_rule, value) {
207
207
  var _typeMap$options$type7, _typeMap$options$type8;
208
- return ((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : (_typeMap$options$type8 = _typeMap$options$type7.validator) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.call(_typeMap$options$type7, _rule, value, options.type)) || function () {
209
- return Promise.resolve();
210
- };
208
+ return ((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : (_typeMap$options$type8 = _typeMap$options$type7.validator) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.call(_typeMap$options$type7, _rule, value, options.type)) || Promise.resolve();
211
209
  }
212
210
  }];
213
211
  this.dataType = "object";
@@ -197,9 +197,7 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
197
197
  required: isRequired,
198
198
  validator: function validator(_rule, value) {
199
199
  var _typeMap$options$type6, _typeMap$options$type7;
200
- return ((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : (_typeMap$options$type7 = _typeMap$options$type6.validator) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.call(_typeMap$options$type6, _rule, value, options.type)) || function () {
201
- return Promise.resolve();
202
- };
200
+ return ((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : (_typeMap$options$type7 = _typeMap$options$type6.validator) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.call(_typeMap$options$type6, _rule, value, options.type)) || Promise.resolve();
203
201
  }
204
202
  }];
205
203
  this.dataType = "object";
@@ -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,16 +45,14 @@ var typeMap = {
45
45
  };
46
46
  var getWdtVersion = function getWdtVersion() {
47
47
  try {
48
- var _userInfo$companyUser, _companyUserConfig, _companyUserConfig$pl, _companyUserConfig2, _companyUserConfig2$p, _companyUserConfig2$p2;
48
+ var _userInfo$companyUser, _companyUserConfig, _companyUserConfig$pl, _companyUserConfig$pl2;
49
49
  var userInfo = JSON.parse(localStorage.getItem("reduxData_userInfo") || "{}");
50
50
  var companyUserConfig = (_userInfo$companyUser = userInfo === null || userInfo === void 0 ? void 0 : userInfo.companyUserConfig) !== null && _userInfo$companyUser !== void 0 ? _userInfo$companyUser : {};
51
51
  if (typeof companyUserConfig === "string") {
52
52
  companyUserConfig = JSON.parse(companyUserConfig);
53
53
  }
54
- console.log("wdt---", (_companyUserConfig = companyUserConfig) === null || _companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl = _companyUserConfig.plugins) === null || _companyUserConfig$pl === void 0 ? void 0 : _companyUserConfig$pl.wdt);
55
- return ((_companyUserConfig2 = companyUserConfig) === null || _companyUserConfig2 === void 0 ? void 0 : (_companyUserConfig2$p = _companyUserConfig2.plugins) === null || _companyUserConfig2$p === void 0 ? void 0 : (_companyUserConfig2$p2 = _companyUserConfig2$p.wdt) === null || _companyUserConfig2$p2 === void 0 ? void 0 : _companyUserConfig2$p2.version) || "flagship";
54
+ return ((_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";
56
55
  } catch (error) {
57
- console.error(error);
58
56
  return "flagship";
59
57
  }
60
58
  };
@@ -230,15 +228,14 @@ var AsyncSelect = /*#__PURE__*/function () {
230
228
  componentConfig: this.componentConfig
231
229
  });
232
230
  }
233
- _context.next = 14;
231
+ _context.next = 13;
234
232
  break;
235
233
  case 11:
236
234
  _context.prev = 11;
237
235
  _context.t1 = _context["catch"](1);
238
- console.debug("api error", _context.t1);
239
- case 14:
236
+ case 13:
240
237
  return _context.abrupt("return", options);
241
- case 15:
238
+ case 14:
242
239
  case "end":
243
240
  return _context.stop();
244
241
  }
@@ -1,7 +1,7 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
2
- import React from 'react';
3
- import CommonHeaderGoods from '../../CommonHeaderGood';
4
- import type { FormInstance } from 'antd';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import CommonHeaderGoods from "../../CommonHeaderGood";
4
+ import type { FormInstance } from "antd";
5
5
  declare type ConfigType = {
6
6
  goodsKey: string;
7
7
  validator: any;
@@ -12,14 +12,14 @@ declare class Exchange implements ComponentInterface {
12
12
  sortField: string;
13
13
  type: string;
14
14
  rules: any[];
15
- componentConfig: ComponentInterface['componentConfig'];
16
- effects: ComponentInterface['effects'];
15
+ componentConfig: ComponentInterface["componentConfig"];
16
+ effects: ComponentInterface["effects"];
17
17
  isCombinationComponent: boolean;
18
18
  formField: string;
19
19
  canSort: boolean;
20
20
  children: ComponentInterface[];
21
- dataType: ComponentInterface['dataType'];
22
- sortChildField: NonNullable<ComponentInterface['sortChildField']>;
21
+ dataType: ComponentInterface["dataType"];
22
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
23
23
  returnGoods: CommonHeaderGoods;
24
24
  config: ConfigType;
25
25
  form?: FormInstance;
@@ -8,29 +8,29 @@ 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';
11
+ import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import { BsGoodsTable } from "../../Common";
14
14
  import ItemView from "../../../commonComponents/ItemView";
15
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../../constant";
17
17
  // import { BsType, BsMemo } from "../../Bs/common";
18
- import { CommonExchangeGoods } from '@kmkf-fe-packages/basic-components';
18
+ import { CommonExchangeGoods } from "@kmkf-fe-packages/basic-components";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
20
  import { erpFormValidator } from "@kmkf-fe-packages/basic-components";
21
21
  import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
22
22
  function toNum(value) {
23
- if (typeof value === 'string') {
23
+ if (typeof value === "string") {
24
24
  return value ? +value : void 0;
25
25
  }
26
- if (typeof value === 'number') {
26
+ if (typeof value === "number") {
27
27
  return value;
28
28
  }
29
29
  return void 0;
30
30
  }
31
31
  var CONF_MAP = {
32
32
  JST_EXCHANGE_GOODS: {
33
- goodsKey: 'jstExchangeGoods',
33
+ goodsKey: "jstExchangeGoods",
34
34
  validator: function validator(_rule, value, type) {
35
35
  if (!_rule.required) return Promise.resolve();
36
36
  var validatorFlag = erpFormValidator(_rule, value, type);
@@ -68,7 +68,7 @@ var Exchange = /*#__PURE__*/_createClass(function Exchange(options) {
68
68
  });
69
69
  _defineProperty(this, "renderClient", function (record) {
70
70
  var _this$componentConfig;
71
- var exchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.config.goodsKey)]) || '[]');
71
+ var exchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.config.goodsKey)]) || "[]");
72
72
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
73
73
  id: "".concat(_this.id, "-out"),
74
74
  label: "".concat(_this.name, "-\u6362\u51FA"),
@@ -105,7 +105,7 @@ var Exchange = /*#__PURE__*/_createClass(function Exchange(options) {
105
105
  required: false,
106
106
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
107
107
  display: p === null || p === void 0 ? void 0 : p.display,
108
- 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 : '',
108
+ 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 : "",
109
109
  component: /*#__PURE__*/React.createElement(CommonExchangeGoods, _extends({}, _this.componentConfig, {
110
110
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
111
111
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -123,7 +123,7 @@ var Exchange = /*#__PURE__*/_createClass(function Exchange(options) {
123
123
  type: item.type,
124
124
  id: "".concat(item.id, "_").concat(_this.config.goodsKey),
125
125
  name: "".concat(_this.name, "-\u6362\u51FA"),
126
- filterComponentType: 'Input'
126
+ filterComponentType: "Input"
127
127
  }];
128
128
  });
129
129
  this.name = options.name;
@@ -138,7 +138,7 @@ var Exchange = /*#__PURE__*/_createClass(function Exchange(options) {
138
138
  this.form = (_options$effects = options.effects) === null || _options$effects === void 0 ? void 0 : _options$effects.form;
139
139
  this.returnGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
140
140
  id: "".concat(options.id, "_").concat(this.config.goodsKey),
141
- name: '商品信息'
141
+ name: "商品信息"
142
142
  }));
143
143
  this.children = [this.returnGoods];
144
144
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
@@ -147,7 +147,7 @@ var Exchange = /*#__PURE__*/_createClass(function Exchange(options) {
147
147
  validator: function validator(_, value) {
148
148
  var _this$componentConfig7, _value$_this$config$g;
149
149
  if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required && !(value !== null && value !== void 0 && (_value$_this$config$g = value[_this.config.goodsKey]) !== null && _value$_this$config$g !== void 0 && _value$_this$config$g.length)) {
150
- return Promise.reject(new Error('请选择换货商品'));
150
+ return Promise.reject(new Error("请选择换货商品"));
151
151
  }
152
152
  return Promise.resolve();
153
153
  }
@@ -155,12 +155,10 @@ var Exchange = /*#__PURE__*/_createClass(function Exchange(options) {
155
155
  required: (_this$componentConfig8 = this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.required,
156
156
  validator: function validator(_rule, value) {
157
157
  var _CONF_MAP$options$typ, _CONF_MAP$options$typ2;
158
- return ((_CONF_MAP$options$typ = CONF_MAP[options.type]) === null || _CONF_MAP$options$typ === void 0 ? void 0 : (_CONF_MAP$options$typ2 = _CONF_MAP$options$typ.validator) === null || _CONF_MAP$options$typ2 === void 0 ? void 0 : _CONF_MAP$options$typ2.call(_CONF_MAP$options$typ, _rule, value, options.type, _this.componentConfig)) || function () {
159
- return Promise.resolve();
160
- };
158
+ return ((_CONF_MAP$options$typ = CONF_MAP[options.type]) === null || _CONF_MAP$options$typ === void 0 ? void 0 : (_CONF_MAP$options$typ2 = _CONF_MAP$options$typ.validator) === null || _CONF_MAP$options$typ2 === void 0 ? void 0 : _CONF_MAP$options$typ2.call(_CONF_MAP$options$typ, _rule, value, options.type, _this.componentConfig)) || Promise.resolve();
161
159
  }
162
160
  }];
163
- this.dataType = 'object';
161
+ this.dataType = "object";
164
162
  this.sortChildField = this.getSortChildFields();
165
163
  });
166
164
  export default Exchange;
@@ -163,17 +163,24 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
163
163
  }));
164
164
  this.children = [this.headers];
165
165
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
166
- this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
167
- required: true,
166
+ var isRequired = !!(this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required);
167
+ this.rules = [{
168
+ required: isRequired,
168
169
  validator: function validator(_, value) {
169
170
  var _value$key;
170
- if (!value || !(value !== null && value !== void 0 && (_value$key = value[key]) !== null && _value$key !== void 0 && _value$key.length)) {
171
+ if (isRequired && (!value || !(value !== null && value !== void 0 && (_value$key = value[key]) !== null && _value$key !== void 0 && _value$key.length))) {
171
172
  var _CONFIG_MAP$_this$typ6;
172
173
  return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat((_CONFIG_MAP$_this$typ6 = CONFIG_MAP[_this.type]) === null || _CONFIG_MAP$_this$typ6 === void 0 ? void 0 : _CONFIG_MAP$_this$typ6.name, "\u5546\u54C1")));
173
174
  }
174
175
  return Promise.resolve();
175
176
  }
176
- }] : [];
177
+ }, {
178
+ required: isRequired,
179
+ validator: function validator(_rule, value) {
180
+ var _CONFIG_MAP$_this$typ7, _CONFIG_MAP$_this$typ8;
181
+ return ((_CONFIG_MAP$_this$typ7 = CONFIG_MAP[_this.type]) === null || _CONFIG_MAP$_this$typ7 === void 0 ? void 0 : (_CONFIG_MAP$_this$typ8 = _CONFIG_MAP$_this$typ7.validator) === null || _CONFIG_MAP$_this$typ8 === void 0 ? void 0 : _CONFIG_MAP$_this$typ8.call(_CONFIG_MAP$_this$typ7, _rule, value, _this.type, _this.componentConfig)) || Promise.resolve();
182
+ }
183
+ }];
177
184
  this.dataType = "object";
178
185
  this.sortChildField = this.getSortChildFields();
179
186
  this.exampleValue = ((_CONFIG_MAP$this$type2 = CONFIG_MAP[this.type]) === null || _CONFIG_MAP$this$type2 === void 0 ? void 0 : _CONFIG_MAP$this$type2.exampleValue) || "";
@@ -330,9 +330,7 @@ var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
330
330
  required: isRequired,
331
331
  validator: function validator(_rule, value) {
332
332
  var _typeMap$options$type14, _typeMap$options$type15;
333
- return ((_typeMap$options$type14 = typeMap[options.type]) === null || _typeMap$options$type14 === void 0 ? void 0 : (_typeMap$options$type15 = _typeMap$options$type14.validator) === null || _typeMap$options$type15 === void 0 ? void 0 : _typeMap$options$type15.call(_typeMap$options$type14, _rule, value, options.type, _this.componentConfig)) || function () {
334
- return Promise.resolve();
335
- };
333
+ return ((_typeMap$options$type14 = typeMap[options.type]) === null || _typeMap$options$type14 === void 0 ? void 0 : (_typeMap$options$type15 = _typeMap$options$type14.validator) === null || _typeMap$options$type15 === void 0 ? void 0 : _typeMap$options$type15.call(_typeMap$options$type14, _rule, value, options.type, _this.componentConfig)) || Promise.resolve();
336
334
  }
337
335
  }];
338
336
  this.dataType = "object";
@@ -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, {
@@ -207,9 +207,7 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
207
207
  required: isRequired,
208
208
  validator: function validator(_rule, value) {
209
209
  var _typeMap$options$type9, _typeMap$options$type10;
210
- return ((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : (_typeMap$options$type10 = _typeMap$options$type9.validator) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.call(_typeMap$options$type9, _rule, value, options.type)) || function () {
211
- return Promise.resolve();
212
- };
210
+ return ((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : (_typeMap$options$type10 = _typeMap$options$type9.validator) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.call(_typeMap$options$type9, _rule, value, options.type)) || Promise.resolve();
213
211
  }
214
212
  }];
215
213
  this.dataType = "object";
@@ -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, DxdShopSelect, 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) => BsLogistics | BsSystemOrder | CommonMultiStatus | JstSendGood | MsgStatus | AsyncSelect | PublicGoods | 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 | 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 | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | DxdShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | JstSendGood | AsyncSelect | PublicGoods | 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 | PublicReissueGoods | PublicExchange | 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 | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | DxdShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | 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,62 +271,61 @@ 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
  export var queryDXDLogisticsCompany = function queryDXDLogisticsCompany() {
324
319
  var instance = ExpressData.getInstance("dxd");
325
320
  return servers.DXD.getLogisticsDataAsync().then(function (data) {
326
321
  instance.expressData = data;
327
- }).catch(console.log);
322
+ }).catch(function () {});
328
323
  };
329
324
  export var queryTTXLogisticsCompany = function queryTTXLogisticsCompany() {
330
325
  var instance = ExpressData.getInstance("ttx");
331
326
  return servers.TTX.getLogisticsDataAsync().then(function (data) {
332
327
  instance.expressData = data;
333
- }).catch(console.log);
328
+ }).catch(function () {});
334
329
  };
335
330
  // 获取支付宝电子回单
336
331
  export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
@@ -354,7 +349,6 @@ export var queryLabel = function queryLabel() {
354
349
  var finalData = JSON.parse(data);
355
350
  instance.labelData = finalData;
356
351
  } catch (e) {
357
- console.error("转换标签数据数据异常");
358
352
  instance.labelData = [];
359
353
  }
360
354
  });
@@ -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.11.0",
3
+ "version": "2.11.1",
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.30",
25
- "@kmkf-fe-packages/kmkf-utils": "2.10.30",
24
+ "@kmkf-fe-packages/basic-components": "2.11.1",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.11.1",
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": "96d314f6f26249f9c4cfa4321c63252822e4d3ca",
44
+ "gitHead": "3f2986bf8a306c1778d357bbbea27f6bb1e7e39e",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }