@kmkf-fe-packages/basic-components 1.20.2-beta.6 → 1.21.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.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WdtSendData, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty } from 'lodash';
8
8
  import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
9
9
  import zhCN from 'antd/lib/locale/zh_CN';
@@ -10947,7 +10947,7 @@ var jstGoods = function jstGoods(props) {
10947
10947
  _useState2 = _slicedToArray(_useState, 2),
10948
10948
  changeIndex = _useState2[0],
10949
10949
  setChangeIndex = _useState2[1]; //选中的包裹
10950
- var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
10950
+ var wdtSendOptions = WdtSendData.getInstance().wdtSendData || [];
10951
10951
  useEffect(function () {
10952
10952
  //没有值塞个默认值
10953
10953
  if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
@@ -10978,7 +10978,7 @@ var jstGoods = function jstGoods(props) {
10978
10978
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
10979
10979
  changeOrderInfo[type] = val;
10980
10980
  changeOrderInfo['sendId'] = option.value;
10981
- if ((platformType === 'wdt' || platformType === 'bsE3') && type === 'sendName') {
10981
+ if (platformType === 'wdt' && type === 'sendName') {
10982
10982
  changeOrderInfo['sendSnapshotName'] = option.label;
10983
10983
  }
10984
10984
  var newList = _toConsumableArray(value);
@@ -11061,7 +11061,7 @@ var jstGoods = function jstGoods(props) {
11061
11061
  return changeInputHandle(e.target.value, 'sendId');
11062
11062
  },
11063
11063
  value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
11064
- }), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' || platformType === 'bsE3' ? /*#__PURE__*/React.createElement(Select, {
11064
+ }), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React.createElement(Select, {
11065
11065
  style: {
11066
11066
  minWidth: '100px',
11067
11067
  maxWidth: '180px'
@@ -11069,7 +11069,7 @@ var jstGoods = function jstGoods(props) {
11069
11069
  disabled: disabled,
11070
11070
  placeholder: "\u53D1\u8D27\u4ED3\u540D\u79F0",
11071
11071
  showSearch: true,
11072
- options: sendOptions,
11072
+ options: wdtSendOptions,
11073
11073
  filterOption: filterOption,
11074
11074
  value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
11075
11075
  onChange: function onChange(value, option) {
@@ -14214,18 +14214,6 @@ var columnsMap = {
14214
14214
  title: '标签',
14215
14215
  dataIndex: 'billTag',
14216
14216
  width: 150
14217
- }, {
14218
- title: '主播名称',
14219
- dataIndex: 'authorName',
14220
- width: 150
14221
- }, {
14222
- title: '主播ID',
14223
- dataIndex: 'authorId',
14224
- width: 150
14225
- }, {
14226
- title: '直播活动',
14227
- dataIndex: 'liveActivites',
14228
- width: 150
14229
14217
  }],
14230
14218
  WLN_SYSTEM_ORDER: [{
14231
14219
  title: '订单类型',
@@ -14375,10 +14363,7 @@ var index$1 = (function (props) {
14375
14363
  return {
14376
14364
  billNo: item.billNo,
14377
14365
  billType: item.billType,
14378
- billTag: item.billTag,
14379
- authorName: item.authorName,
14380
- authorId: item.authorId,
14381
- liveActivites: item.liveActivites
14366
+ billTag: item.billTag
14382
14367
  };
14383
14368
  })
14384
14369
  }));
@@ -15983,7 +15968,6 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
15983
15968
 
15984
15969
  var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
15985
15970
  var msgTypeCh = {
15986
- pdd: '拼多多',
15987
15971
  ding: '钉钉',
15988
15972
  wechat: '微信',
15989
15973
  qq: 'QQ',
@@ -16032,7 +16016,7 @@ var MsgStatus = function MsgStatus(props) {
16032
16016
  onClick: function onClick() {
16033
16017
  return setChangeIndex(index);
16034
16018
  }
16035
- }, msgTypeCh[key] || key, item.ruleName);
16019
+ }, msgTypeCh[key], item.ruleName);
16036
16020
  }))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
16037
16021
  showSearch: true,
