@kmkf-fe-packages/basic-components 2.10.24 → 2.10.26

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,10 +3,10 @@ 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, 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, TTX_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, updateTtxGoodsHandle, 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, TTX_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, updateTtxGoodsHandle, 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
- 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';
9
+ import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, intersection, isEmpty } from 'lodash';
10
10
  import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
11
11
  import zhCN from 'antd/lib/locale/zh_CN';
12
12
  import Monitor from 'kmkf-monitor';
@@ -8635,7 +8635,7 @@ var processLogisticsInterception = function processLogisticsInterception(getValu
8635
8635
  address = every(address, function (item) {
8636
8636
  return !item;
8637
8637
  }) ? [] : address;
8638
- var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
8638
+ var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey', 'interceptLogisticsCustomerCode'];
8639
8639
  var map = subFields.reduce(function (cur, nxt) {
8640
8640
  return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8641
8641
  }, {});
@@ -8816,12 +8816,14 @@ var processSceneStatus = function processSceneStatus(getValue) {
8816
8816
  BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8817
8817
  MSG_STATUS: 'msgStatusValues',
8818
8818
  WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8819
+ WDT_WAREHOUSING_STATUS_V2: 'wdtInStockStatusV2ItemList',
8819
8820
  DXD_WAREHOUSING_STATUS: 'dxdInStockStatusItemList',
8820
8821
  JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
8821
8822
  JST_WAREHOUSING_STATUS: 'jstInStockStatusItemList',
8822
8823
  TTX_WAREHOUSING_STATUS: 'ttxInStockStatusItemList',
8823
8824
  WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList',
8824
- KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList'
8825
+ KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList',
8826
+ JY_WAREHOUSING_STATUS: 'jyInStockStatusItemList'
8825
8827
  };
8826
8828
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8827
8829
  };
@@ -9758,12 +9760,14 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9758
9760
  BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9759
9761
  MSG_STATUS: processSceneStatus,
9760
9762
  WDT_WAREHOUSING_STATUS: processSceneStatus,
9763
+ WDT_WAREHOUSING_STATUS_V2: processSceneStatus,
9761
9764
  DXD_WAREHOUSING_STATUS: processSceneStatus,
9762
9765
  WLN_WAREHOUSING_STATUS: processSceneStatus,
9763
9766
  JKY_WAREHOUSING_STATUS: processSceneStatus,
9764
9767
  JST_WAREHOUSING_STATUS: processSceneStatus,
9765
9768
  TTX_WAREHOUSING_STATUS: processSceneStatus,
9766
9769
  KM_WAREHOUSING_STATUS: processSceneStatus,
9770
+ JY_WAREHOUSING_STATUS: processSceneStatus,
9767
9771
  BS_LOGISTICS: processErpLogistics,
9768
9772
  WLN_LOGISTICS: processErpLogistics,
9769
9773
  WDT_LOGISTICS: processErpLogistics,
@@ -13536,7 +13540,6 @@ var Item = Form.Item;
13536
13540
  var LogisticsInterception = function LogisticsInterception(props) {
13537
13541
  var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5;
13538
13542
  var LogisticsAddress = LogisticsAddressData.getInstance();
13539
- var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
13540
13543
  var address = AddressData.getInstance();
13541
13544
  var _props$value = props.value,
13542
13545
  value = _props$value === void 0 ? {} : _props$value,
@@ -13574,6 +13577,12 @@ var LogisticsInterception = function LogisticsInterception(props) {
13574
13577
  _useState8 = _slicedToArray(_useState7, 2),
13575
13578
  isInterface = _useState8[0],
13576
13579
  setIsInterface = _useState8[1];
13580
+ var _useState9 = useState(function () {
13581
+ return (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
13582
+ }),
13583
+ _useState10 = _slicedToArray(_useState9, 2),
13584
+ logisticsAddressData = _useState10[0],
13585
+ setLogisticsAddressData = _useState10[1];
13577
13586
  useEffect(function () {
13578
13587
  if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
13579
13588
  setTypeOptions([]);
@@ -13588,6 +13597,13 @@ var LogisticsInterception = function LogisticsInterception(props) {
13588
13597
  setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.logisticsStatusList) || []);
13589
13598
  setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
13590
13599
  }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13600
+ useEffect(function () {
13601
+ if (!isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany) && (value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode) !== undefined) {
13602
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13603
+ interceptLogisticsCustomerCode: undefined
13604
+ }));
13605
+ }
13606
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany, value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode]);
13591
13607
  //拦截类型切换 需要清空派送地址
13592
13608
  useEffect(function () {
13593
13609
  if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) return;
@@ -13650,6 +13666,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
13650
13666
  }
13651
13667
  return isShow;
13652
13668
  }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13669
+ var showCustomerCode = useMemo(function () {
13670
+ return isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
13671
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13653
13672
  //判断是否能修改物流信息
13654
13673
  var isEdit = useMemo(function () {
13655
13674
  var company = expressInterceptData.find(function (item) {
@@ -13661,13 +13680,13 @@ var LogisticsInterception = function LogisticsInterception(props) {
13661
13680
  var baseFieldDisabled = disabled || isEdit && !canEditPreCreateBaseFields;
13662
13681
  //退回地址列表
13663
13682
  var logisticsAddressOptions = useMemo(function () {
13664
- return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
13683
+ return logisticsAddressData === null || logisticsAddressData === void 0 ? void 0 : logisticsAddressData.filter(function (item) {
13665
13684
  return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
13666
13685
  });
13667
- }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13686
+ }, [logisticsAddressData, value === null || value === void 0 ? void 0 : value.interceptCompany]);
13668
13687
  // K码列表
13669
13688
  var kCodeList = useMemo(function () {
13670
- return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
13689
+ return logisticsAddressData === null || logisticsAddressData === void 0 ? void 0 : logisticsAddressData.filter(function (item) {
13671
13690
  return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany) && item.userKCode;
13672
13691
  }).map(function (item) {
13673
13692
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -13675,7 +13694,44 @@ var LogisticsInterception = function LogisticsInterception(props) {
13675
13694
  label: item === null || item === void 0 ? void 0 : item.userKCode
13676
13695
  });
13677
13696
  });
13678
- }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13697
+ }, [logisticsAddressData, value === null || value === void 0 ? void 0 : value.interceptCompany]);
13698
+ var customerCodeOptions = useMemo(function () {
13699
+ return getJdCustomerCodeOptions(logisticsAddressData);
13700
+ }, [logisticsAddressData]);
13701
+ var refreshLogisticsAddressOptions = /*#__PURE__*/function () {
13702
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
13703
+ var _yield$request, data, latestData;
13704
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
13705
+ while (1) switch (_context.prev = _context.next) {
13706
+ case 0:
13707
+ _context.prev = 0;
13708
+ _context.next = 3;
13709
+ return request$1({
13710
+ url: '/qy/userConfig/listLogisticsAddress',
13711
+ method: 'get',
13712
+ data: {}
13713
+ });
13714
+ case 3:
13715
+ _yield$request = _context.sent;
13716
+ data = _yield$request.data;
13717
+ latestData = data || [];
13718
+ LogisticsAddress.setaddressData(latestData);
13719
+ setLogisticsAddressData(latestData);
13720
+ _context.next = 12;
13721
+ break;
13722
+ case 10:
13723
+ _context.prev = 10;
13724
+ _context.t0 = _context["catch"](0);
13725
+ case 12:
13726
+ case "end":
13727
+ return _context.stop();
13728
+ }
13729
+ }, _callee, null, [[0, 10]]);
13730
+ }));
13731
+ return function refreshLogisticsAddressOptions() {
13732
+ return _ref.apply(this, arguments);
13733
+ };
13734
+ }();
13679
13735
  var returnValue = useMemo(function () {
13680
13736
  var _value$interceptAddre, _value$interceptAddre2, _value$interceptAddre3;
13681
13737
  var uk = LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getUkByInfo({
@@ -13731,9 +13787,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
13731
13787
  // userSecretKey: '12345678',
13732
13788
  // },
13733
13789
  // ];
13734
- var matchKCodeList = LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
13735
- return item.cpCode === val && item.userKCode;
13736
- });
13737
13790
  newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
13738
13791
  interceptCompany: val,
13739
13792
  interceptType: (_defaultInterceptType = defaultInterceptType) === null || _defaultInterceptType === void 0 ? void 0 : _defaultInterceptType.value,
@@ -13752,7 +13805,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13752
13805
  },
13753
13806
  interceptLogisticsApiStatusReason: undefined,
13754
13807
  interceptLogisticsUserKCode: undefined,
13755
- interceptLogisticsUserSecretKey: undefined
13808
+ interceptLogisticsUserSecretKey: undefined,
13809
+ interceptLogisticsCustomerCode: undefined
13756
13810
  });
13757
13811
  }
13758
13812
  if (type === 'interceptLogisticsApiStatus') {
@@ -13832,7 +13886,41 @@ var LogisticsInterception = function LogisticsInterception(props) {
13832
13886
  return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptCode');
13833
13887
  },
13834
13888
  value: value === null || value === void 0 ? void 0 : value.interceptCode
13835
- }))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
13889
+ }))), /*#__PURE__*/React.createElement(Item, {
13890
+ label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801", platform === 'pc' ? /*#__PURE__*/React.createElement(React.Fragment, null, "\uFF1A", /*#__PURE__*/React.createElement(Typography.Link, {
13891
+ style: {
13892
+ cursor: 'pointer'
13893
+ },
13894
+ onClick: function onClick() {
13895
+ return onJumpPage && (onJumpPage === null || onJumpPage === void 0 ? void 0 : onJumpPage({
13896
+ type: 'interceptConfig',
13897
+ state: {
13898
+ tab: 'JDLCodeRelation'
13899
+ }
13900
+ }));
13901
+ }
13902
+ }, 'K码/EBU码配置>>')) : null),
13903
+ required: showCustomerCode,
13904
+ key: 'interceptLogisticsCustomerCode',
13905
+ hidden: !showCustomerCode
13906
+ }, /*#__PURE__*/React.createElement(Select, {
13907
+ disabled: disabled,
13908
+ placeholder: "\u9009\u62E9\u5BA2\u6237\u7F16\u7801",
13909
+ notFoundContent: "\u6682\u65E0\u5BA2\u6237\u7F16\u7801\u914D\u7F6E\uFF0C\u8BF7\u5148\u524D\u5F80K\u7801/EBU\u7801\u914D\u7F6E>>",
13910
+ showSearch: true,
13911
+ style: {
13912
+ width: '200px'
13913
+ },
13914
+ onChange: function onChange(val) {
13915
+ return changeHandle(val, 'interceptLogisticsCustomerCode');
13916
+ },
13917
+ onFocus: refreshLogisticsAddressOptions,
13918
+ options: customerCodeOptions,
13919
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode,
13920
+ filterOption: function filterOption(input, option) {
13921
+ return option.label.includes(input);
13922
+ }
13923
+ })), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
13836
13924
  label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
