@kmkf-fe-packages/basic-components 2.2.33 → 2.2.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, Image, InputNumber, Input, Select, Upload, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } 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, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import every from 'lodash/every';
8
8
  import maxBy from 'lodash/maxBy';
9
9
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
@@ -7757,7 +7757,8 @@ var Province = function Province(props) {
7757
7757
  bs: BsAddressData.getInstance(),
7758
7758
  wdt: WdtAddressData.getInstance(),
7759
7759
  gy: GyAddressData.getInstance(),
7760
- km: AddressData.getInstance()
7760
+ km: AddressData.getInstance(),
7761
+ jst: JstAddressData.getInstance()
7761
7762
  };
7762
7763
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7763
7764
  options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
@@ -7912,6 +7913,7 @@ var IdentifyAddress = function IdentifyAddress(props) {
7912
7913
  wdt: WdtAddressData,
7913
7914
  gy: GyAddressData,
7914
7915
  km: AddressData,
7916
+ jst: JstAddressData,
7915
7917
  workOrder: AddressData
7916
7918
  }[type] || AddressData).getInstance();
7917
7919
  if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
@@ -7920,7 +7922,7 @@ var IdentifyAddress = function IdentifyAddress(props) {
7920
7922
  // addressData.getProCodeByName(val?.city),
7921
7923
  // addressData.getProCodeByName(val?.district),
7922
7924
  // ];
7923
- params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district]);
7925
+ params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district], type === 'jst');
7924
7926
  }
7925
7927
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
7926
7928
  };