16038
16022
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
package/dist/index.js CHANGED
@@ -10959,7 +10959,7 @@ var jstGoods = function jstGoods(props) {
10959
10959
  _useState2 = _slicedToArray(_useState, 2),
10960
10960
  changeIndex = _useState2[0],
10961
10961
  setChangeIndex = _useState2[1]; //选中的包裹
10962
- var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
10962
+ var wdtSendOptions = kmkfUtils.WdtSendData.getInstance().wdtSendData || [];
10963
10963
  React.useEffect(function () {
10964
10964
  //没有值塞个默认值
10965
10965
  if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
@@ -10990,7 +10990,7 @@ var jstGoods = function jstGoods(props) {
10990
10990
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
10991
10991
  changeOrderInfo[type] = val;
10992
10992
  changeOrderInfo['sendId'] = option.value;
10993
- if ((platformType === 'wdt' || platformType === 'bsE3') && type === 'sendName') {
10993
+ if (platformType === 'wdt' && type === 'sendName') {
10994
10994
  changeOrderInfo['sendSnapshotName'] = option.label;
10995
10995
  }
10996
10996
  var newList = _toConsumableArray(value);
@@ -11073,7 +11073,7 @@ var jstGoods = function jstGoods(props) {
11073
11073
  return changeInputHandle(e.target.value, 'sendId');
11074
11074
  },
11075
11075
  value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
11076
- }), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' || platformType === 'bsE3' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
11076
+ }), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
11077
11077
  style: {
11078
11078
  minWidth: '100px',
11079
11079
  maxWidth: '180px'
@@ -11081,7 +11081,7 @@ var jstGoods = function jstGoods(props) {
11081
11081
  disabled: disabled,
11082
11082
  placeholder: "\u53D1\u8D27\u4ED3\u540D\u79F0",
11083
11083
  showSearch: true,
11084
- options: sendOptions,
11084
+ options: wdtSendOptions,
11085
11085
  filterOption: filterOption,
11086
11086
  value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
11087
11087
  onChange: function onChange(value, option) {
@@ -14226,18 +14226,6 @@ var columnsMap = {
14226
14226
  title: '标签',
14227
14227
  dataIndex: 'billTag',
14228
14228
  width: 150
14229
- }, {
14230
- title: '主播名称',
14231
- dataIndex: 'authorName',
14232
- width: 150
14233
- }, {
14234
- title: '主播ID',
14235
- dataIndex: 'authorId',
14236
- width: 150
14237
- }, {
14238
- title: '直播活动',
14239
- dataIndex: 'liveActivites',
14240
- width: 150
14241
14229
  }],
14242
14230
  WLN_SYSTEM_ORDER: [{
14243
14231
  title: '订单类型',
@@ -14387,10 +14375,7 @@ var index$1 = (function (props) {
14387
14375
  return {
14388
14376
  billNo: item.billNo,
14389
14377
  billType: item.billType,
14390
- billTag: item.billTag,
14391
- authorName: item.authorName,
14392
- authorId: item.authorId,
14393
- liveActivites: item.liveActivites
14378
+ billTag: item.billTag
14394
14379
  };
14395
14380
  })
14396
14381
  }));
@@ -15995,7 +15980,6 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
15995
15980
 
15996
15981
  var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
15997
15982
  var msgTypeCh = {
15998
- pdd: '拼多多',
15999
15983
  ding: '钉钉',
16000
15984
  wechat: '微信',
16001
15985
  qq: 'QQ',
@@ -16044,7 +16028,7 @@ var MsgStatus = function MsgStatus(props) {
16044
16028
  onClick: function onClick() {
16045
16029
  return setChangeIndex(index);
16046
16030
  }
16047
- }, msgTypeCh[key] || key, item.ruleName);
16031
+ }, msgTypeCh[key], item.ruleName);
16048
16032
  }))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
16049
16033
  showSearch: true,
16050
16034
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "1.20.2-beta.6",
3
+ "version": "1.21.1",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "1.20.2-beta.6",
23
+ "@kmkf-fe-packages/kmkf-utils": "1.21.1",
24
24
  "ahooks": "^3.7.4",
25
25
  "bignumber.js": "^9.1.2",
26
26
  "kmkf-monitor": "^0.8.9",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "952037704d324cf44405bd6f3a04ea9fef1ad9ea"
68
+ "gitHead": "27d10d4379e56531f7aba4c2b44d95085109dd02"
69
69
  }