@kmkf-fe-packages/basic-components 1.17.8-beta.34 → 1.17.8-beta.36

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, WdtSendData, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_BOOLEAN_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WdtSendData, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, BS_E3_BOOLEAN_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 } from 'lodash';
8
8
  import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
9
9
  import zhCN from 'antd/lib/locale/zh_CN';
@@ -12153,7 +12153,7 @@ var columns$2 = [{
12153
12153
  ellipsis: true,
12154
12154
  width: 70
12155
12155
  }, {
12156
- dataIndex: 'goodsSname',
12156
+ dataIndex: 'goodsShortName',
12157
12157
  title: "\u5546\u54C1\u7B80\u79F0",
12158
12158
  ellipsis: true,
12159
12159
  width: 70
@@ -12165,8 +12165,8 @@ var columns$2 = [{
12165
12165
  render: function render(picUrl) {
12166
12166
  return /*#__PURE__*/React.createElement("img", {
12167
12167
  style: {
12168
- width: '40px',
12169
- height: '40px',
12168
+ width: '60px',
12169
+ height: '60px',
12170
12170
  objectFit: 'contain'
12171
12171
  },
12172
12172
  src: picUrl
@@ -12248,7 +12248,7 @@ var columns$2 = [{
12248
12248
  ellipsis: true,
12249
12249
  width: 70
12250
12250
  }, {
12251
- dataIndex: 'taocanSingleSl',
12251
+ dataIndex: 'taoCanSingleSl',
12252
12252
  title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
12253
12253
  ellipsis: true,
12254
12254
  width: 70
@@ -12497,6 +12497,7 @@ var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
12497
12497
  // styleId: string;
12498
12498
  // }
12499
12499
  var GoodItem$1 = function GoodItem(props) {
12500
+ var _ref;
12500
12501
  var _props$value = props.value,
12501
12502
  value = _props$value === void 0 ? [] : _props$value,
12502
12503
  type = props.type,
@@ -12954,7 +12955,7 @@ var GoodItem$1 = function GoodItem(props) {
12954
12955
  ellipsis: true,
12955
12956
  width: 150
12956
12957
  }, {
12957
- dataIndex: 'goodsSname',
12958
+ dataIndex: 'goodsShortName',
12958
12959
  title: "\u5546\u54C1\u7B80\u79F0",
12959
12960
  align: 'center',
12960
12961
  ellipsis: true,
@@ -12964,7 +12965,13 @@ var GoodItem$1 = function GoodItem(props) {
12964
12965
  title: "\u5546\u54C1\u56FE\u7247",
12965
12966
  align: 'center',
12966
12967
  ellipsis: true,
12967
- width: 100
12968
+ width: 100,
12969
+ render: function render(val) {
12970
+ return /*#__PURE__*/React.createElement(Image, {
12971
+ width: 60,
12972
+ src: val
12973
+ });
12974
+ }
12968
12975
  }, {
12969
12976
  dataIndex: 'goodsSn',
12970
12977
  title: "\u8D27\u53F7",
@@ -13056,7 +13063,7 @@ var GoodItem$1 = function GoodItem(props) {
13056
13063
  ellipsis: true,
13057
13064
  width: 100
13058
13065
  }, {
13059
- dataIndex: 'taocanSingleSl',
13066
+ dataIndex: 'taoCanSingleSl',
13060
13067
  title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
13061
13068
  align: 'center',
13062
13069
  ellipsis: true,
@@ -13293,7 +13300,7 @@ var GoodItem$1 = function GoodItem(props) {
13293
13300
  }, showModeBtn && /*#__PURE__*/React.createElement(Checkbox, {
13294
13301
  checked: isStrict,
13295
13302
  onChange: handleCheckboxChange
13296
- }, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React.createElement(Button, {
13303
+ }, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !((_ref = ['BS_E3_GOODS']) === null || _ref === void 0 ? void 0 : _ref.includes(type)) && /*#__PURE__*/React.createElement(Button, {
13297
13304
  type: "link",
13298
13305
  onClick: handleChangeGoods
13299
13306
  }, "\u9009\u62E9\u5546\u54C1"), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
@@ -14015,6 +14022,7 @@ var getBsE3OrderListSingleton = function getBsE3OrderListSingleton(orderNo) {
14015
14022
  isCombine = item.isCombine,
14016
14023
  orderStatus = item.orderStatus;
14017
14024
  return _objectSpread2(_objectSpread2({}, item), {}, {
14025
+ orderStatus: BS_E3_ORDER_STATUS_MAP[orderStatus],
14018
14026
  isSplit: BS_E3_BOOLEAN_STATUS_MAP[isSplit],
14019
14027
  isSplitNew: BS_E3_BOOLEAN_STATUS_MAP[isSplitNew],
14020
14028
  isExchangeOrder: BS_E3_BOOLEAN_STATUS_MAP[isExchangeOrder],
@@ -14277,16 +14285,7 @@ var index$1 = (function (props) {
14277
14285
  });
14278
14286
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
14279
14287
  orders: trades,
14280
- showOrderInfo: trades.map(function (_ref6) {
14281
- var billNo = _ref6.billNo,
14282
- billType = _ref6.billType,
14283
- billTag = _ref6.billTag;
14284
- return {
14285
- billNo: billNo,
14286
- billType: billType,
14287
- billTag: billTag
14288
- };
14289
- })
14288
+ showOrderInfo: trades
14290
14289
  }));
14291
14290
  });
14292
14291
  onceRef.current = false;
@@ -14382,7 +14381,7 @@ var componentMap$1 = {
14382
14381
  'BS_E3_GOODS': {
14383
14382
  type: 'e3',
14384
14383
  key: 'bsE3Goods',
14385
- name: '旺店通',
14384
+ name: '百胜E3',
14386
14385
  orderNo: 'dealCode',
14387
14386
  goodDetailOrderNo: 'originalDealCode',
14388
14387
  eventNameMap: {
package/dist/index.js CHANGED
@@ -12165,7 +12165,7 @@ var columns$2 = [{
12165
12165
  ellipsis: true,
12166
12166
  width: 70
12167
12167
  }, {
12168
- dataIndex: 'goodsSname',
12168
+ dataIndex: 'goodsShortName',
12169
12169
  title: "\u5546\u54C1\u7B80\u79F0",
12170
12170
  ellipsis: true,
12171
12171
  width: 70
@@ -12177,8 +12177,8 @@ var columns$2 = [{
12177
12177
  render: function render(picUrl) {
12178
12178
  return /*#__PURE__*/React__default['default'].createElement("img", {
12179
12179
  style: {
12180
- width: '40px',
12181
- height: '40px',
12180
+ width: '60px',
12181
+ height: '60px',
12182
12182
  objectFit: 'contain'
12183
12183
  },
12184
12184
  src: picUrl
@@ -12260,7 +12260,7 @@ var columns$2 = [{
12260
12260
  ellipsis: true,
12261
12261
  width: 70
12262
12262
  }, {
12263
- dataIndex: 'taocanSingleSl',
12263
+ dataIndex: 'taoCanSingleSl',
12264
12264
  title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
12265
12265
  ellipsis: true,
12266
12266
  width: 70
@@ -12509,6 +12509,7 @@ var BsE3GoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$4);
12509
12509
  // styleId: string;
12510
12510
  // }
12511
12511
  var GoodItem$1 = function GoodItem(props) {
12512
+ var _ref;
12512
12513
  var _props$value = props.value,
12513
12514
  value = _props$value === void 0 ? [] : _props$value,
12514
12515
  type = props.type,
@@ -12966,7 +12967,7 @@ var GoodItem$1 = function GoodItem(props) {
12966
12967
  ellipsis: true,
12967
12968
  width: 150
12968
12969
  }, {
12969
- dataIndex: 'goodsSname',
12970
+ dataIndex: 'goodsShortName',
12970
12971
  title: "\u5546\u54C1\u7B80\u79F0",
12971
12972
  align: 'center',
12972
12973
  ellipsis: true,
@@ -12976,7 +12977,13 @@ var GoodItem$1 = function GoodItem(props) {
12976
12977
  title: "\u5546\u54C1\u56FE\u7247",
12977
12978
  align: 'center',
12978
12979
  ellipsis: true,
12979
- width: 100
12980
+ width: 100,
12981
+ render: function render(val) {
12982
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
12983
+ width: 60,
12984
+ src: val
12985
+ });
12986
+ }
12980
12987
  }, {
12981
12988
  dataIndex: 'goodsSn',
12982
12989
  title: "\u8D27\u53F7",
@@ -13068,7 +13075,7 @@ var GoodItem$1 = function GoodItem(props) {
13068
13075
  ellipsis: true,
13069
13076
  width: 100
13070
13077
  }, {
13071
- dataIndex: 'taocanSingleSl',
13078
+ dataIndex: 'taoCanSingleSl',
13072
13079
  title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
13073
13080
  align: 'center',
13074
13081
  ellipsis: true,
@@ -13305,7 +13312,7 @@ var GoodItem$1 = function GoodItem(props) {
13305
13312
  }, showModeBtn && /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
13306
13313
  checked: isStrict,
13307
13314
  onChange: handleCheckboxChange
13308
- }, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13315
+ }, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !((_ref = ['BS_E3_GOODS']) === null || _ref === void 0 ? void 0 : _ref.includes(type)) && /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13309
13316
  type: "link",
13310
13317
  onClick: handleChangeGoods
13311
13318
  }, "\u9009\u62E9\u5546\u54C1"), otherOperations), /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
@@ -14027,6 +14034,7 @@ var getBsE3OrderListSingleton = function getBsE3OrderListSingleton(orderNo) {
14027
14034
  isCombine = item.isCombine,
14028
14035
  orderStatus = item.orderStatus;
14029
14036
  return _objectSpread2(_objectSpread2({}, item), {}, {
14037
+ orderStatus: kmkfUtils.BS_E3_ORDER_STATUS_MAP[orderStatus],
14030
14038
  isSplit: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isSplit],
14031
14039
  isSplitNew: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isSplitNew],
14032
14040
  isExchangeOrder: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isExchangeOrder],
@@ -14289,16 +14297,7 @@ var index$1 = (function (props) {
14289
14297
  });
14290
14298
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
14291
14299
  orders: trades,
14292
- showOrderInfo: trades.map(function (_ref6) {
14293
- var billNo = _ref6.billNo,
14294
- billType = _ref6.billType,
14295
- billTag = _ref6.billTag;
14296
- return {
14297
- billNo: billNo,
14298
- billType: billType,
14299
- billTag: billTag
14300
- };
14301
- })
14300
+ showOrderInfo: trades
14302
14301
  }));
14303
14302
  });
14304
14303
  onceRef.current = false;
@@ -14394,7 +14393,7 @@ var componentMap$1 = {
14394
14393
  'BS_E3_GOODS': {
14395
14394
  type: 'e3',
14396
14395
  key: 'bsE3Goods',
14397
- name: '旺店通',
14396
+ name: '百胜E3',
14398
14397
  orderNo: 'dealCode',
14399
14398
  goodDetailOrderNo: 'originalDealCode',
14400
14399
  eventNameMap: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "1.17.8-beta.34",
3
+ "version": "1.17.8-beta.36",
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.17.8-beta.34",
23
+ "@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.36",
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": "d23156fc1428df9314e47905d42c0b6dc8e88197"
68
+ "gitHead": "c6bc7848aac5c80085b1ccc50d9d5c15f594bfe1"
69
69
  }