@@ -10517,7 +10519,8 @@ function CopyTextIcon(_ref) {
10517
10519
  overflow: 'hidden',
10518
10520
  textOverflow: 'ellipsis',
10519
10521
  whiteSpace: 'nowrap'
10520
- }
10522
+ },
10523
+ title: val
10521
10524
  }, val), /*#__PURE__*/React.createElement(CopyToClipboard, {
10522
10525
  text: val,
10523
10526
  onCopy: function onCopy() {
@@ -19423,7 +19426,7 @@ var getColumns$2 = function getColumns(_ref) {
19423
19426
  WDT_AFTERSALE_GOODS: [{
19424
19427
  dataIndex: 'oid',
19425
19428
  title: "\u539F\u59CB\u5B50\u5355\u53F7",
19426
- width: 200,
19429
+ width: 300,
19427
19430
  align: 'center',
19428
19431
  ellipsis: true,
19429
19432
  render: renderTextEllipsis
@@ -19433,7 +19436,11 @@ var getColumns$2 = function getColumns(_ref) {
19433
19436
  width: 250,
19434
19437
  align: 'center',
19435
19438
  ellipsis: true,
19436
- render: renderTextEllipsis
19439
+ render: function render(text) {
19440
+ return /*#__PURE__*/React.createElement(CopyTextIcon, {
19441
+ val: text
19442
+ });
19443
+ }
19437
19444
  }, {
19438
19445
  dataIndex: 'goodsNo',
19439
19446
  title: "\u8D27\u54C1\u7F16\u53F7",
@@ -19447,7 +19454,11 @@ var getColumns$2 = function getColumns(_ref) {
19447
19454
  width: 150,
19448
19455
  align: 'center',
19449
19456
  ellipsis: true,
19450
- render: renderTextEllipsis
19457
+ render: function render(text) {
19458
+ return /*#__PURE__*/React.createElement(CopyTextIcon, {
19459
+ val: text
19460
+ });
19461
+ }
19451
19462
  }, {
19452
19463
  dataIndex: 'specNo',
19453
19464
  title: "\u5546\u5BB6\u7F16\u7801",
@@ -19475,21 +19486,33 @@ var getColumns$2 = function getColumns(_ref) {
19475
19486
  width: 250,
19476
19487
  align: 'center',
19477
19488
  ellipsis: true,
19478
- render: renderTextEllipsis
19489
+ render: function render(text) {
19490
+ return /*#__PURE__*/React.createElement(CopyTextIcon, {
19491
+ val: text
19492
+ });
19493
+ }
19479
19494
  }, {
19480
19495
  dataIndex: 'apiSpecName',
19481
19496
  title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
19482
19497
  width: 250,
19483
19498
  align: 'center',
19484
19499
  ellipsis: true,
19485
- render: renderTextEllipsis
19500
+ render: function render(text) {
19501
+ return /*#__PURE__*/React.createElement(CopyTextIcon, {
19502
+ val: text
19503
+ });
19504
+ }
19486
19505
  }, {
19487
19506
  dataIndex: 'suiteName',
19488
19507
  title: "\u7EC4\u5408\u88C5\u540D\u79F0",
19489
- width: 150,
19508
+ width: 250,
19490
19509
  align: 'center',
19491
19510
  ellipsis: true,
19492
- render: renderTextEllipsis
19511
+ render: function render(text) {
19512
+ return /*#__PURE__*/React.createElement(CopyTextIcon, {
19513
+ val: text
19514
+ });
19515
+ }
19493
19516
  }, {
19494
19517
  dataIndex: 'suiteNo',
19495
19518
  title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
@@ -19526,7 +19549,7 @@ var getColumns$2 = function getColumns(_ref) {
19526
19549
  ellipsis: true,
19527
19550
  render: renderTextEllipsis
19528
19551
  }, {
19529
- dataIndex: 'orderNum',
19552
+ dataIndex: 'num',
19530
19553
  title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
19531
19554
  width: 150,
19532
19555
  align: 'center',
@@ -19547,7 +19570,7 @@ var getColumns$2 = function getColumns(_ref) {
19547
19570
  ellipsis: true,
19548
19571
  render: renderTextEllipsis
19549
19572
  }, {
19550
- dataIndex: 'giftType',
19573
+ dataIndex: 'giftTypeDesc',
19551
19574
  title: "\u8D60\u54C1\u7C7B\u578B",
19552
19575
  width: 150,
19553
19576
  align: 'center',
package/dist/index.js CHANGED
@@ -7772,7 +7772,8 @@ var Province = function Province(props) {
7772
7772
  bs: kmkfUtils.BsAddressData.getInstance(),
7773
7773
  wdt: kmkfUtils.WdtAddressData.getInstance(),
7774
7774
  gy: kmkfUtils.GyAddressData.getInstance(),
7775
- km: kmkfUtils.AddressData.getInstance()
7775
+ km: kmkfUtils.AddressData.getInstance(),
7776
+ jst: kmkfUtils.JstAddressData.getInstance()
7776
7777
  };
7777
7778
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7778
7779
  options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
@@ -7927,6 +7928,7 @@ var IdentifyAddress = function IdentifyAddress(props) {
7927
7928
  wdt: kmkfUtils.WdtAddressData,
7928
7929
  gy: kmkfUtils.GyAddressData,
7929
7930
  km: kmkfUtils.AddressData,
7931
+ jst: kmkfUtils.JstAddressData,
7930
7932
  workOrder: kmkfUtils.AddressData
7931
7933
  }[type] || kmkfUtils.AddressData).getInstance();
7932
7934
  if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
@@ -7935,7 +7937,7 @@ var IdentifyAddress = function IdentifyAddress(props) {
7935
7937
  // addressData.getProCodeByName(val?.city),
7936
7938
  // addressData.getProCodeByName(val?.district),
7937
7939
  // ];
7938
- params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district]);
7940
+ params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district], type === 'jst');
7939
7941
  }
7940
7942
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
7941
7943
  };
@@ -10532,7 +10534,8 @@ function CopyTextIcon(_ref) {
10532
10534
  overflow: 'hidden',
10533
10535
  textOverflow: 'ellipsis',
10534
10536
  whiteSpace: 'nowrap'
10535
- }
10537
+ },
10538
+ title: val
10536
10539
  }, val), /*#__PURE__*/React__default['default'].createElement(reactCopyToClipboard.CopyToClipboard, {
10537
10540
  text: val,
10538
10541
  onCopy: function onCopy() {
@@ -19438,7 +19441,7 @@ var getColumns$2 = function getColumns(_ref) {
19438
19441
  WDT_AFTERSALE_GOODS: [{
19439
19442
  dataIndex: 'oid',
19440
19443
  title: "\u539F\u59CB\u5B50\u5355\u53F7",
19441
- width: 200,
19444
+ width: 300,
19442
19445
  align: 'center',
19443
19446
  ellipsis: true,
19444
19447
  render: renderTextEllipsis
@@ -19448,7 +19451,11 @@ var getColumns$2 = function getColumns(_ref) {
19448
19451
  width: 250,
19449
19452
  align: 'center',
19450
19453
  ellipsis: true,
19451
- render: renderTextEllipsis
19454
+ render: function render(text) {
19455
+ return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
19456
+ val: text
19457
+ });
19458
+ }
19452
19459
  }, {
19453
19460
  dataIndex: 'goodsNo',
19454
19461
  title: "\u8D27\u54C1\u7F16\u53F7",
@@ -19462,7 +19469,11 @@ var getColumns$2 = function getColumns(_ref) {
19462
19469
  width: 150,
19463
19470
  align: 'center',
19464
19471
  ellipsis: true,
19465
- render: renderTextEllipsis
19472
+ render: function render(text) {
19473
+ return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
19474
+ val: text
19475
+ });
19476
+ }
19466
19477
  }, {
19467
19478
  dataIndex: 'specNo',
19468
19479
  title: "\u5546\u5BB6\u7F16\u7801",
@@ -19490,21 +19501,33 @@ var getColumns$2 = function getColumns(_ref) {
19490
19501
  width: 250,
19491
19502
  align: 'center',
19492
19503
  ellipsis: true,
19493
- render: renderTextEllipsis
19504
+ render: function render(text) {
19505
+ return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
19506
+ val: text
19507
+ });
19508
+ }
19494
19509
  }, {
19495
19510
  dataIndex: 'apiSpecName',
19496
19511
  title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
19497
19512
  width: 250,
19498
19513
  align: 'center',
19499
19514
  ellipsis: true,
19500
- render: renderTextEllipsis
19515
+ render: function render(text) {
19516
+ return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
19517
+ val: text
19518
+ });
19519
+ }
19501
19520
  }, {
19502
19521
  dataIndex: 'suiteName',
19503
19522
  title: "\u7EC4\u5408\u88C5\u540D\u79F0",
19504
- width: 150,
19523
+ width: 250,
19505
19524
  align: 'center',
19506
19525
  ellipsis: true,
19507
- render: renderTextEllipsis
19526
+ render: function render(text) {
19527
+ return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
19528
+ val: text
19529
+ });
19530
+ }
19508
19531
  }, {
19509
19532
  dataIndex: 'suiteNo',
19510
19533
  title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
@@ -19541,7 +19564,7 @@ var getColumns$2 = function getColumns(_ref) {
19541
19564
  ellipsis: true,
19542
19565
  render: renderTextEllipsis
19543
19566
  }, {
19544
- dataIndex: 'orderNum',
19567
+ dataIndex: 'num',
19545
19568
  title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
19546
19569
  width: 150,
19547
19570
  align: 'center',
@@ -19562,7 +19585,7 @@ var getColumns$2 = function getColumns(_ref) {
19562
19585
  ellipsis: true,
19563
19586
  render: renderTextEllipsis
19564
19587
  }, {
19565
- dataIndex: 'giftType',
19588
+ dataIndex: 'giftTypeDesc',
19566
19589
  title: "\u8D60\u54C1\u7C7B\u578B",
19567
19590
  width: 150,
19568
19591
  align: 'center',
@@ -3,7 +3,7 @@ interface ProvinceType {
3
3
  value: string[];
4
4
  disabled: boolean;
5
5
  onChange: (value: any, selectedOptions: any) => void;
6
- type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km';
6
+ type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km' | 'jst';
7
7
  }
8
8
  declare const Province: (props: Partial<ProvinceType>) => React.JSX.Element;
9
9
  export default Province;
@@ -9,7 +9,7 @@ interface ApaasPostingProps {
9
9
  value: Partial<PostingValueType>;
10
10
  disabled: boolean;
11
11
  onChange: (val: any) => void;
12
- type?: 'workOrder' | 'bs' | 'wdt';
12
+ type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km' | 'jst';
13
13
  }
14
14
  declare function ApaasPosting(props: Partial<ApaasPostingProps>): React.JSX.Element;
15
15
  export default ApaasPosting;
@@ -9,7 +9,7 @@ interface IdentifyAddressProps {
9
9
  onChange: (value: any) => void;
10
10
  disabled?: boolean;
11
11
  showIdentify?: boolean;
12
- type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km';
12
+ type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km' | 'jst';
13
13
  }
14
14
  declare const IdentifyAddress: (props: IdentifyAddressProps) => React.JSX.Element;
15
15
  export default IdentifyAddress;
@@ -64,11 +64,18 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
64
64
  title: string;
65
65
  width: number;
66
66
  }[];
67
- WDT_RETURN_BILL_NO: {
67
+ WDT_RETURN_BILL_NO: ({
68
68
  title: string;
69
69
  dataIndex: string;
70
70
  width: number;
71
71
  ellipsis: boolean;
72
- }[];
72
+ disabled?: undefined;
73
+ } | {
74
+ title: string;
75
+ dataIndex: string;
76
+ width: number;
77
+ ellipsis: boolean;
78
+ disabled: boolean;
79
+ })[];
73
80
  };
74
81
  export default SYSTEM_ORDER_COLUMNS_MAP;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.2.33",
3
+ "version": "2.2.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": "2.2.33",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.36",
24
24
  "ahooks": "^3.7.4",
25
25
  "ali-react-table": "2.6.1",
26
26
  "bignumber.js": "^9.1.2",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "d0e41a890aec89ae7cd91737060b00c04df2d6c9"
69
+ "gitHead": "9c0da01af22e81d59a48369d8a00d92b82543e35"
70
70
  }