13837
13925
  style: {
13838
13926
  cursor: 'pointer'
@@ -13877,7 +13965,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
13877
13965
  value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserSecretKey
13878
13966
  }))), /*#__PURE__*/React.createElement(Item, {
13879
13967
  label: '拦截类型',
13880
- required: required,
13968
+ required: required && !showCustomerCode,
13881
13969
  key: 'interceptType'
13882
13970
  }, /*#__PURE__*/React.createElement(Select, {
13883
13971
  disabled: baseFieldDisabled,
@@ -16354,6 +16442,227 @@ var useGetColumns = (function (type) {
16354
16442
  return [columns, showColumnsDataIndexList, loading];
16355
16443
  });
16356
16444
 
16445
+ var ACTION_CONFIG = {
16446
+ JST_ERP: [{
16447
+ sourceField: 'styleCode',
16448
+ requestField: 'styleCodes'
16449
+ }, {
16450
+ sourceField: 'goodNo',
16451
+ requestField: 'goodNos'
16452
+ }],
16453
+ WLN_ERP: [{
16454
+ sourceField: 'goodNo',
16455
+ requestField: 'goodNos'
16456
+ }, {
16457
+ sourceField: 'specNo',
16458
+ requestField: 'skuCodes'
16459
+ }],
16460
+ WDT_ERP: [{
16461
+ sourceField: 'goodNo',
16462
+ requestField: 'goodNos'
16463
+ }, {
16464
+ sourceField: 'skuCode',
16465
+ requestField: 'skuCodes'
16466
+ }],
16467
+ GY_ERP: [{
16468
+ sourceField: 'goodNo',
16469
+ requestField: 'goodNos'
16470
+ }],
16471
+ JY_ERP: [{
16472
+ sourceField: 'goodNo',
16473
+ requestField: 'goodNos'
16474
+ }, {
16475
+ sourceField: 'skuCode',
16476
+ requestField: 'skuCodes'
16477
+ }],
16478
+ KM_ERP: [{
16479
+ sourceField: 'goodNo',
16480
+ requestField: 'goodNos'
16481
+ }, {
16482
+ sourceField: 'skuCode',
16483
+ requestField: 'skuCodes'
16484
+ }]
16485
+ };
16486
+ var getSearchValue = function getSearchValue(value) {
16487
+ var _value$inputValue;
16488
+ var inputValue = (_value$inputValue = value === null || value === void 0 ? void 0 : value.inputValue) !== null && _value$inputValue !== void 0 ? _value$inputValue : value;
16489
+ if (inputValue === undefined || inputValue === null) return '';
16490
+ return String(inputValue).trim();
16491
+ };
16492
+ var getSkuType = function getSkuType(platform, formData) {
16493
+ if (platform !== 'JST_ERP' && platform !== 'WLN_ERP') return undefined;
16494
+ var values = Array.isArray(formData.skuType) ? formData.skuType : [formData.skuType];
16495
+ var skuTypes = values.filter(function (value) {
16496
+ return value === 'normal' || value === 'combine';
16497
+ });
16498
+ return skuTypes.length === 1 ? skuTypes[0] : undefined;
16499
+ };
16500
+ var getReSyncActions = function getReSyncActions(platform, total, formData) {
16501
+ if (total !== 0) return [];
16502
+ var skuType = getSkuType(platform, formData);
16503
+ var requestData = _objectSpread2({
16504
+ platform: platform
16505
+ }, skuType ? {
16506
+ skuType: skuType
16507
+ } : {});
16508
+ var values = [];
16509
+ ACTION_CONFIG[platform].forEach(function (config) {
16510
+ var value = getSearchValue(formData[config.sourceField]);
16511
+ if (!value) return;
16512
+ requestData[config.requestField] = [value];
16513
+ values.push(value);
16514
+ });
16515
+ if (!values.length) return [];
16516
+ return [{
16517
+ key: 'goods',
16518
+ label: '同步商品',
16519
+ targetName: '商品',
16520
+ value: values.join('、'),
16521
+ requestData: requestData
16522
+ }];
16523
+ };
16524
+
16525
+ var useGoodsReSyncQuery = function useGoodsReSyncQuery(service) {
16526
+ var _React$useState = React.useState({
16527
+ total: null,
16528
+ formData: {}
16529
+ }),
16530
+ _React$useState2 = _slicedToArray(_React$useState, 2),
16531
+ queryState = _React$useState2[0],
16532
+ setQueryState = _React$useState2[1];
16533
+ var serviceWithReSyncState = React.useCallback(function (pagination, formData) {
16534
+ var currentFormData = formData;
16535
+ setQueryState({
16536
+ total: null,
16537
+ formData: currentFormData
16538
+ });
16539
+ return service(pagination, formData).then(function (result) {
16540
+ setQueryState({
16541
+ total: result.total,
16542
+ formData: currentFormData
16543
+ });
16544
+ return result;
16545
+ }, function (error) {
16546
+ setQueryState({
16547
+ total: null,
16548
+ formData: currentFormData
16549
+ });
16550
+ throw error;
16551
+ });
16552
+ }, [service]);
16553
+ return [serviceWithReSyncState, queryState];
16554
+ };
16555
+ var getErrorMessage = function getErrorMessage(error, action) {
16556
+ var _error$data;
16557
+ return (error === null || error === void 0 ? void 0 : (_error$data = error.data) === null || _error$data === void 0 ? void 0 : _error$data.message) || (error === null || error === void 0 ? void 0 : error.message) || "".concat(action.label, "\u5931\u8D25");
16558
+ };
16559
+ var GoodsReSync = function GoodsReSync(_ref) {
16560
+ var platform = _ref.platform,
16561
+ queryState = _ref.queryState,
16562
+ onSuccess = _ref.onSuccess;
16563
+ var _React$useState3 = React.useState(null),
16564
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
16565
+ loadingAction = _React$useState4[0],
16566
+ setLoadingAction = _React$useState4[1];
16567
+ var actions = getReSyncActions(platform, queryState.total, queryState.formData);
16568
+ var handleReSync = function handleReSync(action) {
16569
+ Modal.confirm({
16570
+ title: "\u786E\u8BA4".concat(action.label),
16571
+ content: "\u5C06\u4ECE ERP \u91CD\u65B0\u62C9\u53D6".concat(action.targetName, "\u201C").concat(action.value, "\u201D\u5E76\u8986\u76D6\u672C\u5730\u6570\u636E"),
16572
+ okText: '确认同步',
16573
+ cancelText: '取消',
16574
+ onOk: function () {
16575
+ var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16576
+ var response;
16577
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
16578
+ while (1) switch (_context.prev = _context.next) {
16579
+ case 0:
16580
+ setLoadingAction(action.key);
16581
+ _context.prev = 1;
16582
+ _context.next = 4;
16583
+ return extendRequest('/qy/gdfw/product/reSync', {
16584
+ method: 'post',
16585
+ timeout: 60000,
16586
+ data: action.requestData
16587
+ });
16588
+ case 4:
16589
+ response = _context.sent;
16590
+ if (!((response === null || response === void 0 ? void 0 : response.success) === false)) {
16591
+ _context.next = 7;
16592
+ break;
16593
+ }
16594
+ throw new Error(response.message || "".concat(action.label, "\u5931\u8D25"));
16595
+ case 7:
16596
+ message.success((response === null || response === void 0 ? void 0 : response.message) || "".concat(action.label, "\u6210\u529F"));
16597
+ _context.next = 10;
16598
+ return onSuccess();
16599
+ case 10:
16600
+ _context.next = 16;
16601
+ break;
16602
+ case 12:
16603
+ _context.prev = 12;
16604
+ _context.t0 = _context["catch"](1);
16605
+ message.error(getErrorMessage(_context.t0, action));
16606
+ throw _context.t0;
16607
+ case 16:
16608
+ _context.prev = 16;
16609
+ setLoadingAction(null);
16610
+ return _context.finish(16);
16611
+ case 19:
16612
+ case "end":
16613
+ return _context.stop();
16614
+ }
16615
+ }, _callee, null, [[1, 12, 16, 19]]);
16616
+ }));
16617
+ function onOk() {
16618
+ return _onOk.apply(this, arguments);
16619
+ }
16620
+ return onOk;
16621
+ }()
16622
+ });
16623
+ };
16624
+ return /*#__PURE__*/React.createElement(Empty, {
16625
+ image: Empty.PRESENTED_IMAGE_SIMPLE,
16626
+ description: actions.length ? /*#__PURE__*/React.createElement(Space, {
16627
+ size: 8
16628
+ }, actions.map(function (action) {
16629
+ return /*#__PURE__*/React.createElement(Button, {
16630
+ key: action.key,
16631
+ loading: loadingAction === action.key,
16632
+ disabled: loadingAction !== null && loadingAction !== action.key,
16633
+ onClick: function onClick() {
16634
+ return handleReSync(action);
16635
+ }
16636
+ }, action.label);
16637
+ })) : '暂无数据'
16638
+ });
16639
+ };
16640
+
16641
+ var transformFormData = function transformFormData(formData) {
16642
+ var conditionList = [];
16643
+ for (var key in formData) {
16644
+ if (formData[key]) {
16645
+ var _formData$key, _formData$key2, _formData$key3, _formData$key4;
16646
+ var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
16647
+ var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'eq' : 'like';
16648
+ var hasValue = Array.isArray(value) ? value.length > 0 : !isNull(value);
16649
+ if (hasValue) {
16650
+ conditionList.push({
16651
+ leftValue: key,
16652
+ compareSymbol: compareSymbol,
16653
+ rightValue: value
16654
+ });
16655
+ }
16656
+ }
16657
+ }
16658
+ return conditionList;
16659
+ };
16660
+ var shouldSubmitOnBlur = function shouldSubmitOnBlur(relatedTarget) {
16661
+ var _target$closest;
16662
+ var target = relatedTarget;
16663
+ return !(target === null || target === void 0 ? void 0 : (_target$closest = target.closest) === null || _target$closest === void 0 ? void 0 : _target$closest.call(target, '.search-form-actions'));
16664
+ };
16665
+
16357
16666
  var compareSymbolList = [{
16358
16667
  label: '模糊',
16359
16668
  value: 'like'
@@ -16368,11 +16677,13 @@ var OptionalInput = function OptionalInput(props) {
16368
16677
  placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
16369
16678
  onPressEnter = props.onPressEnter,
16370
16679
  onBlur = props.onBlur,
16371
- formItemProps = props.formItemProps;
16680
+ formItemProps = props.formItemProps,
16681
+ _props$defaultCompare = props.defaultCompareSymbol,
16682
+ defaultCompareSymbol = _props$defaultCompare === void 0 ? 'like' : _props$defaultCompare;
16372
16683
  var handleSelectChange = function handleSelectChange(compareSymbol) {
16373
16684
  if (typeof onChange === 'function') {
16374
16685
  onChange({
16375
- type: compareSymbol || 'like',
16686
+ type: compareSymbol || defaultCompareSymbol,
16376
16687
  inputValue: value === null || value === void 0 ? void 0 : value.inputValue
16377
16688
  });
16378
16689
  }
@@ -16380,7 +16691,7 @@ var OptionalInput = function OptionalInput(props) {
16380
16691
  var handleInputChange = function handleInputChange(e) {
16381
16692
  if (typeof onChange === 'function') {
16382
16693
  onChange({
16383
- type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
16694
+ type: (value === null || value === void 0 ? void 0 : value.type) || defaultCompareSymbol,
16384
16695
  inputValue: e.target.value
16385
16696
  });
16386
16697
  }
@@ -16403,7 +16714,7 @@ var OptionalInput = function OptionalInput(props) {
16403
16714
  },
16404
16715
  options: compareSymbolList,
16405
16716
  onChange: handleSelectChange,
16406
- value: (value === null || value === void 0 ? void 0 : value.type) || 'like'
16717
+ value: (value === null || value === void 0 ? void 0 : value.type) || defaultCompareSymbol
16407
16718
  }), /*#__PURE__*/React.createElement(Input, _objectSpread2({
16408
16719
  style: {
16409
16720
  width: '150px'
@@ -16416,40 +16727,21 @@ var OptionalInput = function OptionalInput(props) {
16416
16727
  }, formItemProps)));
16417
16728
  };
16418
16729
 
16419
- var transformFormData = function transformFormData(formData) {
16420
- var conditionList = [];
16421
- for (var key in formData) {
16422
- if (formData[key]) {
16423
- var _formData$key, _formData$key2, _formData$key3, _formData$key4;
16424
- var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
16425
- var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'eq' : 'like';
16426
- if (!isNull(value)) {
16427
- conditionList.push({
16428
- leftValue: key,
16429
- compareSymbol: compareSymbol,
16430
- rightValue: value
16431
- });
16432
- }
16433
- }
16434
- }
16435
- return conditionList;
16436
- };
16437
- var shouldSubmitOnBlur = function shouldSubmitOnBlur(relatedTarget) {
16438
- var _target$closest;
16439
- var target = relatedTarget;
16440
- return !(target === null || target === void 0 ? void 0 : (_target$closest = target.closest) === null || _target$closest === void 0 ? void 0 : _target$closest.call(target, '.search-form-actions'));
16441
- };
16442
-
16443
16730
  function SearchForm(_ref) {
16444
16731
  var searchFormData = _ref.searchFormData,
16445
16732
  form = _ref.form,
16446
16733
  showColumnsDataIndexList = _ref.showColumnsDataIndexList,
16447
16734
  submit = _ref.submit,
16448
- reset = _ref.reset;
16735
+ reset = _ref.reset,
16736
+ _ref$optionalInputDef = _ref.optionalInputDefaultCompareSymbol,
16737
+ optionalInputDefaultCompareSymbol = _ref$optionalInputDef === void 0 ? 'like' : _ref$optionalInputDef;
16449
16738
  var _useState = useState({}),
16450
16739
  _useState2 = _slicedToArray(_useState, 2),
16451
16740
  searchData = _useState2[0],
16452
16741
  setSearchData = _useState2[1];
16742
+ var visibleFieldNames = (showColumnsDataIndexList === null || showColumnsDataIndexList === void 0 ? void 0 : showColumnsDataIndexList.length) ? showColumnsDataIndexList : searchFormData.map(function (item) {
16743
+ return item.dataIndex || item.name;
16744
+ });
16453
16745
  var submitForm = /*#__PURE__*/function () {
16454
16746
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
16455
16747
  var values;
@@ -16489,7 +16781,7 @@ function SearchForm(_ref) {
16489
16781
  type = item.type,
16490
16782
  _item$formItemProps = item.formItemProps,
16491
16783
  formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
16492
- if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
16784
+ if (!visibleFieldNames.includes(dataIndex || name)) return;
16493
16785
  return /*#__PURE__*/React.createElement(Form.Item, {
16494
16786
  name: name,
16495
16787
  style: {
@@ -16501,7 +16793,8 @@ function SearchForm(_ref) {
16501
16793
  },
16502
16794
  onBlur: submitFormOnBlur,
16503
16795
  placeholder: label,
16504
- formItemProps: formItemProps
16796
+ formItemProps: formItemProps,
16797
+ defaultCompareSymbol: optionalInputDefaultCompareSymbol
16505
16798
  }) : type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
16506
16799
  placeholder: label,
16507
16800
  showSearch: true,
@@ -16539,200 +16832,433 @@ function SearchForm(_ref) {
16539
16832
  }, "\u91CD\u7F6E")));
16540
16833
  }
16541
16834
 
16542
- var ACTION_CONFIG = {
16543
- JST_ERP: [{
16544
- sourceField: 'styleCode',
16545
- requestField: 'styleCodes'
16835
+ /**
16836
+ * Builds the search fields used by the WDT goods selector.
16837
+ * Brand options are supplied by the caller because they are loaded at runtime.
16838
+ */
16839
+ var createWdtSearchFormData = function createWdtSearchFormData() {
16840
+ var brandOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
16841
+ return [{
16842
+ label: 'SKU名称',
16843
+ name: 'skuName',
16844
+ dataIndex: 'specName'
16546
16845
  }, {
16547
- sourceField: 'goodNo',
16548
- requestField: 'goodNos'
16549
- }],
16550
- WLN_ERP: [{
16551
- sourceField: 'goodNo',
16552
- requestField: 'goodNos'
16846
+ label: 'SKU编码',
16847
+ name: 'skuCode',
16848
+ dataIndex: 'specNo',
16849
+ type: 'optionalInput'
16553
16850
  }, {
16554
- sourceField: 'specNo',
16555
- requestField: 'skuCodes'
16556
- }],
16557
- WDT_ERP: [{
16558
- sourceField: 'goodNo',
16559
- requestField: 'goodNos'
16851
+ label: '商品名称',
16852
+ name: 'goodName'
16560
16853
  }, {
16561
- sourceField: 'skuCode',
16562
- requestField: 'skuCodes'
16563
- }],
16564
- GY_ERP: [{
16565
- sourceField: 'goodNo',
16566
- requestField: 'goodNos'
16567
- }],
16568
- JY_ERP: [{
16569
- sourceField: 'goodNo',
16570
- requestField: 'goodNos'
16854
+ label: '商品编码',
16855
+ name: 'goodNo',
16856
+ type: 'optionalInput'
16571
16857
  }, {
16572
- sourceField: 'skuCode',
16573
- requestField: 'skuCodes'
16574
- }],
16575
- KM_ERP: [{
16576
- sourceField: 'goodNo',
16577
- requestField: 'goodNos'
16858
+ label: '品牌',
16859
+ name: 'brandIds',
16860
+ dataIndex: 'brandName',
16861
+ type: 'select',
16862
+ formItemProps: {
16863
+ mode: 'multiple',
16864
+ filterOption: function filterOption(input, option) {
16865
+ return option.label.includes(input);
16866
+ },
16867
+ options: brandOptions
16868
+ }
16578
16869
  }, {
16579
- sourceField: 'skuCode',
16580
- requestField: 'skuCodes'
16581
- }]
16870
+ label: '是否组合装',
16871
+ name: 'skuType',
16872
+ dataIndex: 'skuType',
16873
+ type: 'select',
16874
+ formItemProps: {
16875
+ mode: 'multiple',
16876
+ filterOption: function filterOption(input, option) {
16877
+ return option.label.includes(input);
16878
+ },
16879
+ options: [{
16880
+ label: '组合装',
16881
+ value: 'suite'
16882
+ }, {
16883
+ label: '非组合装',
16884
+ value: ''
16885
+ }]
16886
+ }
16887
+ }, {
16888
+ label: '工单赠品标记',
16889
+ name: 'isSelfGift',
16890
+ type: 'select',
16891
+ formItemProps: {
16892
+ mode: 'multiple',
16893
+ options: [{
16894
+ label: '赠品',
16895
+ value: 1
16896
+ }, {
16897
+ label: '未标记',
16898
+ value: 0
16899
+ }]
16900
+ }
16901
+ }];
16582
16902
  };
16583
- var getSearchValue = function getSearchValue(value) {
16584
- var _value$inputValue;
16585
- var inputValue = (_value$inputValue = value === null || value === void 0 ? void 0 : value.inputValue) !== null && _value$inputValue !== void 0 ? _value$inputValue : value;
16586
- if (inputValue === undefined || inputValue === null) return '';
16587
- return String(inputValue).trim();
16903
+ var createBsE3SearchFormData = function createBsE3SearchFormData() {
16904
+ return [{
16905
+ label: '商品货号',
16906
+ name: 'goodNo',
16907
+ type: 'optionalInput'
16908
+ }, {
16909
+ label: '商品名称',
16910
+ name: 'goodName'
16911
+ }, {
16912
+ label: 'SKU',
16913
+ name: 'skuCode',
16914
+ dataIndex: 'specNo',
16915
+ type: 'optionalInput'
16916
+ }, {
16917
+ label: 'SKU ID',
16918
+ name: 'skuId',
16919
+ dataIndex: 'specId',
16920
+ type: 'optionalInput'
16921
+ }];
16588
16922
  };
16589
- var getSkuType = function getSkuType(platform, formData) {
16590
- if (platform !== 'JST_ERP' && platform !== 'WLN_ERP') return undefined;
16591
- var values = Array.isArray(formData.skuType) ? formData.skuType : [formData.skuType];
16592
- var skuTypes = values.filter(function (value) {
16593
- return value === 'normal' || value === 'combine';
16594
- });
16595
- return skuTypes.length === 1 ? skuTypes[0] : undefined;
16923
+ var createGySearchFormData = function createGySearchFormData() {
16924
+ return [{
16925
+ label: '商品简称',
16926
+ name: 'goodShortName'
16927
+ }, {
16928
+ label: '商品sku名称',
16929
+ name: 'skuName',
16930
+ dataIndex: 'specName'
16931
+ }, {
16932
+ label: '商品sku编码',
16933
+ name: 'skuCode',
16934
+ dataIndex: 'specNo',
16935
+ type: 'optionalInput'
16936
+ }, {
16937
+ label: '商品名称',
16938
+ name: 'goodName'
16939
+ }, {
16940
+ label: '商品编码',
16941
+ name: 'goodNo',
16942
+ type: 'optionalInput'
16943
+ }];
16596
16944
  };
16597
- var getReSyncActions = function getReSyncActions(platform, total, formData) {
16598
- if (total !== 0) return [];
16599
- var skuType = getSkuType(platform, formData);
16600
- var requestData = _objectSpread2({
16601
- platform: platform
16602
- }, skuType ? {
16603
- skuType: skuType
16604
- } : {});
16605
- var values = [];
16606
- ACTION_CONFIG[platform].forEach(function (config) {
16607
- var value = getSearchValue(formData[config.sourceField]);
16608
- if (!value) return;
16609
- requestData[config.requestField] = [value];
16610
- values.push(value);
16611
- });
16612
- if (!values.length) return [];
16945
+ var createJstSearchFormData = function createJstSearchFormData() {
16613
16946
  return [{
16614
- key: 'goods',
16615
- label: '同步商品',
16616
- targetName: '商品',
16617
- value: values.join('、'),
16618
- requestData: requestData
16947
+ label: '商品名称',
16948
+ name: 'goodName'
16949
+ }, {
16950
+ label: '商品编码',
16951
+ name: 'goodNo',
16952
+ type: 'optionalInput'
16953
+ }, {
16954
+ label: '款式编码',
16955
+ name: 'styleCode',
16956
+ type: 'optionalInput'
16957
+ }, {
16958
+ label: '规格值',
16959
+ name: 'propertiesValue',
16960
+ type: 'optionalInput'
16961
+ }, {
16962
+ label: '商品类型',
16963
+ name: 'skuType',
16964
+ type: 'select',
16965
+ formItemProps: {
16966
+ options: [{
16967
+ label: '普通商品',
16968
+ value: 'normal'
16969
+ }, {
16970
+ label: '组合装商品',
16971
+ value: 'combine'
16972
+ }]
16973
+ }
16619
16974
  }];
16620
16975
  };
16621
-
16622
- var useGoodsReSyncQuery = function useGoodsReSyncQuery(service) {
16623
- var _React$useState = React.useState({
16624
- total: null,
16625
- formData: {}
16626
- }),
16627
- _React$useState2 = _slicedToArray(_React$useState, 2),
16628
- queryState = _React$useState2[0],
16629
- setQueryState = _React$useState2[1];
16630
- var serviceWithReSyncState = React.useCallback(function (pagination, formData) {
16631
- var currentFormData = formData;
16632
- setQueryState({
16633
- total: null,
16634
- formData: currentFormData
16635
- });
16636
- return service(pagination, formData).then(function (result) {
16637
- setQueryState({
16638
- total: result.total,
16639
- formData: currentFormData
16640
- });
16641
- return result;
16642
- }, function (error) {
16643
- setQueryState({
16644
- total: null,
16645
- formData: currentFormData
16646
- });
16647
- throw error;
16648
- });
16649
- }, [service]);
16650
- return [serviceWithReSyncState, queryState];
16976
+ var createKmSearchFormData = function createKmSearchFormData() {
16977
+ return [{
16978
+ label: '商品名称',
16979
+ name: 'goodName'
16980
+ }, {
16981
+ label: '商品编码',
16982
+ name: 'goodNo',
16983
+ type: 'optionalInput'
16984
+ }, {
16985
+ label: 'SKU名称',
16986
+ name: 'skuName',
16987
+ dataIndex: 'specName'
16988
+ }, {
16989
+ label: 'SKU编码',
16990
+ name: 'skuCode',
16991
+ dataIndex: 'specNo',
16992
+ type: 'optionalInput'
16993
+ }];
16651
16994
  };
16652
- var getErrorMessage = function getErrorMessage(error, action) {
16653
- var _error$data;
16654
- return (error === null || error === void 0 ? void 0 : (_error$data = error.data) === null || _error$data === void 0 ? void 0 : _error$data.message) || (error === null || error === void 0 ? void 0 : error.message) || "".concat(action.label, "\u5931\u8D25");
16995
+ var createJySearchFormData = function createJySearchFormData() {
16996
+ return [{
16997
+ label: '规格名称',
16998
+ name: 'skuName',
16999
+ dataIndex: 'specName'
17000
+ }, {
17001
+ label: '规格编码',
17002
+ name: 'skuCode',
17003
+ dataIndex: 'specNo',
17004
+ type: 'optionalInput'
17005
+ }, {
17006
+ label: '商品名称',
17007
+ name: 'goodName'
17008
+ }, {
17009
+ label: '商品编码',
17010
+ name: 'goodNo',
17011
+ type: 'optionalInput'
17012
+ }, {
17013
+ label: '巨益赠品标记',
17014
+ name: 'isGift',
17015
+ type: 'select',
17016
+ formItemProps: {
17017
+ mode: 'multiple',
17018
+ options: [{
17019
+ label: '是',
17020
+ value: 1
17021
+ }, {
17022
+ label: '否',
17023
+ value: 0
17024
+ }]
17025
+ }
17026
+ }, {
17027
+ label: '工单赠品标记',
17028
+ name: 'isSelfGift',
17029
+ type: 'select',
17030
+ formItemProps: {
17031
+ mode: 'multiple',
17032
+ options: [{
17033
+ label: '赠品',
17034
+ value: 1
17035
+ }, {
17036
+ label: '未标记',
17037
+ value: 0
17038
+ }]
17039
+ }
17040
+ }];
16655
17041
  };
16656
- var GoodsReSync = function GoodsReSync(_ref) {
16657
- var platform = _ref.platform,
16658
- queryState = _ref.queryState,
16659
- onSuccess = _ref.onSuccess;
16660
- var _React$useState3 = React.useState(null),
16661
- _React$useState4 = _slicedToArray(_React$useState3, 2),
16662
- loadingAction = _React$useState4[0],
16663
- setLoadingAction = _React$useState4[1];
16664
- var actions = getReSyncActions(platform, queryState.total, queryState.formData);
16665
- var handleReSync = function handleReSync(action) {
16666
- Modal.confirm({
16667
- title: "\u786E\u8BA4".concat(action.label),
16668
- content: "\u5C06\u4ECE ERP \u91CD\u65B0\u62C9\u53D6".concat(action.targetName, "\u201C").concat(action.value, "\u201D\u5E76\u8986\u76D6\u672C\u5730\u6570\u636E"),
16669
- okText: '确认同步',
16670
- cancelText: '取消',
16671
- onOk: function () {
16672
- var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16673
- var response;
16674
- return _regeneratorRuntime().wrap(function _callee$(_context) {
16675
- while (1) switch (_context.prev = _context.next) {
16676
- case 0:
16677
- setLoadingAction(action.key);
16678
- _context.prev = 1;
16679
- _context.next = 4;
16680
- return extendRequest('/qy/gdfw/product/reSync', {
16681
- method: 'post',
16682
- timeout: 60000,
16683
- data: action.requestData
16684
- });
16685
- case 4:
16686
- response = _context.sent;
16687
- if (!((response === null || response === void 0 ? void 0 : response.success) === false)) {
16688
- _context.next = 7;
16689
- break;
16690
- }
16691
- throw new Error(response.message || "".concat(action.label, "\u5931\u8D25"));
16692
- case 7:
16693
- message.success((response === null || response === void 0 ? void 0 : response.message) || "".concat(action.label, "\u6210\u529F"));
16694
- _context.next = 10;
16695
- return onSuccess();
16696
- case 10:
16697
- _context.next = 16;
16698
- break;
16699
- case 12:
16700
- _context.prev = 12;
16701
- _context.t0 = _context["catch"](1);
16702
- message.error(getErrorMessage(_context.t0, action));
16703
- throw _context.t0;
16704
- case 16:
16705
- _context.prev = 16;
16706
- setLoadingAction(null);
16707
- return _context.finish(16);
16708
- case 19:
16709
- case "end":
16710
- return _context.stop();
17042
+ var createWlnSearchFormData = function createWlnSearchFormData() {
17043
+ return [{
17044
+ label: '规格值',
17045
+ name: 'propertiesValue'
17046
+ }, {
17047
+ label: 'SKU编码',
17048
+ name: 'specNo',
17049
+ type: 'optionalInput'
17050
+ }, {
17051
+ label: '商品名称',
17052
+ name: 'goodName'
17053
+ }, {
17054
+ label: '商品编码',
17055
+ name: 'goodNo',
17056
+ type: 'optionalInput'
17057
+ }, {
17058
+ label: '是否组合装',
17059
+ name: 'skuType',
17060
+ type: 'select',
17061
+ formItemProps: {
17062
+ mode: 'multiple',
17063
+ filterOption: function filterOption(input, option) {
17064
+ return option.label.includes(input);
17065
+ },
17066
+ options: [{
17067
+ label: '普通商品',
17068
+ value: 'normal'
17069
+ }, {
17070
+ label: '组合装商品',
17071
+ value: 'combine'
17072
+ }]
17073
+ }
17074
+ }];
17075
+ };
17076
+ var createJkySearchFormData = function createJkySearchFormData() {
17077
+ return [{
17078
+ label: '规格名称',
17079
+ name: 'skuName',
17080
+ dataIndex: 'specName'
17081
+ }, {
17082
+ label: '规格编码',
17083
+ name: 'skuCode',
17084
+ dataIndex: 'specNo',
17085
+ type: 'optionalInput'
17086
+ }, {
17087
+ label: '货品名称',
17088
+ name: 'goodName'
17089
+ }, {
17090
+ label: '货品编码',
17091
+ name: 'goodNo',
17092
+ type: 'optionalInput'
17093
+ }];
17094
+ };
17095
+
17096
+ var WDT_BRAND_PAGE_SIZE = 100;
17097
+ var loadWdtBrandOptions = /*#__PURE__*/function () {
17098
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
17099
+ var options, pageNo, hasNextPage, _response$data, response, detailList;
17100
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
17101
+ while (1) switch (_context.prev = _context.next) {
17102
+ case 0:
17103
+ options = [];
17104
+ pageNo = 0;
17105
+ hasNextPage = true;
17106
+ case 3:
17107
+ if (!hasNextPage) {
17108
+ _context.next = 15;
17109
+ break;
17110
+ }
17111
+ _context.next = 6;
17112
+ return extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
17113
+ method: 'post',
17114
+ data: {
17115
+ pageSize: WDT_BRAND_PAGE_SIZE,
17116
+ pageNo: pageNo
16711
17117
  }
16712
- }, _callee, null, [[1, 12, 16, 19]]);
16713
- }));
16714
- function onOk() {
16715
- return _onOk.apply(this, arguments);
16716
- }
16717
- return onOk;
16718
- }()
17118
+ });
17119
+ case 6:
17120
+ response = _context.sent;
17121
+ if (!((response === null || response === void 0 ? void 0 : response.success) !== true)) {
17122
+ _context.next = 9;
17123
+ break;
17124
+ }
17125
+ throw new Error('Failed to load WDT brand options');
17126
+ case 9:
17127
+ detailList = (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.detailList) || [];
17128
+ options.push.apply(options, _toConsumableArray(detailList.filter(function (item) {
17129
+ return !item.isDisabled;
17130
+ }).map(function (item) {
17131
+ return {
17132
+ value: item.brandId,
17133
+ label: item.brandName
17134
+ };
17135
+ })));
17136
+ hasNextPage = detailList.length >= WDT_BRAND_PAGE_SIZE;
17137
+ pageNo += 1;
17138
+ _context.next = 3;
17139
+ break;
17140
+ case 15:
17141
+ return _context.abrupt("return", {
17142
+ brandIds: options
17143
+ });
17144
+ case 16:
17145
+ case "end":
17146
+ return _context.stop();
17147
+ }
17148
+ }, _callee);
17149
+ }));
17150
+ return function loadWdtBrandOptions() {
17151
+ return _ref.apply(this, arguments);
17152
+ };
17153
+ }();
17154
+
17155
+ var GOODS_SEARCH_FORM_CONFIG = {
17156
+ wdt: {
17157
+ createSearchFormData: function createSearchFormData(options) {
17158
+ return createWdtSearchFormData(options.brandIds || []);
17159
+ },
17160
+ loadOptions: [loadWdtBrandOptions]
17161
+ },
17162
+ bse3: {
17163
+ createSearchFormData: function createSearchFormData() {
17164
+ return createBsE3SearchFormData();
17165
+ },
17166
+ loadOptions: []
17167
+ },
17168
+ gy: {
17169
+ createSearchFormData: function createSearchFormData() {
17170
+ return createGySearchFormData();
17171
+ },
17172
+ loadOptions: []
17173
+ },
17174
+ jst: {
17175
+ createSearchFormData: function createSearchFormData() {
17176
+ return createJstSearchFormData();
17177
+ },
17178
+ loadOptions: []
17179
+ },
17180
+ km: {
17181
+ createSearchFormData: function createSearchFormData() {
17182
+ return createKmSearchFormData();
17183
+ },
17184
+ loadOptions: []
17185
+ },
17186
+ jy: {
17187
+ createSearchFormData: function createSearchFormData() {
17188
+ return createJySearchFormData();
17189
+ },
17190
+ loadOptions: []
17191
+ },
17192
+ wln: {
17193
+ createSearchFormData: function createSearchFormData() {
17194
+ return createWlnSearchFormData();
17195
+ },
17196
+ loadOptions: []
17197
+ },
17198
+ jky: {
17199
+ createSearchFormData: function createSearchFormData() {
17200
+ return createJkySearchFormData();
17201
+ },
17202
+ loadOptions: []
17203
+ }
17204
+ };
17205
+
17206
+ var _excluded$e = ["type", "searchFormData", "loadOptions"];
17207
+ var EMPTY_LOADERS = [];
17208
+ var mergeOptionMaps = function mergeOptionMaps(optionMaps) {
17209
+ return optionMaps.reduce(function (merged, optionMap) {
17210
+ return _objectSpread2(_objectSpread2({}, merged), optionMap);
17211
+ }, {});
17212
+ };
17213
+ var GoodsSearchForm = function GoodsSearchForm(_ref) {
17214
+ var type = _ref.type,
17215
+ customSearchFormData = _ref.searchFormData,
17216
+ _ref$loadOptions = _ref.loadOptions,
17217
+ loadOptions = _ref$loadOptions === void 0 ? EMPTY_LOADERS : _ref$loadOptions,
17218
+ searchFormProps = _objectWithoutProperties(_ref, _excluded$e);
17219
+ var config = GOODS_SEARCH_FORM_CONFIG[type];
17220
+ var _useState = useState({}),
17221
+ _useState2 = _slicedToArray(_useState, 2),
17222
+ optionMap = _useState2[0],
17223
+ setOptionMap = _useState2[1];
17224
+ var loaders = useMemo(function () {
17225
+ return loadOptions === EMPTY_LOADERS ? config.loadOptions : loadOptions;
17226
+ }, [config, loadOptions]);
17227
+ useEffect(function () {
17228
+ var disposed = false;
17229
+ if (!loaders.length) return undefined;
17230
+ setOptionMap({});
17231
+ Promise.allSettled(loaders.map(function (loader) {
17232
+ return loader();
17233
+ })).then(function (results) {
17234
+ if (disposed) return;
17235
+ setOptionMap(mergeOptionMaps(results.filter(function (result) {
17236
+ return result.status === 'fulfilled';
17237
+ }).map(function (result) {
17238
+ return result.value;
17239
+ })));
17240
+ });
17241
+ return function () {
17242
+ disposed = true;
17243
+ };
17244
+ }, [loaders]);
17245
+ var applyOptions = function applyOptions(data) {
17246
+ return data.map(function (item) {
17247
+ var options = optionMap[item.name];
17248
+ if (!options) return item;
17249
+ return _objectSpread2(_objectSpread2({}, item), {}, {
17250
+ formItemProps: _objectSpread2(_objectSpread2({}, item.formItemProps || {}), {}, {
17251
+ options: options
17252
+ })
17253
+ });
16719
17254
  });
16720
17255
  };
16721
- return /*#__PURE__*/React.createElement(Empty, {
16722
- image: Empty.PRESENTED_IMAGE_SIMPLE,
16723
- description: actions.length ? /*#__PURE__*/React.createElement(Space, {
16724
- size: 8
16725
- }, actions.map(function (action) {
16726
- return /*#__PURE__*/React.createElement(Button, {
16727
- key: action.key,
16728
- loading: loadingAction === action.key,
16729
- disabled: loadingAction !== null && loadingAction !== action.key,
16730
- onClick: function onClick() {
16731
- return handleReSync(action);
16732
- }
16733
- }, action.label);
16734
- })) : '暂无数据'
16735
- });
17256
+ var searchFormData = useMemo(function () {
17257
+ return applyOptions(customSearchFormData || config.createSearchFormData(optionMap));
17258
+ }, [config, customSearchFormData, optionMap]);
17259
+ return /*#__PURE__*/React.createElement(SearchForm, _objectSpread2(_objectSpread2({}, searchFormProps), {}, {
17260
+ searchFormData: searchFormData
17261
+ }));
16736
17262
  };
16737
17263
 
16738
17264
  var getTableData = function getTableData(_ref, formData) {
@@ -16773,10 +17299,6 @@ var GoodList = function GoodList(props, ref) {
16773
17299
  _useState4 = _slicedToArray(_useState3, 2),
16774
17300
  selectIds = _useState4[0],
16775
17301
  setSelectIds = _useState4[1];
16776
- var _useState5 = useState([]),
16777
- _useState6 = _slicedToArray(_useState5, 2),
16778
- brandList = _useState6[0],
16779
- setBrandList = _useState6[1];
16780
17302
  var _useGetColumns = useGetColumns('wdt'),
16781
17303
  _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
16782
17304
  columns = _useGetColumns2[0],
@@ -16804,94 +17326,6 @@ var GoodList = function GoodList(props, ref) {
16804
17326
  search = _useAntdTable.search;
16805
17327
  var submit = search.submit,
16806
17328
  reset = search.reset;
16807
- var setGoodBrandList = function setGoodBrandList() {
16808
- var list = [];
16809
- var pageNo = 0;
16810
- var pageSize = 100;
16811
- var getMore = function getMore() {
16812
- extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
16813
- method: 'post',
16814
- data: {
16815
- pageSize: pageSize,
16816
- pageNo: pageNo
16817
- }
16818
- }).then(function (res) {
16819
- var _res$data2;
16820
- if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
16821
- var _res$data3, _res$data4;
16822
- list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
16823
- if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
16824
- pageNo += 1;
16825
- getMore();
16826
- } else {
16827
- setBrandList(list);
16828
- }
16829
- } else {
16830
- reject$1(res);
16831
- }
16832
- }).catch(function () {});
16833
- };
16834
- getMore();
16835
- };
16836
- React.useEffect(function () {
16837
- setGoodBrandList();
16838
- }, []);
16839
- var searchFormData = [{
16840
- label: 'SKU名称',
16841
- name: 'skuName',
16842
- dataIndex: 'specName'
16843
- }, {
16844
- label: 'SKU编码',
16845
- name: 'skuCode',
16846
- dataIndex: 'specNo',
16847
- type: 'optionalInput'
16848
- }, {
16849
- label: '商品名称',
16850
- name: 'goodName'
16851
- }, {
16852
- label: '商品编码',
16853
- name: 'goodNo',
16854
- type: 'optionalInput'
16855
- }, {
16856
- label: '品牌',
16857
- name: 'brandIds',
16858
- dataIndex: 'brandName',
16859
- type: 'select',
16860
- formItemProps: {
16861
- mode: 'multiple',
16862
- filterOption: function filterOption(input, option) {
16863
- return option.label.includes(input);
16864
- },
16865
- options: brandList.filter(function (item) {
16866
- return !item.isDisabled;
16867
- }).map(function (_ref2) {
16868
- var value = _ref2.brandId,
16869
- label = _ref2.brandName;
16870
- return {
16871
- value: value,
16872
- label: label
16873
- };
16874
- })
16875
- }
16876
- }, {
16877
- label: '是否组合装',
16878
- name: 'skuType',
16879
- dataIndex: 'skuType',
16880
- type: 'select',
16881
- formItemProps: {
16882
- mode: 'multiple',
16883
- filterOption: function filterOption(input, option) {
16884
- return option.label.includes(input);
16885
- },
16886
- options: [{
16887
- label: '组合装',
16888
- value: 'suite'
16889
- }, {
16890
- label: '非组合装',
16891
- value: ''
16892
- }]
16893
- }
16894
- }];
16895
17329
  var rowSelection = {
16896
17330
  selectedRowKeys: selectIds,
16897
17331
  fixed: true,
@@ -16972,8 +17406,8 @@ var GoodList = function GoodList(props, ref) {
16972
17406
  return /*#__PURE__*/React.createElement(Skeleton, {
16973
17407
  active: true,
16974
17408
  loading: loading
16975
- }, /*#__PURE__*/React.createElement(SearchForm, {
16976
- searchFormData: searchFormData,
17409
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
17410
+ type: "wdt",
16977
17411
  form: form,
16978
17412
  showColumnsDataIndexList: showColumnsDataIndexList,
16979
17413
  submit: submit,
@@ -17090,35 +17524,6 @@ var getTableData$1 = function getTableData(_ref, formData) {
17090
17524
  };
17091
17525
  });
17092
17526
  };
17093
- var searchFormData = [{
17094
- label: '商品名称',
17095
- name: 'goodName'
17096
- }, {
17097
- label: '商品编码',
17098
- name: 'goodNo',
17099
- type: 'optionalInput'
17100
- }, {
17101
- label: '款式编码',
17102
- name: 'styleCode',
17103
- type: 'optionalInput'
17104
- }, {
17105
- label: '规格值',
17106
- name: 'propertiesValue',
17107
- type: 'optionalInput'
17108
- }, {
17109
- label: '商品类型',
17110
- name: 'skuType',
17111
- type: 'select',
17112
- formItemProps: {
17113
- options: [{
17114
- label: '普通商品',
17115
- value: 'normal'
17116
- }, {
17117
- label: '组合装商品',
17118
- value: 'combine'
17119
- }]
17120
- }
17121
- }];
17122
17527
  var GoodList$1 = function GoodList(props, ref) {
17123
17528
  var _useState = useState([]),
17124
17529
  _useState2 = _slicedToArray(_useState, 2),
@@ -17244,8 +17649,8 @@ var GoodList$1 = function GoodList(props, ref) {
17244
17649
  return /*#__PURE__*/React.createElement(Skeleton, {
17245
17650
  active: true,
17246
17651
  loading: loading
17247
- }, /*#__PURE__*/React.createElement(SearchForm, {
17248
- searchFormData: searchFormData,
17652
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
17653
+ type: "jst",
17249
17654
  form: form,
17250
17655
  showColumnsDataIndexList: showColumnsDataIndexList,
17251
17656
  submit: submit,
@@ -17362,24 +17767,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
17362
17767
  };
17363
17768
  });
17364
17769
  };
17365
- var searchFormData$1 = [{
17366
- label: '商品货号',
17367
- name: 'goodNo',
17368
- type: 'optionalInput'
17369
- }, {
17370
- label: '商品名称',
17371
- name: 'goodName'
17372
- }, {
17373
- label: 'SKU',
17374
- name: 'skuCode',
17375
- dataIndex: 'specNo',
17376
- type: 'optionalInput'
17377
- }, {
17378
- label: 'SKU ID',
17379
- name: 'skuId',
17380
- dataIndex: 'specId',
17381
- type: 'optionalInput'
17382
- }];
17383
17770
  var GoodList$2 = function GoodList(props, ref) {
17384
17771
  var _useState = useState([]),
17385
17772
  _useState2 = _slicedToArray(_useState, 2),
@@ -17493,8 +17880,8 @@ var GoodList$2 = function GoodList(props, ref) {
17493
17880
  return /*#__PURE__*/React.createElement(Skeleton, {
17494
17881
  active: true,
17495
17882
  loading: loading
17496
- }, /*#__PURE__*/React.createElement(SearchForm, {
17497
- searchFormData: searchFormData$1,
17883
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
17884
+ type: "bse3",
17498
17885
  form: form,
17499
17886
  showColumnsDataIndexList: showColumnsDataIndexList,
17500
17887
  submit: submit,
@@ -17604,23 +17991,6 @@ var getTableData$3 = function getTableData(_ref, formData) {
17604
17991
  };
17605
17992
  });
17606
17993
  };
17607
- var searchFormData$2 = [{
17608
- label: '商品名称',
17609
- name: 'goodName'
17610
- }, {
17611
- label: '商品编码',
17612
- name: 'goodNo',
17613
- type: 'optionalInput'
17614
- }, {
17615
- label: 'SKU名称',
17616
- name: 'skuName',
17617
- dataIndex: 'specName'
17618
- }, {
17619
- label: 'SKU编码',
17620
- name: 'skuCode',
17621
- dataIndex: 'specNo',
17622
- type: 'optionalInput'
17623
- }];
17624
17994
  var GoodList$3 = function GoodList(props, ref) {
17625
17995
  var _useState = useState([]),
17626
17996
  _useState2 = _slicedToArray(_useState, 2),
@@ -17746,8 +18116,8 @@ var GoodList$3 = function GoodList(props, ref) {
17746
18116
  return /*#__PURE__*/React.createElement(Skeleton, {
17747
18117
  active: true,
17748
18118
  loading: loading
17749
- }, /*#__PURE__*/React.createElement(SearchForm, {
17750
- searchFormData: searchFormData$2,
18119
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
18120
+ type: "km",
17751
18121
  form: form,
17752
18122
  showColumnsDataIndexList: showColumnsDataIndexList,
17753
18123
  submit: submit,
@@ -17862,26 +18232,6 @@ var getTableData$4 = function getTableData(_ref, formData) {
17862
18232
  };
17863
18233
  });
17864
18234
  };
17865
- var searchFormData$3 = [{
17866
- label: '商品简称',
17867
- name: 'goodShortName'
17868
- }, {
17869
- label: '商品sku名称',
17870
- name: 'skuName',
17871
- dataIndex: 'specName'
17872
- }, {
17873
- label: '商品sku编码',
17874
- name: 'skuCode',
17875
- dataIndex: 'specNo',
17876
- type: 'optionalInput'
17877
- }, {
17878
- label: '商品名称',
17879
- name: 'goodName'
17880
- }, {
17881
- label: '商品编码',
17882
- name: 'goodNo',
17883
- type: 'optionalInput'
17884
- }];
17885
18235
  var GoodList$4 = function GoodList(props, ref) {
17886
18236
  var _useState = useState([]),
17887
18237
  _useState2 = _slicedToArray(_useState, 2),
@@ -17998,8 +18348,8 @@ var GoodList$4 = function GoodList(props, ref) {
17998
18348
  return /*#__PURE__*/React.createElement(Skeleton, {
17999
18349
  active: true,
18000
18350
  loading: loading
18001
- }, /*#__PURE__*/React.createElement(SearchForm, {
18002
- searchFormData: searchFormData$3,
18351
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
18352
+ type: "gy",
18003
18353
  form: form,
18004
18354
  showColumnsDataIndexList: showColumnsDataIndexList,
18005
18355
  submit: submit,
@@ -18241,11 +18591,11 @@ function multiSelect() {
18241
18591
  var css_248z$d = ".high-performance-table .lock-left {\n background: #FFF !important;\n}\n.high-performance-table .art-empty-wrapper {\n margin-top: 24px;\n}\n.high-performance-table .cell-content {\n height: 48px;\n display: flex;\n align-items: center;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 8px 12px;\n}\n";
18242
18592
  styleInject(css_248z$d);
18243
18593
 
18244
- var _excluded$e = ["children"];
18594
+ var _excluded$f = ["children"];
18245
18595
  var Cell = function Cell(_ref) {
18246
18596
  var tdProps = _ref.tdProps;
18247
18597
  var children = tdProps.children,
18248
- otherProps = _objectWithoutProperties(tdProps, _excluded$e);
18598
+ otherProps = _objectWithoutProperties(tdProps, _excluded$f);
18249
18599
  return /*#__PURE__*/React.createElement("td", _objectSpread2({}, otherProps), /*#__PURE__*/React.createElement("div", {
18250
18600
  className: "cell-content"
18251
18601
  }, children));
@@ -18397,7 +18747,7 @@ var reject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbS
18397
18747
 
18398
18748
  var reminder = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAjiSURBVHic7Z07bBvHFob/2eUy4sq+vjZZCLCUziJsOIDUCUphwCHcBBTUBKpcEFTltE5hA2mTAEkbFwEFBlCTRyNYXSAYcCFGnQVcwcHKJWVACMjr64dWEsnduUVIQQ+KO/uY3eXqfJUgDQ+P8HPOnDlzdsjgkmapdKujqncYcBec34CiXAfnVwGobm0RA7HA2BvY9msw9ooDz1KW9Txbrb50Y4SJDNq9f3+Uado8U9UH4HwGgOLJZcIvNhjb4Jb1hLfbK2PLy3tOL3AUeLdcLjLgG8bY7WB8JIKAc77FgcdjS0urg8adK3C9XL6WZuxbBiyCZmxcsTlQaXH+aGJp6b/9BvQVeGdxcTwN/A5gRqp7RFBstIAvxiuVndN/OCNwV9w/ANwMxTUiKP5qAfdOi3wi9NbL5WvdmUviDh8308Dv9XL52vFfnhA4zdi3oLA8zMx0NTziKETvlstFhbEVUEI17Ng25/O97JoB3X1uOr1BW6FkwDnf4q3WzNjy8p4CAEzT5knc5MAYu800bR7ohmOmqg+idYkImp6mrFkq3bJU9T+gtTdp2KplfaJ0VPUOSNwkonRU9Y7CgLtRe0LIgQF3FXB+I2pHCElwfkOBolyP2g9CEopyXeke1hNJhPOrCqgTI8molD0nnFTUDsQJJZsVGmc3m5I9CY5YCTw6NwdtchLt7W0cvniBTr0e6vtfffgQSi43cEx7exv/+/77kDzyT6wETk9NITUxAS2fh14sgpsmDmo1HG5uolOvg5tm1C4OHbERWMlmkZqYOPE7puvIFArIFArgpolOvY6DWg0HtVpEXg4fsRH4o+npgX9nug4tnz8RtpmuQzv1oTiN3f1ghE06n3ccYzUasCSv5/EReGpKaNzh5ubRzyyTwZWHDweOj2rNdPILAMzVVew9fSrVj1hsk3qz0wlummgbRggeJYdYCKwXCkLjaO11TywE1iYnhcYdD8+EGJELrOXzFJ4lErnAoskVhWdvRCow03WMzM4KjaXw7I1IBR6ZnQXTdcdxbcOg8OyRSAX2svcl3BGZwG6SK1p/vRNZJWu0WBQad1Cr+T5kED0GjMqeTCIRWM1mhWYv4D88a5OTyH73nS8bMu3JJpIQrc/NCY3r1OuUXPkkdIGZrgsnV1GcAiWN0AUeLRaFtkZEMIQqsJrNIiN4sEAEQ6gCi669RHCEJrCWzwuXJYngCE1g0X0vESyh7INFq1Zu4fv7MFcHXvQWKCyTOfo/WgGUT1shbAGlC8x0Hf8qlaTY5qZ51NPEdB3Xvv4anZ0dtAwjkAoY8E/zXHpqCqmPPz5qTLCbTRysr0tvmAsC6QLrhUIopb3UxASUXA7pXA7pqSlcWliA3WjgcHPTVV+1ms0iPT2Nj6anz+00Ubq7gQ+//hr0vxE4UgVOTUxAD2nt7Vc8UXK5E33VbcPA2ydPHG1dWlhwHJMpFLC/thb7WSw1ybosKTT3wylDZ7qOzs6ZqxzPYDWbwqdXw7Dtkybw6NzcmScVZKHl80LVMdGkxhTsVR6ZnYUa85MlKQKHGZoBscYBu9EQPriwmk20t7eFxo58+qnQuKgIXGCm67jy5ZdBmx34fiIFlIM//3Rl92B9XWhc3Is3gSdZVx48CPVAPC0Ynq1Gw5VfLcMAN01H272M+vDFC2Hbp+H7+9KenAxU4LSkgsYgMp99JjROZsJ3aWFBKPM+j7c//CCt6BFoiG4ZRqhnuL1niYnzCXwN3gtx8x/39S8OBC5wyzAcM1Bumr7XHDdN8xcZKdskp33k+59/9i2wXihQZ4gAUgRuGca5N9Hsr635yjiB7tUOgsnVRUdaJavfk+t2s4m9AI73aPaKI+2w4aBWw+jc3Im957tq1XdoVrNZV7OXm6ZQDbofqfFxxw+SH/s9bIm3B0k9TWoZxlEiZK6uBtLjrM/NuZq93DQ939FxuVRyTOT82A8DqadJvWSrbRiBXDZCfV3ukTqDrWYTh7Ua3gewN5bZGZJkpHd0vKtWA7EzWix6rnF7fp3gUuCn9i773svY3JM1CC2f99wwr+RyUh8W82M/jDu8Ir+jwwk1m6XQ7IPYC3y5VBqq53HjRuwFVh2u9yUGE3uB3weUpF1UYi9wr4md8MZQZNHm06e+Chx2o+HpdUzXhapmXu1bHl/nhqEQuNer7EVku9FA89EjT+8rUqr0Yz8MYh+ie/Q7Y6YrHpwZGoFPP3FgN5uUgAkwNAIDwOExgd9Vq1KP2ZLCUKzBPXqdIge1GtqGIVQAUXI5/Purrzy9n8hjKX7sd+p1fPjlF0+vFWWoBAaAtz/+6HrtFb1w3Cuy7fthqEI0QImVW4ZOYMIdJHDCIYETDgmccIYui3YLN03Pl6WMzM46Ptzmx34Y93tcCIG9nkZp+Tw0ifbDgEJ0wiGBE07iQzTTdYx6vO5I5JYgP/ZPY66tBX6Vw4UQWOaNP0Ha319fD1xgCtEJhwROOCRwwiGBEw4JnHBI4IRDAiecxO+D4963LBuawQmHBE44kYXoD7/9BpbJDBzjdF4q8rU6F713mv29uMijdoKQB4XohKMAsKJ2gpCGpYCxN1F7QUiCsTcKbPt11H4QkrDt1woYexW1H4QkGHulcOBZ1H4QcuDAMyVlWc8B2FE7QwSOnbKs50q2Wn0Jxjai9oYIGMY2stXqSwUAuGU5fyUnMVT0NP1H4HZ7hXO+Fa1LRFBwzrd4u70CdAUeW17e48Bj0FqcBGwOPB5bXt4DjpUqx5aWVjlQic4vIgg4UBlbWjo6gTlRi25x/ggAJVzDy0ZXwyPY6RE7i4vjaeAPADdDc4sIgr9awL3xSuXEV8CcOU0ar1R2WsA90EweJjb6iQucc1w4XqnsHHL+OQd+AiVeccbmwE+HnH/eT1ygT4g+zW65XGTAN4yx28H7R3iFc77FgcfHE6p+OAoMALv3748yTZtnqvoAnM+AGgWiwgZjG9yynvB2e6W3FRqEkMDHaZZKtzqqeocBd8H5DSjKdXB+FYDqyWXiPCww9ga2/RqMveLAs5RlPc9Wqy/dGPk/lTM43UA4NxYAAAAASUVORK5CYII=";
18399
18749
 
18400
- var _excluded$f = ["mode", "maxSelectCount", "showOnly", "getOptionsAsync", "onChange"];
18750
+ var _excluded$g = ["mode", "maxSelectCount", "showOnly", "getOptionsAsync", "onChange"];
18401
18751
  var AsyncSelect = function AsyncSelect(props) {
18402
18752
  var mode = props.mode,
18403
18753
  maxSelectCount = props.maxSelectCount,
@@ -18405,7 +18755,7 @@ var AsyncSelect = function AsyncSelect(props) {
18405
18755
  showOnly = _props$showOnly === void 0 ? false : _props$showOnly,
18406
18756
  getOptionsAsync = props.getOptionsAsync,
18407
18757
  _onChange = props.onChange,
18408
- otherProps = _objectWithoutProperties(props, _excluded$f);
18758
+ otherProps = _objectWithoutProperties(props, _excluded$g);
18409
18759
  var _React$useState = React.useState([]),
18410
18760
  _React$useState2 = _slicedToArray(_React$useState, 2),
18411
18761
  data = _React$useState2[0],
@@ -18455,7 +18805,7 @@ var AsyncSelect = function AsyncSelect(props) {
18455
18805
  }));
18456
18806
  };
18457
18807
 
18458
- var _excluded$g = ["filterComponentType", "searchDefaultConditions", "props", "ShopList"];
18808
+ var _excluded$h = ["filterComponentType", "searchDefaultConditions", "props", "ShopList"];
18459
18809
  var RangePicker = DatePicker.RangePicker;
18460
18810
  var _SelectInput = function SelectInput(props) {
18461
18811
  var _props$value = props.value,
@@ -18670,7 +19020,7 @@ var FilterSelectOption = function FilterSelectOption(props) {
18670
19020
  searchDefaultConditions = props.searchDefaultConditions,
18671
19021
  componentProps = props.props,
18672
19022
  ShopList = props.ShopList,
18673
- otherProps = _objectWithoutProperties(props, _excluded$g);
19023
+ otherProps = _objectWithoutProperties(props, _excluded$h);
18674
19024
  var handleChange = function handleChange() {
18675
19025
  var _props$onChange, _props$onSubmit;
18676
19026
  for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -19552,38 +19902,6 @@ var getTableData$5 = function getTableData(_ref, formData) {
19552
19902
  };
19553
19903
  });
19554
19904
  };
19555
- var searchFormData$4 = [{
19556
- label: '规格值',
19557
- name: 'propertiesValue'
19558
- }, {
19559
- label: 'SKU编码',
19560
- name: 'specNo',
19561
- type: 'optionalInput'
19562
- }, {
19563
- label: '商品名称',
19564
- name: 'goodName'
19565
- }, {
19566
- label: '商品编码',
19567
- name: 'goodNo',
19568
- type: 'optionalInput'
19569
- }, {
19570
- label: '是否组合装',
19571
- name: 'skuType',
19572
- type: 'select',
19573
- formItemProps: {
19574
- mode: 'multiple',
19575
- filterOption: function filterOption(input, option) {
19576
- return option.label.includes(input);
19577
- },
19578
- options: [{
19579
- label: '普通商品',
19580
- value: 'normal'
19581
- }, {
19582
- label: '组合装商品',
19583
- value: 'combine'
19584
- }]
19585
- }
19586
- }];
19587
19905
  var GoodList$5 = function GoodList(props, ref) {
19588
19906
  var _useState = useState([]),
19589
19907
  _useState2 = _slicedToArray(_useState, 2),
@@ -19709,8 +20027,8 @@ var GoodList$5 = function GoodList(props, ref) {
19709
20027
  return /*#__PURE__*/React.createElement(Skeleton, {
19710
20028
  active: true,
19711
20029
  loading: loading
19712
- }, /*#__PURE__*/React.createElement(SearchForm, {
19713
- searchFormData: searchFormData$4,
20030
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
20031
+ type: "wln",
19714
20032
  form: form,
19715
20033
  showColumnsDataIndexList: showColumnsDataIndexList,
19716
20034
  submit: submit,
@@ -19825,23 +20143,6 @@ var getTableData$6 = function getTableData(_ref, formData) {
19825
20143
  };
19826
20144
  });
19827
20145
  };
19828
- var searchFormData$5 = [{
19829
- label: '规格名称',
19830
- name: 'skuName',
19831
- dataIndex: 'specName'
19832
- }, {
19833
- label: '规格编码',
19834
- name: 'skuCode',
19835
- dataIndex: 'specNo',
19836
- type: 'optionalInput'
19837
- }, {
19838
- label: '商品名称',
19839
- name: 'goodName'
19840
- }, {
19841
- label: '商品编码',
19842
- name: 'goodNo',
19843
- type: 'optionalInput'
19844
- }];
19845
20146
  var GoodList$6 = function GoodList(props, ref) {
19846
20147
  var _useState = useState([]),
19847
20148
  _useState2 = _slicedToArray(_useState, 2),
@@ -19967,8 +20268,8 @@ var GoodList$6 = function GoodList(props, ref) {
19967
20268
  return /*#__PURE__*/React.createElement(Skeleton, {
19968
20269
  active: true,
19969
20270
  loading: loading
19970
- }, /*#__PURE__*/React.createElement(SearchForm, {
19971
- searchFormData: searchFormData$5,
20271
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
20272
+ type: "jy",
19972
20273
  form: form,
19973
20274
  showColumnsDataIndexList: showColumnsDataIndexList,
19974
20275
  submit: submit,
@@ -20083,23 +20384,6 @@ var getTableData$7 = function getTableData(_ref, formData) {
20083
20384
  };
20084
20385
  });
20085
20386
  };
20086
- var searchFormData$6 = [{
20087
- label: '规格名称',
20088
- name: 'skuName',
20089
- dataIndex: 'specName'
20090
- }, {
20091
- label: '规格编码',
20092
- name: 'skuCode',
20093
- dataIndex: 'specNo',
20094
- type: 'optionalInput'
20095
- }, {
20096
- label: '货品名称',
20097
- name: 'goodName'
20098
- }, {
20099
- label: '货品编码',
20100
- name: 'goodNo',
20101
- type: 'optionalInput'
20102
- }];
20103
20387
  var GoodList$7 = function GoodList(props, ref) {
20104
20388
  var _useState = useState([]),
20105
20389
  _useState2 = _slicedToArray(_useState, 2),
@@ -20222,8 +20506,8 @@ var GoodList$7 = function GoodList(props, ref) {
20222
20506
  return /*#__PURE__*/React.createElement(Skeleton, {
20223
20507
  active: true,
20224
20508
  loading: loading
20225
- }, /*#__PURE__*/React.createElement(SearchForm, {
20226
- searchFormData: searchFormData$6,
20509
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
20510
+ type: "jky",
20227
20511
  form: form,
20228
20512
  showColumnsDataIndexList: showColumnsDataIndexList,
20229
20513
  submit: submit,
@@ -26849,7 +27133,7 @@ var BsGoods = function BsGoods(props) {
26849
27133
  }));
26850
27134
  };
26851
27135
 
26852
- var _excluded$h = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
27136
+ var _excluded$i = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
26853
27137
  var BsExchange = function BsExchange(props) {
26854
27138
  var _value$bsExchangeType6, _value$bsExchangeType7, _value$bsExchangeType8;
26855
27139
  var value = props.value,
@@ -26858,7 +27142,7 @@ var BsExchange = function BsExchange(props) {
26858
27142
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
26859
27143
  disabled = props.disabled,
26860
27144
  isSettingConfig = props.isSettingConfig,
26861
- other = _objectWithoutProperties(props, _excluded$h);
27145
+ other = _objectWithoutProperties(props, _excluded$i);
26862
27146
  var valueRef = useRef({});
26863
27147
  useEffect(function () {
26864
27148
  valueRef.current = value;
@@ -27097,7 +27381,7 @@ var BsExchange = function BsExchange(props) {
27097
27381
  }))) : null);
27098
27382
  };
27099
27383
 
27100
- var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
27384
+ var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
27101
27385
  var typeMap = {
27102
27386
  BS_REISSUE_GOODS: {
27103
27387
  key: 'bsReissueGoods',
@@ -27123,7 +27407,7 @@ var BsReissue = function BsReissue(props) {
27123
27407
  disabled = props.disabled,
27124
27408
  type = props.type,
27125
27409
  isSettingConfig = props.isSettingConfig,
27126
- other = _objectWithoutProperties(props, _excluded$i);
27410
+ other = _objectWithoutProperties(props, _excluded$j);
27127
27411
  var valueRef = useRef({});
27128
27412
  useEffect(function () {
27129
27413
  var _value$bsReissueType;
@@ -27250,7 +27534,7 @@ var BsReissue = function BsReissue(props) {
27250
27534
  })));
27251
27535
  };
27252
27536
 
27253
- var _excluded$j = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
27537
+ var _excluded$k = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
27254
27538
  var BsReturnGoods = function BsReturnGoods(props) {
27255
27539
  var value = props.value,
27256
27540
  onChange = props.onChange,
@@ -27258,7 +27542,7 @@ var BsReturnGoods = function BsReturnGoods(props) {
27258
27542
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
27259
27543
  disabled = props.disabled,
27260
27544
  isSettingConfig = props.isSettingConfig,
27261
- other = _objectWithoutProperties(props, _excluded$j);
27545
+ other = _objectWithoutProperties(props, _excluded$k);
27262
27546
  var valueRef = useRef({});
27263
27547
  useEffect(function () {
27264
27548
  pubsub.subscribe('returnSelectList', function (_, data) {
@@ -27876,7 +28160,7 @@ var kmUtils = {
27876
28160
  getOrderListSingleton: getOrderListSingleton$4
27877
28161
  };
27878
28162
 
27879
- var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
28163
+ var _excluded$l = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
27880
28164
  _excluded2 = ["shopCode"];
27881
28165
  var columnsMap = {
27882
28166
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
@@ -28295,7 +28579,7 @@ var index$2 = (function (props) {
28295
28579
  vipCode = _ref9.vipCode,
28296
28580
  shopCode = _ref9.shopCode,
28297
28581
  cancel = _ref9.cancel,
28298
- rest = _objectWithoutProperties(_ref9, _excluded$k);
28582
+ rest = _objectWithoutProperties(_ref9, _excluded$l);
28299
28583
  return _objectSpread2(_objectSpread2({}, rest), {}, {
28300
28584
  billNo: billNo,
28301
28585
  billType: billType,
@@ -30688,7 +30972,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
30688
30972
  })));
30689
30973
  };
30690
30974
 
30691
- var _excluded$l = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
30975
+ var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
30692
30976
  var typeMap$1 = {
30693
30977
  WDT_REISSUE_GOODS: {
30694
30978
  key: 'wdtReissueGoods',
@@ -30718,7 +31002,7 @@ var wdtReissue = function wdtReissue(props) {
30718
31002
  disabled = props.disabled,
30719
31003
  type = props.type,
30720
31004
  isSettingConfig = props.isSettingConfig,
30721
- other = _objectWithoutProperties(props, _excluded$l);
31005
+ other = _objectWithoutProperties(props, _excluded$m);
30722
31006
  var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
30723
31007
  var _order$srcTid;
30724
31008
  return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
@@ -30942,7 +31226,7 @@ var wdtReissue = function wdtReissue(props) {
30942
31226
  })));
30943
31227
  };
30944
31228
 
30945
- var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
31229
+ var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
30946
31230
  var typeMap$2 = {
30947
31231
  JST_REISSUE_GOODS: {
30948
31232
  compType: '补发',
@@ -31093,7 +31377,7 @@ var PublicReissue = function PublicReissue(props) {
31093
31377
  disabled = props.disabled,
31094
31378
  type = props.type,
31095
31379
  isSettingConfig = props.isSettingConfig,
31096
- other = _objectWithoutProperties(props, _excluded$m);
31380
+ other = _objectWithoutProperties(props, _excluded$n);
31097
31381
  var showModeBtn = ((_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.checkShowModeBtn) ? typeMap$2[type].checkShowModeBtn(value) : !!((_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.showModeBtn) || false;
31098
31382
  var getOrderFlag = useRef(false);
31099
31383
  var _useState = useState(false),
@@ -31958,12 +32242,12 @@ var Goods$1 = function Goods(props, ref) {
31958
32242
  };
31959
32243
  var index$3 = /*#__PURE__*/forwardRef(Goods$1);
31960
32244
 
31961
- var _excluded$n = ["onChange", "value", "failValue"];
32245
+ var _excluded$o = ["onChange", "value", "failValue"];
31962
32246
  function CommonStatus(props) {
31963
32247
  var onChange = props.onChange,
31964
32248
  value = props.value,
31965
32249
  failValue = props.failValue,
31966
- other = _objectWithoutProperties(props, _excluded$n);
32250
+ other = _objectWithoutProperties(props, _excluded$o);
31967
32251
  var changeHandle = function changeHandle(val) {
31968
32252
  onChange === null || onChange === void 0 ? void 0 : onChange({
31969
32253
  status: val,
@@ -32102,7 +32386,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
32102
32386
  })) : null) : null);
32103
32387
  };
32104
32388
 
32105
- var _excluded$o = ["value", "onChange", "disabled", "failValue", "type"];
32389
+ var _excluded$p = ["value", "onChange", "disabled", "failValue", "type"];
32106
32390
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
32107
32391
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
32108
32392
  var _props$value = props.value,
@@ -32112,7 +32396,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
32112
32396
  failValue = props.failValue,
32113
32397
  _props$type = props.type,
32114
32398
  type = _props$type === void 0 ? 1 : _props$type,
32115
- other = _objectWithoutProperties(props, _excluded$o);
32399
+ other = _objectWithoutProperties(props, _excluded$p);
32116
32400
  var _useState = useState(0),
32117
32401
  _useState2 = _slicedToArray(_useState, 2),
32118
32402
  changeIndex = _useState2[0],
@@ -32178,7 +32462,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
32178
32462
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
32179
32463
  };
32180
32464
 
32181
- var _excluded$p = ["value", "onChange", "disabled", "failValue", "type"];
32465
+ var _excluded$q = ["value", "onChange", "disabled", "failValue", "type"];
32182
32466
  var MsgStatus = function MsgStatus(props) {
32183
32467
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
32184
32468
  var _props$value = props.value,
@@ -32188,7 +32472,7 @@ var MsgStatus = function MsgStatus(props) {
32188
32472
  failValue = props.failValue,
32189
32473
  _props$type = props.type,
32190
32474
  type = _props$type === void 0 ? 1 : _props$type,
32191
- other = _objectWithoutProperties(props, _excluded$p);
32475
+ other = _objectWithoutProperties(props, _excluded$q);
32192
32476
  var _useState = useState(0),
32193
32477
  _useState2 = _slicedToArray(_useState, 2),
32194
32478
  changeIndex = _useState2[0],
@@ -32257,7 +32541,7 @@ var CalculationInput = function CalculationInput(props) {
32257
32541
  }, config === null || config === void 0 ? void 0 : config.unit));
32258
32542
  };
32259
32543
 
32260
- var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
32544
+ var _excluded$r = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
32261
32545
  var typeMap$3 = {
32262
32546
  BS_E3_REISSUE_GOODS: {
32263
32547
  key: 'bsE3ReissueGoods',
@@ -32277,7 +32561,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
32277
32561
  disabled = props.disabled,
32278
32562
  type = props.type,
32279
32563
  isSettingConfig = props.isSettingConfig,
32280
- other = _objectWithoutProperties(props, _excluded$q);
32564
+ other = _objectWithoutProperties(props, _excluded$r);
32281
32565
  var getOrderFlag = useRef(false);
32282
32566
  var valueRef = useRef(null);
32283
32567
  var _useState = useState(false),
@@ -32516,7 +32800,7 @@ var css_248z$h = ".index-module_systemNoDisabled__1s7aJ.ant-select-item-option-d
32516
32800
  var styles$6 = {"systemNoDisabled":"index-module_systemNoDisabled__1s7aJ"};
32517
32801
  styleInject(css_248z$h);
32518
32802
 
32519
- var _excluded$r = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
32803
+ var _excluded$s = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
32520
32804
  _excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
32521
32805
  var typeMap$4 = {
32522
32806
  GY_REISSUE_GOODS: {
@@ -32547,7 +32831,7 @@ var GyReissue = function GyReissue(props) {
32547
32831
  disabled = props.disabled,
32548
32832
  type = props.type,
32549
32833
  isSettingConfig = props.isSettingConfig,
32550
- other = _objectWithoutProperties(props, _excluded$r);
32834
+ other = _objectWithoutProperties(props, _excluded$s);
32551
32835
  // const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
32552
32836
  // order?.platformCode?.includes(';'),
32553
32837
  // );
@@ -32841,7 +33125,7 @@ var GyReissue = function GyReissue(props) {
32841
33125
  })));
32842
33126
  };
32843
33127
 
32844
- var _excluded$s = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
33128
+ var _excluded$t = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
32845
33129
  _excluded2$2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
32846
33130
  var typeMap$5 = {
32847
33131
  GY_RETURN_GOODS: {
@@ -32871,7 +33155,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
32871
33155
  disabled = props.disabled,
32872
33156
  type = props.type,
32873
33157
  isSettingConfig = props.isSettingConfig,
32874
- other = _objectWithoutProperties(props, _excluded$s);
33158
+ other = _objectWithoutProperties(props, _excluded$t);
32875
33159
  var valueRef = useRef({});
32876
33160
  var getOrderFlag = useRef(false);
32877
33161
  var _useState = useState(false),
@@ -33143,7 +33427,7 @@ var css_248z$i = ".index-module_imageBox__1f2AI {\n display: flex;\n flex-wrap
33143
33427
  var styles$7 = {"imageBox":"index-module_imageBox__1f2AI","addBtn":"index-module_addBtn__1DY59","tips":"index-module_tips__1XQjf"};
33144
33428
  styleInject(css_248z$i);
33145
33429
 
33146
- var _excluded$t = ["maxCount", "maxSize", "onChange", "value", "disabled", "hostUrl", "canDownload", "actionUrl"];
33430
+ var _excluded$u = ["maxCount", "maxSize", "onChange", "value", "disabled", "hostUrl", "canDownload", "actionUrl"];
33147
33431
  var Dragger$1 = Upload.Dragger;
33148
33432
  var fn$4 = function fn() {
33149
33433
  return void 0;
@@ -33166,7 +33450,7 @@ var KmVideo = function KmVideo(_ref) {
33166
33450
  canDownload = _ref$canDownload === void 0 ? false : _ref$canDownload,
33167
33451
  _ref$actionUrl = _ref.actionUrl,
33168
33452
  actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
33169
- resetProps = _objectWithoutProperties(_ref, _excluded$t);
33453
+ resetProps = _objectWithoutProperties(_ref, _excluded$u);
33170
33454
  var _useState = useState(false),
33171
33455
  _useState2 = _slicedToArray(_useState, 2),
33172
33456
  visible = _useState2[0],
@@ -33770,4 +34054,4 @@ var FIELD_COLUMNS_MAP = {
33770
34054
  PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
33771
34055
  };
33772
34056
 
33773
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, FIELD_COLUMNS_MAP, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, YouzanStar, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$a as getDxdColumns, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$b as getTtxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap, resolveColumnWidth };
34057
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, FIELD_COLUMNS_MAP, GOODS_SEARCH_FORM_CONFIG, Goods, GoodsReSync, GoodsSearchForm, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, SearchForm, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, YouzanStar, columnsBaseInfoMap, createBsE3SearchFormData, createGySearchFormData, createJkySearchFormData, createJstSearchFormData, createJySearchFormData, createKmSearchFormData, createWdtSearchFormData, createWlnSearchFormData, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$a as getDxdColumns, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$b as getTtxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, loadWdtBrandOptions, orderSubFormConstants, renderMap, renderSplitMap, resolveColumnWidth, shouldSubmitOnBlur, transformFormData, useGoodsReSyncQuery };