@kmkf-fe-packages/basic-components 2.10.18-rc.5 → 2.10.18-rc.8

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, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, normalizeYouzanStar, servers, columnsGoodsList, LogisticsAddressData, isJdLogisticsCompany, getJdCustomerCodeOptions, SendDataCenter, kmSkuTypeMap, 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, DxdSuppliersData, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, 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, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, 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, normalizeYouzanStar, servers, columnsGoodsList, LogisticsAddressData, isJdLogisticsCompany, getJdCustomerCodeOptions, SendDataCenter, kmSkuTypeMap, 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, DxdSuppliersData, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, warehouseTypeMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, 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, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, 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';
@@ -10727,6 +10727,7 @@ var SubForm = function SubForm(props) {
10727
10727
  data,
10728
10728
  success,
10729
10729
  _cursorIdRef$current2,
10730
+ _cursorIdRef$current3,
10730
10731
  transDataSourceItem,
10731
10732
  headerKeys,
10732
10733
  newList,
@@ -10785,6 +10786,9 @@ var SubForm = function SubForm(props) {
10785
10786
  if (cursorIdRef.current.cursorId) {
10786
10787
  params.cursorId = cursorIdRef.current.cursorId;
10787
10788
  }
10789
+ if (cursorIdRef.current.cursorCreated) {
10790
+ params.cursorCreated = cursorIdRef.current.cursorCreated;
10791
+ }
10788
10792
  } else {
10789
10793
  cursorIdRef.current = {
10790
10794
  queryKey: queryKey
@@ -10802,6 +10806,9 @@ var SubForm = function SubForm(props) {
10802
10806
  if ((data === null || data === void 0 ? void 0 : data.cursorId) && ((_cursorIdRef$current2 = cursorIdRef.current) === null || _cursorIdRef$current2 === void 0 ? void 0 : _cursorIdRef$current2.queryKey) === queryKey) {
10803
10807
  cursorIdRef.current.cursorId = data.cursorId;
10804
10808
  }
10809
+ if ((data === null || data === void 0 ? void 0 : data.cursorCreated) && ((_cursorIdRef$current3 = cursorIdRef.current) === null || _cursorIdRef$current3 === void 0 ? void 0 : _cursorIdRef$current3.queryKey) === queryKey) {
10810
+ cursorIdRef.current.cursorCreated = data.cursorCreated;
10811
+ }
10805
10812
  transDataSourceItem = transformWorkOrderData(componentDtoList.length ? componentDtoList : componentList, 'edit');
10806
10813
  headerKeys = correlationList.map(function (t) {
10807
10814
  return t.key;
@@ -21246,7 +21253,7 @@ var getColumns$2 = function getColumns(_ref) {
21246
21253
  }
21247
21254
  }, {
21248
21255
  dataIndex: 'returnPrice',
21249
- title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
21256
+ title: "".concat(text, "\u9000\u6B3E\u91D1\u989D"),
21250
21257
  align: 'center',
21251
21258
  ellipsis: true,
21252
21259
  width: 100
@@ -27272,12 +27279,13 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
27272
27279
  var _data$data, _data$data$trades;
27273
27280
  if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$trades = _data$data.trades) === null || _data$data$trades === void 0 ? void 0 : _data$data$trades.length) {
27274
27281
  data.data.trades = filterWdtOrders(data === null || data === void 0 ? void 0 : data.data, orderNo).map(function (item) {
27275
- var _tradeStatusMap$data$;
27282
+ var _tradeStatusMap$data$, _warehouseTypeMap$dat;
27276
27283
  return _objectSpread2(_objectSpread2({}, item), {}, {
27277
27284
  billNo: item.tradeNo,
27278
27285
  billType: WDT_ORDER_TYPE_MAP[item.tradeType],
27279
27286
  billTag: item.tagName || item.tags,
27280
27287
  tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus],
27288
+ warehouseType: warehouseTypeMap === null || warehouseTypeMap === void 0 ? void 0 : (_warehouseTypeMap$dat = warehouseTypeMap[data.data.version]) === null || _warehouseTypeMap$dat === void 0 ? void 0 : _warehouseTypeMap$dat[item.warehouseType],
27281
27289
  logisticsName: ExpressData.getInstance('wdt').getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCode, false) || (item === null || item === void 0 ? void 0 : item.logisticsName)
27282
27290
  });
27283
27291
  });
@@ -48,12 +48,36 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
48
48
  render: (val: any, record: any, _?: any, parent?: any, index?: number | undefined) => any;
49
49
  renderExport: (val: any, record: any, _?: any, parent?: any, index?: number | undefined) => any;
50
50
  })[];
51
- WDT_SYSTEM_ORDER: {
51
+ WDT_SYSTEM_ORDER: ({
52
52
  title: string;
53
53
  dataIndex: string;
54
54
  width: number;
55
55
  ellipsis: boolean;
56
- }[];
56
+ conditionOptionsSetting?: undefined;
57
+ } | {
58
+ title: string;
59
+ dataIndex: string;
60
+ width: number;
61
+ ellipsis: boolean;
62
+ conditionOptionsSetting: {
63
+ dataType: string;
64
+ getOptions: () => any[];
65
+ };
66
+ } | {
67
+ title: string;
68
+ dataIndex: string;
69
+ width: number;
70
+ ellipsis: boolean;
71
+ conditionOptionsSetting: {
72
+ dataType: string;
73
+ getOptions: ({ wdtVersion }: {
74
+ wdtVersion: string;
75
+ }) => {
76
+ value: string;
77
+ label: string;
78
+ }[];
79
+ };
80
+ })[];
57
81
  BS_E3_SYSTEM_ORDER: ({
58
82
  title: string;
59
83
  dataIndex: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.10.18-rc.5",
3
+ "version": "2.10.18-rc.8",
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.10.18-rc.5",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.10.18-rc.8",
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": "8bba4d945d1559f49c89650259863a21dcc707ca"
69
+ "gitHead": "5d8e47873631d8f7abd76c449d8fbeae529fa94d"
70
70
  }