@kmkf-fe-packages/basic-components 2.2.13-beta.5 → 2.2.13-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, filterKmOrders, 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, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, 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';
@@ -9559,7 +9559,7 @@ var renderMap = {
9559
9559
  return /*#__PURE__*/React.createElement(FileRender, {
9560
9560
  id: "fileRender",
9561
9561
  fileList: value,
9562
- canDownload: !['ks', 'fxg'].includes(platform || '')
9562
+ canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform || '')
9563
9563
  });
9564
9564
  },
9565
9565
  CHECKBOX: function CHECKBOX(value) {
@@ -9662,7 +9662,7 @@ var EditFileRender = function EditFileRender(_ref7) {
9662
9662
  })), /*#__PURE__*/React.createElement(FileRender, {
9663
9663
  id: "fileEdit",
9664
9664
  fileList: val,
9665
- canDownload: !['ks', 'fxg'].includes(platform)
9665
+ canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform)
9666
9666
  }));
9667
9667
  };
9668
9668
  var EditRenderMap = {
@@ -13830,7 +13830,7 @@ var jstGoods = function jstGoods(props) {
13830
13830
  onChange: function onChange(val) {
13831
13831
  changeInputHandle(val, 'logisticsCompany');
13832
13832
  },
13833
- value: platformType === 'gy' ? (expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompany'], false)) ? (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'] : (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4['logisticsCompanyName'] : (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5['logisticsCompany'],
13833
+ value: ['gy', 'jy'].includes(platformType) ? (expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompany'], false)) ? (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'] : (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4['logisticsCompanyName'] : (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5['logisticsCompany'],
13834
13834
  showSearch: true,
13835
13835
  dropdownMatchSelectWidth: false,
13836
13836
  filterOption: function filterOption(input, option) {
@@ -14650,21 +14650,21 @@ var wdtColumns = [{
14650
14650
  title: '市场价',
14651
14651
  width: 140,
14652
14652
  render: function render(price) {
14653
- return Number(price).toFixed(2);
14653
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14654
14654
  }
14655
14655
  }, {
14656
14656
  dataIndex: 'retailPrice',
14657
14657
  title: '零售价',
14658
14658
  width: 140,
14659
14659
  render: function render(price) {
14660
- return Number(price).toFixed(2);
14660
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14661
14661
  }
14662
14662
  }, {
14663
14663
  dataIndex: 'memberPrice',
14664
14664
  title: '会员价',
14665
14665
  width: 140,
14666
14666
  render: function render(price) {
14667
- return Number(price).toFixed(2);
14667
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14668
14668
  }
14669
14669
  }];
14670
14670
 
@@ -14890,17 +14890,17 @@ var getYesOrNo$1 = function getYesOrNo(val) {
14890
14890
  return val ? '是' : '否';
14891
14891
  };
14892
14892
  var jyColumns = [{
14893
- dataIndex: 'productName',
14893
+ dataIndex: 'goodName',
14894
14894
  title: '商品名称',
14895
14895
  width: 250,
14896
14896
  ellipsis: true
14897
14897
  }, {
14898
- dataIndex: 'productCode',
14898
+ dataIndex: 'goodNo',
14899
14899
  title: '商品编码',
14900
14900
  width: 150,
14901
14901
  ellipsis: true
14902
14902
  }, {
14903
- dataIndex: 'productId',
14903
+ dataIndex: 'goodId',
14904
14904
  title: '商品ID',
14905
14905
  width: 150,
14906
14906
  ellipsis: true
@@ -14909,22 +14909,22 @@ var jyColumns = [{
14909
14909
  title: '商品图片',
14910
14910
  width: 100,
14911
14911
  render: function render(picUrl) {
14912
- return /*#__PURE__*/React.createElement("img", {
14912
+ return picUrl ? /*#__PURE__*/React.createElement("img", {
14913
14913
  style: {
14914
14914
  width: '40px',
14915
14915
  height: '40px',
14916
14916
  objectFit: 'contain'
14917
14917
  },
14918
14918
  src: picUrl
14919
- });
14919
+ }) : null;
14920
14920
  }
14921
14921
  }, {
14922
- dataIndex: 'productShortName',
14922
+ dataIndex: 'goodShortName',
14923
14923
  title: "\u5546\u54C1\u7B80\u79F0",
14924
14924
  ellipsis: true,
14925
14925
  width: 150
14926
14926
  }, {
14927
- dataIndex: 'productGroupName',
14927
+ dataIndex: 'categoryName',
14928
14928
  title: "\u5546\u54C1\u7EC4",
14929
14929
  ellipsis: true,
14930
14930
  width: 150
@@ -14934,56 +14934,56 @@ var jyColumns = [{
14934
14934
  width: 200,
14935
14935
  ellipsis: true
14936
14936
  }, {
14937
- dataIndex: 'skuName',
14937
+ dataIndex: 'specName',
14938
14938
  title: '规格名称',
14939
14939
  width: 250,
14940
14940
  ellipsis: true
14941
14941
  }, {
14942
- dataIndex: 'skuCode',
14942
+ dataIndex: 'specNo',
14943
14943
  title: '规格编码',
14944
14944
  width: 150,
14945
14945
  ellipsis: true
14946
14946
  }, {
14947
- dataIndex: 'skuId',
14947
+ dataIndex: 'specId',
14948
14948
  title: '规格ID',
14949
14949
  width: 250,
14950
14950
  ellipsis: true
14951
14951
  }, {
14952
- dataIndex: 'barcode',
14952
+ dataIndex: 'specBarcode',
14953
14953
  title: '规格条码',
14954
14954
  width: 150,
14955
14955
  ellipsis: true
14956
14956
  }, {
14957
- dataIndex: 'skuImage',
14957
+ dataIndex: 'specImgUrl',
14958
14958
  title: '规格图片',
14959
14959
  width: 100,
14960
14960
  render: function render(picUrl) {
14961
- return /*#__PURE__*/React.createElement("img", {
14961
+ return picUrl ? /*#__PURE__*/React.createElement("img", {
14962
14962
  style: {
14963
14963
  width: '40px',
14964
14964
  height: '40px',
14965
14965
  objectFit: 'contain'
14966
14966
  },
14967
14967
  src: picUrl
14968
- });
14968
+ }) : null;
14969
14969
  }
14970
14970
  }, {
14971
- dataIndex: 'color',
14971
+ dataIndex: 'colorName',
14972
14972
  title: "\u989C\u8272",
14973
14973
  ellipsis: true,
14974
14974
  width: 100
14975
14975
  }, {
14976
- dataIndex: 'size',
14976
+ dataIndex: 'sizeName',
14977
14977
  title: "\u5C3A\u7801",
14978
14978
  ellipsis: true,
14979
14979
  width: 100
14980
14980
  }, {
14981
- dataIndex: 'markedPrice',
14981
+ dataIndex: 'marketPrice',
14982
14982
  title: "\u5E02\u573A\u4EF7",
14983
14983
  ellipsis: true,
14984
14984
  width: 100
14985
14985
  }, {
14986
- dataIndex: 'sellingPrice',
14986
+ dataIndex: 'retailPrice',
14987
14987
  title: "\u96F6\u552E\u4EF7",
14988
14988
  ellipsis: true,
14989
14989
  width: 100
@@ -14993,7 +14993,7 @@ var jyColumns = [{
14993
14993
  ellipsis: true,
14994
14994
  width: 100
14995
14995
  }, {
14996
- dataIndex: 'gift',
14996
+ dataIndex: 'isGift',
14997
14997
  title: "\u662F\u5426\u8D60\u54C1",
14998
14998
  ellipsis: true,
14999
14999
  width: 150,
@@ -15001,12 +15001,12 @@ var jyColumns = [{
15001
15001
  return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
15002
15002
  }
15003
15003
  }, {
15004
- dataIndex: 'combination',
15004
+ dataIndex: 'skuType',
15005
15005
  title: "\u662F\u5426\u7EC4\u5408\u88C5",
15006
15006
  ellipsis: true,
15007
15007
  width: 150,
15008
15008
  render: function render(val) {
15009
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
15009
+ return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val === 'combine'));
15010
15010
  }
15011
15011
  }];
15012
15012
 
@@ -17293,11 +17293,12 @@ var SearchHeader = function SearchHeader(_ref) {
17293
17293
  timeOptions = _ref.timeOptions,
17294
17294
  ShopList = _ref.ShopList,
17295
17295
  onSubmit = _ref.onSubmit;
17296
+ console.log('allFields', allFields);
17296
17297
  // const fixedFieldsOptions = useMemo(() => {
17297
17298
  // return allFields.filter(item => fixedFields?.includes(item.id));
17298
17299
  // }, [fixedFields, allFields]);
17299
17300
  return /*#__PURE__*/React.createElement("div", {
17300
- className: 'search-header-wrap'
17301
+ className: "search-header-wrap"
17301
17302
  }, /*#__PURE__*/React.createElement("div", {
17302
17303
  className: "".concat(status ? 'is-open' : 'not-open')
17303
17304
  }, /*#__PURE__*/React.createElement("div", {
@@ -17454,6 +17455,9 @@ var WorkorderList = function WorkorderList(props, ref) {
17454
17455
  return selectedList.map(function (workOrderData) {
17455
17456
  return goodsSourceFormat.workOrderDataToGoods(workOrderData, props.erp);
17456
17457
  });
17458
+ },
17459
+ setDefaultSearchValue: function setDefaultSearchValue(value) {
17460
+ value && form.setFieldsValue(_objectSpread2({}, value));
17457
17461
  }
17458
17462
  };
17459
17463
  });
@@ -17732,21 +17736,112 @@ var WorkorderList = function WorkorderList(props, ref) {
17732
17736
  };
17733
17737
  var WorkorderList$1 = /*#__PURE__*/forwardRef(WorkorderList);
17734
17738
 
17735
- // interface GoodModelProps {
17736
- // shopId: number | string;
17737
- // maxLength: number;
17738
- // shopList: any[];
17739
- // width?: string | number;
17740
- // shopCode?: string;
17741
- // companyKey: string;
17742
- // onSubmit: (...args: any[]) => any;
17743
- // }
17739
+ var goodClassTransformValue = function goodClassTransformValue(value, config) {
17740
+ var label = '';
17741
+ var options = (config === null || config === void 0 ? void 0 : config.options) || [];
17742
+ var labelList = findLabelBySelectValue(value, options);
17743
+ var labelItem = labelList === null || labelList === void 0 ? void 0 : labelList.pop();
17744
+ label = labelItem === null || labelItem === void 0 ? void 0 : labelItem.label;
17745
+ return {
17746
+ type: 'anylike',
17747
+ keywords: label
17748
+ };
17749
+ };
17750
+ var goodTypeTransformValue = function goodTypeTransformValue(value) {
17751
+ return (value === null || value === void 0 ? void 0 : value.value) ? [value === null || value === void 0 ? void 0 : value.value] : '';
17752
+ };
17753
+ var relationComponentUniqueKeyMap = {
17754
+ //小白熊自定义组件
17755
+ PCE2Z5TXEVPL5D26I7KMBKMB: {
17756
+ //补发类型
17757
+ goodType: {
17758
+ relationComponentKey: '6hldjQ9aMz',
17759
+ reflectKey: 'C7M9rWJMjD_radio',
17760
+ transformValue: function transformValue(value) {
17761
+ return goodTypeTransformValue(value);
17762
+ }
17763
+ },
17764
+ // 产品分类
17765
+ goodClass: {
17766
+ relationComponentKey: '8gozpyUFtA',
17767
+ reflectKey: '2h8KRbxMjD_input',
17768
+ transformValue: function transformValue(value, config) {
17769
+ return goodClassTransformValue(value, config);
17770
+ }
17771
+ }
17772
+ },
17773
+ // 测马奔腾
17774
+ SZF4ZGWZSNW6PYXMCIFEWBXT: {
17775
+ goodType: {
17776
+ relationComponentKey: 'abVTwFX34E',
17777
+ reflectKey: 'ipOHnYquYB_radio',
17778
+ transformValue: function transformValue(value) {
17779
+ return goodTypeTransformValue(value);
17780
+ }
17781
+ },
17782
+ goodClass: {
17783
+ relationComponentKey: 'U0es1pIDaE',
17784
+ reflectKey: 'K1puYheEaE_input',
17785
+ transformValue: function transformValue(value, config) {
17786
+ return goodClassTransformValue(value, config);
17787
+ }
17788
+ }
17789
+ }
17790
+ };
17791
+ // 该方法只用于小白熊定制,当管易商品/管易补发/管易退换货组件的数据来源于关联工单数据,且其补发类型自定义组件选了值,根据该值填充到商品库弹框中类型筛选项
17792
+ var useDefaultSearchValue = (function (props) {
17793
+ var form = props.form,
17794
+ _props$companyKey = props.companyKey,
17795
+ companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
17796
+ source = props.source,
17797
+ erp = props.erp,
17798
+ _props$templateDetail = props.templateDetail,
17799
+ templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
17800
+ if (source !== 'workOrder' || erp !== 'gy') {
17801
+ return '';
17802
+ }
17803
+ var result = {};
17804
+ var relationComponentKeyMap = relationComponentUniqueKeyMap === null || relationComponentUniqueKeyMap === void 0 ? void 0 : relationComponentUniqueKeyMap[companyKey];
17805
+ Object.entries(relationComponentKeyMap).forEach(function (_ref) {
17806
+ var _templateDetail$compo;
17807
+ var _ref2 = _slicedToArray(_ref, 2),
17808
+ key = _ref2[0],
17809
+ value = _ref2[1];
17810
+ var matchComponent = templateDetail === null || templateDetail === void 0 ? void 0 : (_templateDetail$compo = templateDetail.componentDtoList) === null || _templateDetail$compo === void 0 ? void 0 : _templateDetail$compo.find(function (item) {
17811
+ return item.uniqueKey === value.relationComponentKey;
17812
+ });
17813
+ if (!matchComponent) {
17814
+ return;
17815
+ }
17816
+ var relationComponentValue = form === null || form === void 0 ? void 0 : form.getFieldValue(value.relationComponentKey);
17817
+ if (relationComponentValue) {
17818
+ if ((value === null || value === void 0 ? void 0 : value.transformValue) && typeof (value === null || value === void 0 ? void 0 : value.transformValue) === 'function') {
17819
+ var _value$transformValue;
17820
+ var newValue = value === null || value === void 0 ? void 0 : (_value$transformValue = value.transformValue) === null || _value$transformValue === void 0 ? void 0 : _value$transformValue.call(value, relationComponentValue, (matchComponent === null || matchComponent === void 0 ? void 0 : matchComponent.componentConfig) || {});
17821
+ if (newValue) {
17822
+ result[value.reflectKey] = newValue;
17823
+ }
17824
+ } else {
17825
+ result[value.reflectKey] = relationComponentValue;
17826
+ }
17827
+ }
17828
+ });
17829
+ return result;
17830
+ });
17831
+
17744
17832
  var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
17745
- var _props$goodsSource;
17833
+ var _props$goodsSource2;
17746
17834
  var _useState = useState(),
17747
17835
  _useState2 = _slicedToArray(_useState, 2),
17748
17836
  seletedGooods = _useState2[0],
17749
17837
  setSeletedGooods = _useState2[1];
17838
+ var onSubmit = props.onSubmit,
17839
+ width = props.width;
17840
+ var _useState3 = useState(false),
17841
+ _useState4 = _slicedToArray(_useState3, 2),
17842
+ visible = _useState4[0],
17843
+ setVisible = _useState4[1];
17844
+ var goodsListRef = useRef(null);
17750
17845
  useImperativeHandle(ref, function () {
17751
17846
  return {
17752
17847
  open: function open(shopCode, options) {
@@ -17755,19 +17850,28 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
17755
17850
  }
17756
17851
  };
17757
17852
  });
17758
- var onSubmit = props.onSubmit,
17759
- width = props.width;
17760
- var _useState3 = useState(false),
17761
- _useState4 = _slicedToArray(_useState3, 2),
17762
- visible = _useState4[0],
17763
- setVisible = _useState4[1];
17764
- var goodsListRef = useRef(null);
17853
+ useEffect(function () {
17854
+ if (visible && goodsListRef.current) {
17855
+ var _props$goodsSource;
17856
+ var defaultSearchValue = useDefaultSearchValue({
17857
+ form: props === null || props === void 0 ? void 0 : props.form,
17858
+ companyKey: props === null || props === void 0 ? void 0 : props.companyKey,
17859
+ source: (_props$goodsSource = props.goodsSource) === null || _props$goodsSource === void 0 ? void 0 : _props$goodsSource.source,
17860
+ erp: 'gy',
17861
+ templateDetail: props === null || props === void 0 ? void 0 : props.templateDetail
17862
+ });
17863
+ if (defaultSearchValue) {
17864
+ var _goodsListRef$current, _goodsListRef$current2;
17865
+ (_goodsListRef$current = goodsListRef.current) === null || _goodsListRef$current === void 0 ? void 0 : (_goodsListRef$current2 = _goodsListRef$current.setDefaultSearchValue) === null || _goodsListRef$current2 === void 0 ? void 0 : _goodsListRef$current2.call(_goodsListRef$current, defaultSearchValue);
17866
+ }
17867
+ }
17868
+ }, [visible]);
17765
17869
  var _onCancel = function onCancel() {
17766
17870
  setVisible(false);
17767
17871
  };
17768
17872
  var onOk = function onOk() {
17769
- var _goodsListRef$current;
17770
- var selectedList = ((_goodsListRef$current = goodsListRef.current) === null || _goodsListRef$current === void 0 ? void 0 : _goodsListRef$current.getSelectGoodList()) || [];
17873
+ var _goodsListRef$current3;
17874
+ var selectedList = ((_goodsListRef$current3 = goodsListRef.current) === null || _goodsListRef$current3 === void 0 ? void 0 : _goodsListRef$current3.getSelectGoodList()) || [];
17771
17875
  onSubmit(selectedList);
17772
17876
  _onCancel();
17773
17877
  };
@@ -17782,7 +17886,7 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
17782
17886
  },
17783
17887
  onOk: onOk,
17784
17888
  wrapClassName: "goodModal"
17785
- }, ((_props$goodsSource = props.goodsSource) === null || _props$goodsSource === void 0 ? void 0 : _props$goodsSource.source) === 'workOrder' ? /*#__PURE__*/React.createElement(WorkorderList$1, {
17889
+ }, ((_props$goodsSource2 = props.goodsSource) === null || _props$goodsSource2 === void 0 ? void 0 : _props$goodsSource2.source) === 'workOrder' ? /*#__PURE__*/React.createElement(WorkorderList$1, {
17786
17890
  erp: "gy",
17787
17891
  goodsSource: props.goodsSource,
17788
17892
  seletedGooods: seletedGooods,
@@ -17821,10 +17925,12 @@ var getTableData$5 = function getTableData(_ref, formData) {
17821
17925
  };
17822
17926
  var searchFormData$4 = [{
17823
17927
  label: '规格名称',
17824
- name: 'specName'
17928
+ name: 'skuName',
17929
+ dataIndex: 'specName'
17825
17930
  }, {
17826
17931
  label: '规格编码',
17827
- name: 'specCode'
17932
+ name: 'skuCode',
17933
+ dataIndex: 'specNo'
17828
17934
  }, {
17829
17935
  label: '商品名称',
17830
17936
  name: 'goodName'
@@ -17870,29 +17976,29 @@ var GoodList$5 = function GoodList(props, ref) {
17870
17976
  fixed: true,
17871
17977
  onSelect: function onSelect(record, selected) {
17872
17978
  if (selected) {
17873
- setSelectIds([].concat(_toConsumableArray(selectIds), [record.goodNo]));
17979
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
17874
17980
  setSelect([].concat(_toConsumableArray(selectList), [record]));
17875
17981
  } else {
17876
17982
  setSelectIds(selectIds.filter(function (t) {
17877
- return t !== record.goodNo;
17983
+ return t !== record.id;
17878
17984
  }));
17879
17985
  setSelect(selectList.filter(function (t) {
17880
- return t.goodNo !== record.goodNo;
17986
+ return t.id !== record.id;
17881
17987
  }));
17882
17988
  }
17883
17989
  },
17884
17990
  onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
17885
17991
  if (selected) {
17886
17992
  setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
17887
- return t.goodNo;
17993
+ return t.id;
17888
17994
  }))));
17889
17995
  setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
17890
17996
  } else {
17891
17997
  setSelectIds(difference(selectIds, changeRows.map(function (t) {
17892
- return t.goodNo;
17998
+ return t.id;
17893
17999
  })));
17894
18000
  var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
17895
- return arrVal.goodNo !== othVal.goodNo;
18001
+ return arrVal.id !== othVal.id;
17896
18002
  });
17897
18003
  setSelect(list);
17898
18004
  }
@@ -17900,9 +18006,9 @@ var GoodList$5 = function GoodList(props, ref) {
17900
18006
  getCheckboxProps: function getCheckboxProps(record) {
17901
18007
  var options = {
17902
18008
  disabled: (props.selectedRows || []).map(function (row) {
17903
- return row.goodNo || row.skuId;
17904
- }).includes(record.goodNo || record.skuId),
17905
- name: record.goodNo
18009
+ return row.id || row.specId;
18010
+ }).includes(record.id || record.specId),
18011
+ name: record.id
17906
18012
  };
17907
18013
  return options;
17908
18014
  }
@@ -17910,10 +18016,10 @@ var GoodList$5 = function GoodList(props, ref) {
17910
18016
  var showTable = function showTable() {
17911
18017
  var handleDelete = function handleDelete(record) {
17912
18018
  setSelectIds(selectIds.filter(function (t) {
17913
- return t !== record.goodNo;
18019
+ return t !== record.id;
17914
18020
  }));
17915
18021
  setSelect(selectList.filter(function (t) {
17916
- return t.goodNo !== record.goodNo;
18022
+ return t.id !== record.id;
17917
18023
  }));
17918
18024
  };
17919
18025
  var showColumns = [{
@@ -17937,7 +18043,7 @@ var GoodList$5 = function GoodList(props, ref) {
17937
18043
  }
17938
18044
  }, /*#__PURE__*/React.createElement(Table, {
17939
18045
  columns: showColumns,
17940
- rowKey: 'goodNo',
18046
+ rowKey: 'id',
17941
18047
  dataSource: selectList,
17942
18048
  scroll: {
17943
18049
  x: '100%',
@@ -17966,7 +18072,7 @@ var GoodList$5 = function GoodList(props, ref) {
17966
18072
  }
17967
18073
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
17968
18074
  rowSelection: rowSelection,
17969
- rowKey: "goodNo",
18075
+ rowKey: "id",
17970
18076
  columns: columns,
17971
18077
  scroll: {
17972
18078
  x: '100%',
@@ -18481,7 +18587,7 @@ var getColumns$2 = function getColumns(_ref) {
18481
18587
  WDT_REISSUE_GOODS: [{
18482
18588
  dataIndex: 'goodId',
18483
18589
  title: "\u5546\u54C1ID",
18484
- width: 120,
18590
+ width: 250,
18485
18591
  align: 'center',
18486
18592
  ellipsis: true
18487
18593
  }, {
@@ -18569,7 +18675,7 @@ var getColumns$2 = function getColumns(_ref) {
18569
18675
  title: "\u5546\u54C1ID",
18570
18676
  align: 'center',
18571
18677
  ellipsis: true,
18572
- width: 70
18678
+ width: 250
18573
18679
  }, {
18574
18680
  dataIndex: 'goodNo',
18575
18681
  title: "\u5546\u54C1\u7F16\u7801",
@@ -18628,6 +18734,11 @@ var getColumns$2 = function getColumns(_ref) {
18628
18734
  title: "\u5E73\u53F0\u89C4\u683CID",
18629
18735
  width: 180,
18630
18736
  align: 'center'
18737
+ }, {
18738
+ dataIndex: 'brandName',
18739
+ title: "\u54C1\u724C\u540D\u79F0",
18740
+ width: 180,
18741
+ align: 'center'
18631
18742
  }, {
18632
18743
  dataIndex: 'orderPrice',
18633
18744
  title: "\u6210\u4EA4\u603B\u91D1\u989D",
@@ -18676,7 +18787,7 @@ var getColumns$2 = function getColumns(_ref) {
18676
18787
  title: "\u5546\u54C1ID",
18677
18788
  align: 'center',
18678
18789
  ellipsis: true,
18679
- width: 70
18790
+ width: 250
18680
18791
  }, {
18681
18792
  dataIndex: 'goodNo',
18682
18793
  title: "\u5546\u54C1\u7F16\u7801",
@@ -18821,7 +18932,7 @@ var getColumns$2 = function getColumns(_ref) {
18821
18932
  title: "\u5546\u54C1ID",
18822
18933
  align: 'center',
18823
18934
  ellipsis: true,
18824
- width: 70
18935
+ width: 250
18825
18936
  }, {
18826
18937
  dataIndex: 'goodNo',
18827
18938
  title: "\u5546\u54C1\u7F16\u7801",
@@ -20270,10 +20381,15 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
20270
20381
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
20271
20382
  return false;
20272
20383
  };
20273
- var getYesOrNo$4 = function getYesOrNo(val) {
20274
- if (isNull(val)) return null;
20275
- return val ? '是' : '否';
20276
- };
20384
+ function toNum$3(value) {
20385
+ if (typeof value === 'string') {
20386
+ return value ? +value : void 0;
20387
+ }
20388
+ if (typeof value === 'number') {
20389
+ return value;
20390
+ }
20391
+ return void 0;
20392
+ }
20277
20393
  var getColumns$7 = function getColumns(_ref) {
20278
20394
  var _ref$text = _ref.text,
20279
20395
  disabled = _ref.disabled,
@@ -20282,52 +20398,234 @@ var getColumns$7 = function getColumns(_ref) {
20282
20398
  return {
20283
20399
  //巨益商品信息
20284
20400
  JY_GOODS: [{
20285
- dataIndex: 'goodsName',
20286
- title: "\u8D27\u54C1\u540D\u79F0",
20401
+ dataIndex: 'productName',
20402
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20403
+ align: 'center',
20404
+ ellipsis: true,
20287
20405
  width: 150
20288
20406
  }, {
20289
- dataIndex: 'goodsCode',
20290
- title: "\u8D27\u54C1\u7F16\u53F7",
20291
- width: 200
20407
+ dataIndex: 'productCode',
20408
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20409
+ align: 'center',
20410
+ ellipsis: true,
20411
+ width: 150
20292
20412
  }, {
20293
- dataIndex: 'goodsId',
20294
- title: "\u8D27\u54C1ID",
20413
+ dataIndex: 'productId',
20414
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
20415
+ align: 'center',
20416
+ ellipsis: true,
20295
20417
  width: 150
20296
20418
  }, {
20419
+ dataIndex: 'skuName',
20420
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
20421
+ align: 'center',
20422
+ ellipsis: true,
20423
+ width: 150
20424
+ }, {
20425
+ dataIndex: 'skuCode',
20426
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
20427
+ align: 'center',
20428
+ ellipsis: true,
20429
+ width: 150
20430
+ }, {
20431
+ dataIndex: 'specId',
20432
+ title: "\u89C4\u683CID",
20433
+ align: 'center',
20434
+ ellipsis: true,
20435
+ width: 150
20436
+ },
20437
+ // {
20438
+ // dataIndex: 'goodsName',
20439
+ // title: `货品名称`,
20440
+ // width: 250,
20441
+ // },
20442
+ // {
20443
+ // dataIndex: 'goodsCode',
20444
+ // title: `货品编号`,
20445
+ // width: 200,
20446
+ // },
20447
+ // {
20448
+ // dataIndex: 'goodsId',
20449
+ // title: `货品ID`,
20450
+ // width: 150,
20451
+ // },
20452
+ {
20297
20453
  dataIndex: 'goodsClass',
20298
- title: "\u8D27\u54C1ID",
20454
+ title: "\u8D27\u54C1\u7C7B\u522B",
20299
20455
  width: 150
20300
20456
  }, {
20301
20457
  dataIndex: 'code',
20302
20458
  title: "\u6761\u7801",
20303
20459
  width: 150
20304
- }, {
20305
- dataIndex: 'specName',
20306
- title: "\u89C4\u683C\u540D\u79F0",
20460
+ },
20461
+ // {
20462
+ // dataIndex: 'specName',
20463
+ // title: `规格名称`,
20464
+ // align: 'center',
20465
+ // ellipsis: true,
20466
+ // width: 200,
20467
+ // },
20468
+ // {
20469
+ // dataIndex: 'specCode',
20470
+ // title: `规格编号`,
20471
+ // align: 'center',
20472
+ // ellipsis: true,
20473
+ // width: 150,
20474
+ // },
20475
+ {
20476
+ dataIndex: 'mallProductName',
20477
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
20307
20478
  align: 'center',
20308
20479
  ellipsis: true,
20309
- width: 200
20480
+ width: 250
20310
20481
  }, {
20311
- dataIndex: 'specCode',
20312
- title: "\u89C4\u683C\u7F16\u53F7",
20482
+ dataIndex: 'mallProductOutCode',
20483
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
20313
20484
  align: 'center',
20314
20485
  ellipsis: true,
20315
20486
  width: 150
20316
20487
  }, {
20317
- dataIndex: 'specId',
20318
- title: "\u89C4\u683CID",
20488
+ dataIndex: 'mallProductId',
20489
+ title: "\u5E73\u53F0\u5546\u54C1ID",
20319
20490
  align: 'center',
20320
20491
  ellipsis: true,
20321
- width: 150
20492
+ width: 250
20322
20493
  }, {
20323
- dataIndex: 'productName',
20324
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20494
+ dataIndex: 'mallSkuName',
20495
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
20325
20496
  align: 'center',
20326
20497
  ellipsis: true,
20498
+ width: 250
20499
+ }, {
20500
+ dataIndex: 'mallSkuId',
20501
+ title: "\u5E73\u53F0\u89C4\u683CID",
20502
+ align: 'center',
20503
+ ellipsis: true,
20504
+ width: 250
20505
+ }, {
20506
+ dataIndex: 'sellCount',
20507
+ title: "\u6570\u91CF",
20508
+ width: 100,
20509
+ render: function render(val, record, index) {
20510
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20511
+ style: {
20512
+ width: 70
20513
+ },
20514
+ value: val,
20515
+ min: 1,
20516
+ precision: 0,
20517
+ onChange: function onChange(num) {
20518
+ updateDataHandle({
20519
+ sellCount: num,
20520
+ sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
20521
+ }, index);
20522
+ }
20523
+ }) : /*#__PURE__*/React.createElement("span", null, val);
20524
+ }
20525
+ }, {
20526
+ dataIndex: 'sellPrice',
20527
+ title: "\u5355\u4EF7",
20528
+ width: 150,
20529
+ render: function render(val, record, index) {
20530
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20531
+ style: {
20532
+ width: 130
20533
+ },
20534
+ value: val,
20535
+ min: 0,
20536
+ precision: 2,
20537
+ onChange: function onChange(num) {
20538
+ updateDataHandle({
20539
+ sellPrice: num,
20540
+ sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
20541
+ }, index);
20542
+ }
20543
+ }) : /*#__PURE__*/React.createElement("span", null, val);
20544
+ }
20545
+ }, {
20546
+ dataIndex: 'mallSellingPrice',
20547
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
20327
20548
  width: 150
20328
20549
  }, {
20329
- dataIndex: 'productCode',
20330
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20550
+ dataIndex: 'sellTotal',
20551
+ title: "\u91D1\u989D",
20552
+ width: 150
20553
+ }, {
20554
+ dataIndex: 'settlementPrice',
20555
+ title: "\u7ED3\u7B97\u4EF7",
20556
+ width: 150
20557
+ }, {
20558
+ dataIndex: 'divideOrderFee',
20559
+ title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
20560
+ width: 150
20561
+ }, {
20562
+ dataIndex: 'bfit',
20563
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
20564
+ width: 150,
20565
+ render: function render(val, record, index) {
20566
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20567
+ dropdownStyle: {
20568
+ zIndex: 2000
20569
+ },
20570
+ getPopupContainer: function getPopupContainer() {
20571
+ return document.body;
20572
+ },
20573
+ value: val,
20574
+ onChange: function onChange(value) {
20575
+ updateHandle(value, index, 'bfit');
20576
+ },
20577
+ options: [{
20578
+ label: '是',
20579
+ value: 'True'
20580
+ }, {
20581
+ label: '否',
20582
+ value: 'False'
20583
+ }]
20584
+ }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
20585
+ }
20586
+ }, {
20587
+ dataIndex: 'combinationName',
20588
+ title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
20589
+ width: 150
20590
+ }, {
20591
+ dataIndex: 'combinationCode',
20592
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20593
+ width: 150
20594
+ }, {
20595
+ dataIndex: 'gift',
20596
+ title: "\u662F\u5426\u8D60\u54C1",
20597
+ width: 150,
20598
+ render: function render(val, record, index) {
20599
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20600
+ dropdownStyle: {
20601
+ zIndex: 2000
20602
+ },
20603
+ getPopupContainer: function getPopupContainer() {
20604
+ return document.body;
20605
+ },
20606
+ value: val,
20607
+ onChange: function onChange(value) {
20608
+ updateHandle(value, index, 'gift');
20609
+ },
20610
+ options: [{
20611
+ label: '是',
20612
+ value: '1'
20613
+ }, {
20614
+ label: '否',
20615
+ value: '0'
20616
+ }]
20617
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
20618
+ }
20619
+ }].map(function (item) {
20620
+ return _objectSpread2(_objectSpread2({}, item), {}, {
20621
+ align: 'center',
20622
+ ellipsis: true
20623
+ });
20624
+ }),
20625
+ // 巨益补发商品信息
20626
+ JY_REISSUE_GOODS: [{
20627
+ dataIndex: 'productName',
20628
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20331
20629
  align: 'center',
20332
20630
  ellipsis: true,
20333
20631
  width: 150
@@ -20355,6 +20653,20 @@ var getColumns$7 = function getColumns(_ref) {
20355
20653
  align: 'center',
20356
20654
  ellipsis: true,
20357
20655
  width: 150
20656
+ }, {
20657
+ dataIndex: 'specId',
20658
+ title: "\u89C4\u683CID",
20659
+ align: 'center',
20660
+ ellipsis: true,
20661
+ width: 150
20662
+ }, {
20663
+ dataIndex: 'goodsClass',
20664
+ title: "\u8D27\u54C1\u7C7B\u522B",
20665
+ width: 150
20666
+ }, {
20667
+ dataIndex: 'code',
20668
+ title: "\u6761\u7801",
20669
+ width: 150
20358
20670
  }, {
20359
20671
  dataIndex: 'mallProductName',
20360
20672
  title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
@@ -20386,9 +20698,22 @@ var getColumns$7 = function getColumns(_ref) {
20386
20698
  ellipsis: true,
20387
20699
  width: 150
20388
20700
  }, {
20389
- dataIndex: 'sellcount',
20701
+ dataIndex: 'sellCount',
20390
20702
  title: "\u6570\u91CF",
20391
20703
  width: 100,
20704
+ validator: function validator(_rule, value) {
20705
+ var productName = '';
20706
+ if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
20707
+ var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.sellCount);
20708
+ var res = typeof qty === 'number' ? qty < 1 : true;
20709
+ if (res) {
20710
+ productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
20711
+ }
20712
+ return res;
20713
+ })) {
20714
+ return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
20715
+ }
20716
+ },
20392
20717
  render: function render(val, record, index) {
20393
20718
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20394
20719
  style: {
@@ -20399,9 +20724,8 @@ var getColumns$7 = function getColumns(_ref) {
20399
20724
  precision: 0,
20400
20725
  onChange: function onChange(num) {
20401
20726
  updateDataHandle({
20402
- qty: num,
20403
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20404
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20727
+ sellCount: num,
20728
+ sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
20405
20729
  }, index);
20406
20730
  }
20407
20731
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -20420,8 +20744,8 @@ var getColumns$7 = function getColumns(_ref) {
20420
20744
  precision: 2,
20421
20745
  onChange: function onChange(num) {
20422
20746
  updateDataHandle({
20423
- price: num,
20424
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20747
+ sellPrice: num,
20748
+ sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
20425
20749
  }, index);
20426
20750
  }
20427
20751
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -20434,32 +20758,30 @@ var getColumns$7 = function getColumns(_ref) {
20434
20758
  dataIndex: 'sellTotal',
20435
20759
  title: "\u91D1\u989D",
20436
20760
  width: 150
20437
- }, {
20438
- dataIndex: 'settlementPrice',
20439
- title: "\u7ED3\u7B97\u4EF7",
20440
- width: 150
20441
- }, {
20442
- dataIndex: 'divideOrderFee',
20443
- title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
20444
- width: 150
20445
20761
  }, {
20446
20762
  dataIndex: 'bfit',
20447
20763
  title: "\u662F\u5426\u7EC4\u5408\u88C5",
20448
20764
  width: 150,
20449
20765
  render: function render(val, record, index) {
20450
20766
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20767
+ dropdownStyle: {
20768
+ zIndex: 2000
20769
+ },
20770
+ getPopupContainer: function getPopupContainer() {
20771
+ return document.body;
20772
+ },
20451
20773
  value: val,
20452
20774
  onChange: function onChange(value) {
20453
20775
  updateHandle(value, index, 'bfit');
20454
20776
  },
20455
20777
  options: [{
20456
20778
  label: '是',
20457
- value: 1
20779
+ value: 'True'
20458
20780
  }, {
20459
20781
  label: '否',
20460
- value: 0
20782
+ value: 'False'
20461
20783
  }]
20462
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20784
+ }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
20463
20785
  }
20464
20786
  }, {
20465
20787
  dataIndex: 'combinationName',
@@ -20475,323 +20797,31 @@ var getColumns$7 = function getColumns(_ref) {
20475
20797
  width: 150,
20476
20798
  render: function render(val, record, index) {
20477
20799
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20800
+ dropdownStyle: {
20801
+ zIndex: 2000
20802
+ },
20803
+ getPopupContainer: function getPopupContainer() {
20804
+ return document.body;
20805
+ },
20478
20806
  value: val,
20479
20807
  onChange: function onChange(value) {
20480
20808
  updateHandle(value, index, 'gift');
20481
20809
  },
20482
20810
  options: [{
20483
20811
  label: '是',
20484
- value: 1
20812
+ value: '1'
20485
20813
  }, {
20486
20814
  label: '否',
20487
- value: 0
20815
+ value: '0'
20488
20816
  }]
20489
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20817
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
20490
20818
  }
20491
- }, {
20492
- dataIndex: 'skuNote',
20493
- title: "\u5546\u54C1\u5907\u6CE8",
20494
- width: 150
20495
20819
  }].map(function (item) {
20496
20820
  return _objectSpread2(_objectSpread2({}, item), {}, {
20497
20821
  align: 'center',
20498
20822
  ellipsis: true
20499
20823
  });
20500
20824
  })
20501
- //巨益补发商品信息
20502
- // JY_REISSUE_GOODS: [
20503
- // {
20504
- // dataIndex: 'goodName',
20505
- // title: `商品名称`,
20506
- // width: 150,
20507
- // },
20508
- // {
20509
- // dataIndex: 'goodShortName',
20510
- // title: `商品简称`,
20511
- // width: 150,
20512
- // },
20513
- // {
20514
- // dataIndex: 'goodNo',
20515
- // title: `商品编码`,
20516
- // width: 200,
20517
- // },
20518
- // {
20519
- // dataIndex: 'specName',
20520
- // title: `SKU名称`,
20521
- // align: 'center',
20522
- // ellipsis: true,
20523
- // width: 250,
20524
- // },
20525
- // {
20526
- // dataIndex: 'specNo',
20527
- // title: `SKU编码`,
20528
- // align: 'center',
20529
- // ellipsis: true,
20530
- // width: 150,
20531
- // },
20532
- // {
20533
- // dataIndex: 'qty',
20534
- // title: `数量`,
20535
- // width: 100,
20536
- // validator: (_rule: any, value: any) => {
20537
- // let goodsName = '';
20538
- // if (
20539
- // (value?.gyReissueGoods || []).some((goods: any) => {
20540
- // const qty = toNum(goods?.qty);
20541
- // const res = typeof qty === 'number' ? qty < 1 : true;
20542
- // if (res) {
20543
- // goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
20544
- // }
20545
- // return res;
20546
- // })
20547
- // ) {
20548
- // return Promise.reject(`${goodsName}数量必须大于0`);
20549
- // }
20550
- // },
20551
- // render: (val: any, record: any, index: number) =>
20552
- // !disabled ? (
20553
- // <InputNumber
20554
- // style={{ width: 70 }}
20555
- // value={val}
20556
- // min={1}
20557
- // precision={0}
20558
- // onChange={(num) => {
20559
- // updateDataHandle(
20560
- // {
20561
- // qty: num,
20562
- // amount:
20563
- // num && isNumberOrNumberString(record.price)
20564
- // ? num * record.price
20565
- // : null,
20566
- // originAmount:
20567
- // num && isNumberOrNumberString(record.originPrice)
20568
- // ? num * record.originPrice
20569
- // : null,
20570
- // },
20571
- // index,
20572
- // );
20573
- // }}
20574
- // ></InputNumber>
20575
- // ) : (
20576
- // <span>{val}</span>
20577
- // ),
20578
- // },
20579
- // {
20580
- // dataIndex: 'price',
20581
- // title: `实际单价`,
20582
- // width: 150,
20583
- // render: (val: any, record: any, index: number) =>
20584
- // !disabled ? (
20585
- // <InputNumber
20586
- // style={{ width: 130 }}
20587
- // value={val}
20588
- // min={0}
20589
- // precision={2}
20590
- // onChange={(num) => {
20591
- // updateDataHandle(
20592
- // {
20593
- // price: num,
20594
- // amount:
20595
- // num && isNumberOrNumberString(record.qty)
20596
- // ? num * record.qty
20597
- // : null,
20598
- // },
20599
- // index,
20600
- // );
20601
- // }}
20602
- // ></InputNumber>
20603
- // ) : (
20604
- // <span>{val}</span>
20605
- // ),
20606
- // },
20607
- // {
20608
- // dataIndex: 'amount',
20609
- // title: `实际金额`,
20610
- // width: 150,
20611
- // },
20612
- // {
20613
- // dataIndex: 'originPrice',
20614
- // title: `标准单价`,
20615
- // width: 150,
20616
- // },
20617
- // {
20618
- // dataIndex: 'originAmount',
20619
- // title: `标准金额`,
20620
- // width: 150,
20621
- // },
20622
- // {
20623
- // dataIndex: 'isGift',
20624
- // title: `是否赠品`,
20625
- // width: 150,
20626
- // render: (val: number, record: any, index: number) =>
20627
- // record.canEdit && !disabled ? (
20628
- // <Select
20629
- // value={val}
20630
- // onChange={(value) => {
20631
- // updateHandle(value, index, 'isGift');
20632
- // }}
20633
- // options={[
20634
- // { label: '是', value: 1 },
20635
- // { label: '否', value: 0 },
20636
- // ]}
20637
- // />
20638
- // ) : (
20639
- // <span>{getYesOrNo(val)}</span>
20640
- // ),
20641
- // },
20642
- // ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
20643
- // //巨益退货商品信息
20644
- // JY_RETURN_GOODS: [
20645
- // {
20646
- // dataIndex: 'goodName',
20647
- // title: `商品名称`,
20648
- // width: 150,
20649
- // },
20650
- // {
20651
- // dataIndex: 'goodShortName',
20652
- // title: `商品简称`,
20653
- // width: 150,
20654
- // },
20655
- // {
20656
- // dataIndex: 'goodNo',
20657
- // title: `商品编码`,
20658
- // width: 200,
20659
- // },
20660
- // {
20661
- // dataIndex: 'specName',
20662
- // title: `SKU名称`,
20663
- // align: 'center',
20664
- // ellipsis: true,
20665
- // width: 250,
20666
- // },
20667
- // {
20668
- // dataIndex: 'specNo',
20669
- // title: `SKU编码`,
20670
- // align: 'center',
20671
- // ellipsis: true,
20672
- // width: 150,
20673
- // },
20674
- // {
20675
- // dataIndex: 'qty',
20676
- // title: `数量`,
20677
- // width: 100,
20678
- // validator: (_rule: any, value: any) => {
20679
- // let goodsName = '';
20680
- // if (
20681
- // (value?.gyReturnGoods || []).some((goods: any) => {
20682
- // const qty = toNum(goods?.qty);
20683
- // const res = typeof qty === 'number' ? qty < 1 : true;
20684
- // if (res) {
20685
- // goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
20686
- // }
20687
- // return res;
20688
- // })
20689
- // ) {
20690
- // return Promise.reject(`${goodsName}数量必须大于0`);
20691
- // }
20692
- // },
20693
- // render: (val: any, record: any, index: number) =>
20694
- // !disabled ? (
20695
- // <InputNumber
20696
- // style={{ width: 70 }}
20697
- // value={val}
20698
- // min={1}
20699
- // precision={0}
20700
- // onChange={(num) => {
20701
- // updateDataHandle(
20702
- // {
20703
- // qty: num,
20704
- // amount:
20705
- // num && isNumberOrNumberString(record.price)
20706
- // ? num * record.price
20707
- // : null,
20708
- // originAmount:
20709
- // num && isNumberOrNumberString(record.originPrice)
20710
- // ? num * record.originPrice
20711
- // : null,
20712
- // },
20713
- // index,
20714
- // );
20715
- // }}
20716
- // ></InputNumber>
20717
- // ) : (
20718
- // <span>{val}</span>
20719
- // ),
20720
- // },
20721
- // {
20722
- // dataIndex: 'price',
20723
- // title: `实际单价`,
20724
- // width: 150,
20725
- // render: (val: any, record: any, index: number) =>
20726
- // !disabled ? (
20727
- // <InputNumber
20728
- // style={{ width: 130 }}
20729
- // value={val}
20730
- // min={0}
20731
- // precision={2}
20732
- // onChange={(num) => {
20733
- // updateDataHandle(
20734
- // {
20735
- // price: num,
20736
- // amount:
20737
- // num && isNumberOrNumberString(record.qty)
20738
- // ? num * record.qty
20739
- // : null,
20740
- // },
20741
- // index,
20742
- // );
20743
- // }}
20744
- // ></InputNumber>
20745
- // ) : (
20746
- // <span>{val}</span>
20747
- // ),
20748
- // },
20749
- // {
20750
- // dataIndex: 'amount',
20751
- // title: `实际金额`,
20752
- // width: 150,
20753
- // },
20754
- // {
20755
- // dataIndex: 'originPrice',
20756
- // title: `标准单价`,
20757
- // width: 150,
20758
- // },
20759
- // {
20760
- // dataIndex: 'originAmount',
20761
- // title: `标准金额`,
20762
- // width: 150,
20763
- // },
20764
- // {
20765
- // dataIndex: 'discountFee',
20766
- // title: `让利金额`,
20767
- // width: 150,
20768
- // },
20769
- // {
20770
- // dataIndex: 'amountAfter',
20771
- // title: `让利后金额`,
20772
- // width: 150,
20773
- // },
20774
- // {
20775
- // dataIndex: 'isGift',
20776
- // title: `是否赠品`,
20777
- // width: 150,
20778
- // render: (val: number, record: any, index: number) =>
20779
- // record.canEdit && !disabled ? (
20780
- // <Select
20781
- // value={val}
20782
- // onChange={(value) => {
20783
- // updateHandle(value, index, 'isGift');
20784
- // }}
20785
- // options={[
20786
- // { label: '是', value: 1 },
20787
- // { label: '否', value: 0 },
20788
- // ]}
20789
- // />
20790
- // ) : (
20791
- // <span>{getYesOrNo(val)}</span>
20792
- // ),
20793
- // },
20794
- // ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
20795
20825
  };
20796
20826
  };
20797
20827
 
@@ -20982,7 +21012,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
20982
21012
  })), getColumns$7({
20983
21013
  text: text,
20984
21014
  disabled: disabled,
20985
- updateHandle: updateHandle
21015
+ updateHandle: updateHandle,
21016
+ updateDataHandle: updateDataHandle
20986
21017
  })), getColumns$8({
20987
21018
  text: text,
20988
21019
  disabled: disabled,
@@ -21180,6 +21211,13 @@ var processGoods$1 = function processGoods(_ref) {
21180
21211
  canUpdateNumber: canUpdateNumber,
21181
21212
  source: source
21182
21213
  });
21214
+ } else if (isErpType.isJy(type)) {
21215
+ newList = processJyGoods({
21216
+ list: list,
21217
+ type: type,
21218
+ canUpdateNumber: canUpdateNumber,
21219
+ source: source
21220
+ });
21183
21221
  } else {
21184
21222
  newList = processDefaultGoods({
21185
21223
  list: list,
@@ -21190,11 +21228,49 @@ var processGoods$1 = function processGoods(_ref) {
21190
21228
  }
21191
21229
  return newList;
21192
21230
  };
21193
- // 处理不同类型的商品数据
21194
- var processWdtGoods$1 = function processWdtGoods(_ref2) {
21231
+ var processJyGoods = function processJyGoods(_ref2) {
21195
21232
  var list = _ref2.list,
21196
- type = _ref2.type,
21197
21233
  canUpdateNumber = _ref2.canUpdateNumber;
21234
+ return list.map(function (item) {
21235
+ var goodName = item.goodName,
21236
+ goodNo = item.goodNo,
21237
+ goodId = item.goodId,
21238
+ specName = item.specName,
21239
+ specNo = item.specNo,
21240
+ specBarcode = item.specBarcode,
21241
+ retailPrice = item.retailPrice,
21242
+ isGift = item.isGift,
21243
+ skuType = item.skuType;
21244
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21245
+ goodsName: goodName,
21246
+ goodsCode: goodNo,
21247
+ goodsId: goodId,
21248
+ code: specBarcode,
21249
+ specCode: specNo,
21250
+ productName: goodName,
21251
+ productCode: goodNo,
21252
+ productId: goodId,
21253
+ skuName: specName,
21254
+ skuCode: specNo,
21255
+ combinationName: goodName,
21256
+ combinationCode: goodNo,
21257
+ gift: isGift ? '1' : '0',
21258
+ bfit: skuType === 'combine' ? 'True' : 'False',
21259
+ uuid: uuid(),
21260
+ canDelete: true,
21261
+ sellCount: 1,
21262
+ sellPrice: retailPrice,
21263
+ sellTotal: (retailPrice * 1).toFixed(2),
21264
+ canEdit: true,
21265
+ canUpdateNumber: canUpdateNumber
21266
+ });
21267
+ });
21268
+ };
21269
+ // 处理不同类型的商品数据
21270
+ var processWdtGoods$1 = function processWdtGoods(_ref3) {
21271
+ var list = _ref3.list,
21272
+ type = _ref3.type,
21273
+ canUpdateNumber = _ref3.canUpdateNumber;
21198
21274
  return list.map(function (item) {
21199
21275
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
21200
21276
  uuid: uuid(),
@@ -21212,9 +21288,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref2) {
21212
21288
  return processedItem;
21213
21289
  });
21214
21290
  };
21215
- var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
21216
- var list = _ref3.list,
21217
- canUpdateNumber = _ref3.canUpdateNumber;
21291
+ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
21292
+ var list = _ref4.list,
21293
+ canUpdateNumber = _ref4.canUpdateNumber;
21218
21294
  return list.map(function (item) {
21219
21295
  var specNo = item.specNo,
21220
21296
  specId = item.specId,
@@ -21249,9 +21325,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
21249
21325
  });
21250
21326
  });
21251
21327
  };
21252
- var processGyGoods$1 = function processGyGoods(_ref4) {
21253
- var list = _ref4.list,
21254
- source = _ref4.source;
21328
+ var processGyGoods$1 = function processGyGoods(_ref5) {
21329
+ var list = _ref5.list,
21330
+ source = _ref5.source;
21255
21331
  var isFormWorkOrder = source === 'workOrder';
21256
21332
  return list.map(function (item) {
21257
21333
  var goodName = item.goodName,
@@ -21278,8 +21354,8 @@ var processGyGoods$1 = function processGyGoods(_ref4) {
21278
21354
  });
21279
21355
  });
21280
21356
  };
21281
- var processJstGoods$1 = function processJstGoods(_ref5) {
21282
- var list = _ref5.list;
21357
+ var processJstGoods$1 = function processJstGoods(_ref6) {
21358
+ var list = _ref6.list;
21283
21359
  return list.map(function (item) {
21284
21360
  return {
21285
21361
  name: item.goodName,
@@ -21297,9 +21373,9 @@ var processJstGoods$1 = function processJstGoods(_ref5) {
21297
21373
  };
21298
21374
  });
21299
21375
  };
21300
- var processKmGoods$1 = function processKmGoods(_ref6) {
21301
- var list = _ref6.list,
21302
- type = _ref6.type;
21376
+ var processKmGoods$1 = function processKmGoods(_ref7) {
21377
+ var list = _ref7.list,
21378
+ type = _ref7.type;
21303
21379
  var initParamsMap = {
21304
21380
  KM_GOODS: {
21305
21381
  num: 1
@@ -21329,9 +21405,9 @@ var processKmGoods$1 = function processKmGoods(_ref6) {
21329
21405
  }, initParamsMap[type] || {});
21330
21406
  });
21331
21407
  };
21332
- var processDefaultGoods = function processDefaultGoods(_ref7) {
21333
- var list = _ref7.list,
21334
- canUpdateNumber = _ref7.canUpdateNumber;
21408
+ var processDefaultGoods = function processDefaultGoods(_ref8) {
21409
+ var list = _ref8.list,
21410
+ canUpdateNumber = _ref8.canUpdateNumber;
21335
21411
  return list.map(function (item) {
21336
21412
  var goodsId = item.goodsId,
21337
21413
  name = item.name,
@@ -21375,6 +21451,7 @@ var GoodsModalMap = {
21375
21451
  KM_GOODS: KmGoodsModal,
21376
21452
  KM_REISSUE_GOODS: KmGoodsModal,
21377
21453
  JY_GOODS: JyGoodsModal$1,
21454
+ JY_REISSUE_GOODS: JyGoodsModal$1,
21378
21455
  OTHER_GOODS: GoodsModal$2
21379
21456
  };
21380
21457
  var systemOrderNoMap = {
@@ -21384,7 +21461,8 @@ var systemOrderNoMap = {
21384
21461
  BS_E3_GOODS: 'orderSn',
21385
21462
  JST_GOODS: 'oId',
21386
21463
  WLN_GOODS: 'tradeNo',
21387
- JY_GOODS: 'tradeNo'
21464
+ JY_GOODS: 'tradeNo',
21465
+ JY_REISSUE_GOODS: 'tradeNo'
21388
21466
  };
21389
21467
  var SelectTradeGoods = function SelectTradeGoods(_ref) {
21390
21468
  var columns = _ref.columns,
@@ -21442,6 +21520,12 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
21442
21520
  return item === null || item === void 0 ? void 0 : item[uniqueKey];
21443
21521
  }));
21444
21522
  var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
21523
+ console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
21524
+ console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
21525
+ return item === null || item === void 0 ? void 0 : item[uniqueKey];
21526
+ }));
21527
+ console.log('selectedRowKeys', selectedRowKeys);
21528
+ console.log('currentTradeOriginGoods', currentTradeOriginGoods);
21445
21529
  onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
21446
21530
  };
21447
21531
  var rowSelection = {
@@ -21565,13 +21649,15 @@ var GoodItem$1 = function GoodItem(props) {
21565
21649
  tradeGoods = props.tradeGoods,
21566
21650
  form = props.form,
21567
21651
  systemOrders = props.systemOrders,
21568
- selectedSystemOrders = props.selectedSystemOrders;
21652
+ selectedSystemOrders = props.selectedSystemOrders,
21653
+ _props$templateDetail = props.templateDetail,
21654
+ templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
21569
21655
  var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
21570
21656
  // 监听聚水潭退货商品
21571
21657
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
21572
21658
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
21573
21659
  // 判断是否为商品信息组件
21574
- var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS'].includes(type) || false;
21660
+ var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
21575
21661
  var refModal = useRef();
21576
21662
  console.debug('表格数据', value);
21577
21663
  var handleDelete = function handleDelete(record, index) {
@@ -21659,6 +21745,7 @@ var GoodItem$1 = function GoodItem(props) {
21659
21745
  case 'KM_GOODS':
21660
21746
  case 'KM_REISSUE_GOODS':
21661
21747
  case 'JY_GOODS':
21748
+ case 'JY_REISSUE_GOODS':
21662
21749
  case 'SKX_GOODS':
21663
21750
  case 'SKX_RETURN_GOODS':
21664
21751
  {
@@ -21705,8 +21792,9 @@ var GoodItem$1 = function GoodItem(props) {
21705
21792
  var COLUMNS_INFO = COLUMNS_MAP(text);
21706
21793
  return COLUMNS_INFO(type);
21707
21794
  };
21708
- var newColumns = useMemo(function () {
21709
- var initBaseInfoColumns = GOODS_INFO_COLUMNS();
21795
+ var getShowFilterColumns = useCallback(function (_ref2) {
21796
+ var showHeader = _ref2.showHeader,
21797
+ initBaseInfoColumns = _ref2.initBaseInfoColumns;
21710
21798
  var baseInfoColumns = [];
21711
21799
  var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
21712
21800
  var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
@@ -21726,6 +21814,14 @@ var GoodItem$1 = function GoodItem(props) {
21726
21814
  return undefined;
21727
21815
  }).filter(Boolean);
21728
21816
  }
21817
+ return baseInfoColumns;
21818
+ }, [showHeader]);
21819
+ var newColumns = useMemo(function () {
21820
+ var initBaseInfoColumns = GOODS_INFO_COLUMNS();
21821
+ var baseInfoColumns = getShowFilterColumns({
21822
+ showHeader: showHeader,
21823
+ initBaseInfoColumns: initBaseInfoColumns
21824
+ });
21729
21825
  var columnList = [{
21730
21826
  dataIndex: '',
21731
21827
  title: '序号',
@@ -21762,8 +21858,16 @@ var GoodItem$1 = function GoodItem(props) {
21762
21858
  return columnList;
21763
21859
  }, [showHeader, value, disabled, hoveredRowIndex]);
21764
21860
  var orderModalColumns = useMemo(function () {
21765
- var list = newColumns.filter(function (col) {
21766
- return !['操作', '序号'].includes(col.title);
21861
+ var initBaseInfoColumns = COLUMNS_MAP('', {
21862
+ operate: false,
21863
+ disabled: true
21864
+ })(type);
21865
+ var baseInfoColumns = getShowFilterColumns({
21866
+ showHeader: showHeader,
21867
+ initBaseInfoColumns: initBaseInfoColumns
21868
+ });
21869
+ var list = baseInfoColumns.filter(function (col) {
21870
+ return !['操作'].includes(col.title);
21767
21871
  });
21768
21872
  return [{
21769
21873
  dataIndex: '',
@@ -21775,7 +21879,7 @@ var GoodItem$1 = function GoodItem(props) {
21775
21879
  return /*#__PURE__*/React.createElement("span", null, index + 1);
21776
21880
  }
21777
21881
  }].concat(_toConsumableArray(list));
21778
- }, [newColumns]);
21882
+ }, [showHeader, value, disabled, hoveredRowIndex]);
21779
21883
  var orderColumns = useMemo(function () {
21780
21884
  var columns = COLUMNS_MAP('', {
21781
21885
  operate: false,
@@ -21888,7 +21992,9 @@ var GoodItem$1 = function GoodItem(props) {
21888
21992
  maxLength: maxLength,
21889
21993
  companyKey: companyKey,
21890
21994
  goodsSource: goodsSource,
21891
- useGoodsSourceFormat: useGoodsSourceFormat
21995
+ useGoodsSourceFormat: useGoodsSourceFormat,
21996
+ form: form,
21997
+ templateDetail: templateDetail
21892
21998
  }));
21893
21999
  };
21894
22000
 
@@ -22523,7 +22629,7 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
22523
22629
  return _objectSpread2(_objectSpread2({}, item), {}, {
22524
22630
  billNo: item.tradeNo,
22525
22631
  billType: WDT_ORDER_TYPE_MAP[item.tradeType],
22526
- billTag: item.tagName,
22632
+ billTag: item.tagName || item.tags,
22527
22633
  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]
22528
22634
  });
22529
22635
  });
@@ -22764,16 +22870,22 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
22764
22870
  singletonMap$6.delete(orderNo);
22765
22871
  reject(err);
22766
22872
  };
22767
- extendRequest('/qy/gdfw/oms/jyOrderDetail', {
22873
+ extendRequest('/qy/gdfw/order/jyOrderDetail', {
22768
22874
  method: 'post',
22769
22875
  data: {
22770
- tid: orderNo
22876
+ billNo: orderNo
22771
22877
  }
22772
22878
  }).then(function (res) {
22773
22879
  if (res === null || res === void 0 ? void 0 : res.success) {
22774
- var _res$data;
22775
- if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
22776
- res.data.trades = filterJyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo);
22880
+ var _res$data, _res$data$tradeOrderD;
22881
+ if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
22882
+ var _filterJyOrders, _res$data2;
22883
+ res.data.trades = (_filterJyOrders = filterJyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJyOrders === void 0 ? void 0 : _filterJyOrders.map(function (item) {
22884
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22885
+ tradeType: JY_ORDER_TYPE_MAP[item.tradeType],
22886
+ tradeStatus: JY_ORDER_STATUS_MAP[item.tradeStatus]
22887
+ });
22888
+ });
22777
22889
  }
22778
22890
  resolve(res.data);
22779
22891
  // 延迟10秒清除,保证订单的时效性
@@ -22866,7 +22978,9 @@ var index$2 = (function (props) {
22866
22978
  var value = props.value,
22867
22979
  _onChange = props.onChange,
22868
22980
  disabled = props.disabled,
22869
- type = props.type;
22981
+ type = props.type,
22982
+ _props$showHeader = props.showHeader,
22983
+ showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
22870
22984
  var onceRef = useRef(false);
22871
22985
  var valueRef = useRef(null);
22872
22986
  useEffect(function () {
@@ -22894,8 +23008,12 @@ var index$2 = (function (props) {
22894
23008
  }
22895
23009
  }, [value, type]);
22896
23010
  var columns = useMemo(function () {
22897
- return columnsMap[type] || [];
22898
- }, [type]);
23011
+ var baseInfoColumns = getSystemShowHead({
23012
+ columns: columnsMap[type] || [],
23013
+ showHeader: showHeader
23014
+ });
23015
+ return baseInfoColumns || [];
23016
+ }, [type, showHeader]);
22899
23017
  var getOrderList = /*#__PURE__*/function () {
22900
23018
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
22901
23019
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -23197,7 +23315,8 @@ var index$2 = (function (props) {
23197
23315
  size: "small",
23198
23316
  pagination: false,
23199
23317
  scroll: {
23200
- x: 'max-content'
23318
+ x: '100%',
23319
+ y: 500
23201
23320
  },
23202
23321
  locale: {
23203
23322
  emptyText: '暂无数据'
@@ -24073,6 +24192,11 @@ var processAllOrders = function processAllOrders(_ref) {
24073
24192
  newList = processWlnOrders({
24074
24193
  data: data
24075
24194
  });
24195
+ } else if (isErpType$1.isJy(type)) {
24196
+ newList = processJyOrders({
24197
+ data: data,
24198
+ orderNo: orderNo
24199
+ });
24076
24200
  } else {
24077
24201
  newList = processDefaultOrders({
24078
24202
  data: data
@@ -24104,12 +24228,20 @@ var processGyOrders = function processGyOrders(_ref4) {
24104
24228
  });
24105
24229
  return trades;
24106
24230
  };
24107
- var processWlnOrders = function processWlnOrders(_ref5) {
24108
- var data = _ref5.data;
24109
- return (data === null || data === void 0 ? void 0 : data.orders) || [];
24231
+ var processJyOrders = function processJyOrders(_ref5) {
24232
+ var data = _ref5.data,
24233
+ orderNo = _ref5.orderNo;
24234
+ var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
24235
+ return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
24236
+ });
24237
+ return trades;
24110
24238
  };
24111
- var processDefaultOrders = function processDefaultOrders(_ref6) {
24239
+ var processWlnOrders = function processWlnOrders(_ref6) {
24112
24240
  var data = _ref6.data;
24241
+ return (data === null || data === void 0 ? void 0 : data.orders) || [];
24242
+ };
24243
+ var processDefaultOrders = function processDefaultOrders(_ref7) {
24244
+ var data = _ref7.data;
24113
24245
  return data || [];
24114
24246
  };
24115
24247
 
@@ -25227,10 +25359,25 @@ var typeMap$2 = {
25227
25359
  outerOiIdKey: '',
25228
25360
  goodDetailsKey: 'subOrders',
25229
25361
  uniqueKey: 'id'
25362
+ },
25363
+ JY_REISSUE_GOODS: {
25364
+ compType: '补发',
25365
+ key: 'jyReissueGoods',
25366
+ typeName: 'jyReissueType',
25367
+ systemOrder: 'jySystemOrder',
25368
+ systemOrderNo: 'jySystemOrderNo',
25369
+ getOrderList: jyUtils.getJyOrderListSingleton,
25370
+ updateGoodsHandle: updateJyGoodsHandle,
25371
+ alwaysShowChooseErpGoodsBtn: true,
25372
+ orderTypeKey: 'orderType',
25373
+ oIdKey: 'tradeNo',
25374
+ outerOiIdKey: '',
25375
+ goodDetailsKey: 'subOrderDetails',
25376
+ isShowSelectTradeGoods: true
25230
25377
  }
25231
25378
  };
25232
25379
  var PublicReissue = function PublicReissue(props) {
25233
- var _typeMap$type33, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _value$typeMap$type$s7, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49;
25380
+ var _typeMap$type34, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _value$typeMap$type$s8, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55;
25234
25381
  var value = props.value,
25235
25382
  onChange = props.onChange,
25236
25383
  _props$reasonList = props.reasonList,
@@ -25347,9 +25494,11 @@ var PublicReissue = function PublicReissue(props) {
25347
25494
  }))));
25348
25495
  };
25349
25496
  var getGoodDetails = function getGoodDetails(_ref4) {
25350
- var _typeMap$type18, _typeMap$type19, _order$typeMap$type$g, _typeMap$type20, _typeMap$type21;
25497
+ var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
25351
25498
  var mode = _ref4.mode,
25352
- sysOrderNo = _ref4.sysOrderNo;
25499
+ sysOrderNo = _ref4.sysOrderNo,
25500
+ _ref4$isAllOrders = _ref4.isAllOrders,
25501
+ isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
25353
25502
  var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
25354
25503
  var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
25355
25504
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
@@ -25363,39 +25512,48 @@ var PublicReissue = function PublicReissue(props) {
25363
25512
  orderBackGoodsLevel: props.orderBackGoodsLevel,
25364
25513
  canEdit: true
25365
25514
  };
25515
+ } else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
25516
+ orderRest = {
25517
+ canEdit: true
25518
+ };
25366
25519
  }
25367
- var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest)) : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle([order], orderRest) : [];
25520
+ var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : [order];
25521
+ var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
25522
+ var _order$typeMap$type$g;
25523
+ return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
25524
+ });
25525
+ var goodDetails = hasGoodDetails ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest)) : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest) : [];
25368
25526
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
25369
- var list = mode ? goodDetails.filter(function (goodItem) {
25527
+ var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
25370
25528
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
25371
25529
  }) : goodDetails;
25372
25530
  return list;
25373
25531
  };
25374
25532
  var changeGoodHandle = function changeGoodHandle(val) {
25375
- var _typeMap$type22;
25533
+ var _typeMap$type23;
25376
25534
  var newValue = _objectSpread2({}, value);
25377
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = val || [];
25535
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = val || [];
25378
25536
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
25379
25537
  };
25380
25538
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
25381
- var _typeMap$type23, _typeMap$type24, _value$typeMap$type$t2, _typeMap$type29, _value$typeMap$type$t3, _typeMap$type31;
25539
+ var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
25382
25540
  var newValue = _objectSpread2({}, value);
25383
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderNo)] = val;
25384
- if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderBillType) {
25385
- var _value$typeMap$type$s6, _typeMap$type25, _typeMap$type27, _typeMap$type28;
25386
- var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [];
25541
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo)] = val;
25542
+ if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderBillType) {
25543
+ var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
25544
+ var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
25387
25545
  var targetOrder = val && orders.find(function (oItem) {
25388
- var _typeMap$type26;
25389
- return oItem[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.oIdKey] === val;
25546
+ var _typeMap$type27;
25547
+ return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
25390
25548
  });
25391
- newValue[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.orderTypeKey];
25392
- }
25393
- if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
25394
- var _typeMap$type30;
25395
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)] = [];
25396
- } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
25397
- var _typeMap$type32;
25398
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)] = getGoodDetails({
25549
+ newValue[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.orderTypeKey];
25550
+ }
25551
+ if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
25552
+ var _typeMap$type31;
25553
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = [];
25554
+ } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
25555
+ var _typeMap$type33;
25556
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = getGoodDetails({
25399
25557
  mode: isStrict,
25400
25558
  sysOrderNo: val
25401
25559
  });
@@ -25403,26 +25561,27 @@ var PublicReissue = function PublicReissue(props) {
25403
25561
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
25404
25562
  };
25405
25563
  //显示选择商品按钮
25406
- var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.systemOrderNo]);
25564
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.systemOrderNo]);
25407
25565
  var selectedGoodsChange = useCallback(function (skuList) {
25408
- var _typeMap$type34, _typeMap$type35, _uniqBy, _typeMap$type36;
25566
+ var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
25409
25567
  var newValue = _objectSpread2({}, value);
25410
25568
  // 原订单商品
25411
25569
  var originTradeGoodList = getGoodDetails({
25412
- mode: isStrict
25570
+ mode: isStrict,
25571
+ isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.isShowSelectTradeGoods
25413
25572
  }) || [];
25414
25573
  // 当前选中的所有商品【包含了原订单+商品库】
25415
- var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)]) || [];
25416
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
25417
- var _typeMap$type37;
25418
- return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.uniqueKey]);
25574
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key)]) || [];
25575
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
25576
+ var _typeMap$type39;
25577
+ return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid']);
25419
25578
  });
25420
25579
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
25421
- }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)], isStrict]);
25580
+ }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.key)], isStrict]);
25422
25581
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
25423
25582
  gutter: 8,
25424
25583
  wrap: true,
25425
- id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.key) || "".concat(Date.now())
25584
+ id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key) || "".concat(Date.now())
25426
25585
  }, /*#__PURE__*/React.createElement(Col, {
25427
25586
  className: "gutter-row",
25428
25587
  xs: {
@@ -25438,12 +25597,12 @@ var PublicReissue = function PublicReissue(props) {
25438
25597
  },
25439
25598
  disabled: disabled,
25440
25599
  allowClear: false,
25441
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.systemOrderNo)],
25600
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.systemOrderNo)],
25442
25601
  onChange: function onChange(val) {
25443
25602
  return changeSystemOrderHandle(val);
25444
25603
  },
25445
- placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.compType) || '', "\u7CFB\u7EDF\u5355")
25446
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.showOrderInfo) || []).map(function (item) {
25604
+ placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.compType) || '', "\u7CFB\u7EDF\u5355")
25605
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
25447
25606
  return /*#__PURE__*/React.createElement(Select.Option, {
25448
25607
  key: item[typeMap$2[type].oIdKey],
25449
25608
  value: item[typeMap$2[type].oIdKey],
@@ -25465,11 +25624,11 @@ var PublicReissue = function PublicReissue(props) {
25465
25624
  disabled: isSettingConfig ? !isSettingConfig : disabled,
25466
25625
  allowClear: false,
25467
25626
  options: reasonList,
25468
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.typeName)],
25627
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.typeName)],
25469
25628
  onChange: function onChange(val) {
25470
25629
  return changeTypeHandle(val);
25471
25630
  }
25472
- })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
25631
+ })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
25473
25632
  className: "gutter-row",
25474
25633
  xs: {
25475
25634
  span: 11
@@ -25478,7 +25637,7 @@ var PublicReissue = function PublicReissue(props) {
25478
25637
  span: 6
25479
25638
  }
25480
25639
  }, /*#__PURE__*/React.createElement(Input, {
25481
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.systemOrderBillType)],
25640
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType)],
25482
25641
  disabled: disabled,
25483
25642
  readOnly: true
25484
25643
  }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -25487,22 +25646,25 @@ var PublicReissue = function PublicReissue(props) {
25487
25646
  type: type,
25488
25647
  disabled: disabled,
25489
25648
  canUpdateNumber: showChangeBtn,
25490
- showChangeBtn: showChangeBtn,
25491
- alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.alwaysShowChooseErpGoodsBtn,
25492
- showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.showErpGoodsBtn,
25649
+ showChangeBtn: showChangeBtn || (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.isShowSelectTradeGoods),
25650
+ alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
25651
+ showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.showErpGoodsBtn,
25493
25652
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
25494
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.key)],
25653
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.key)],
25495
25654
  onChange: function onChange(val) {
25496
25655
  return changeGoodHandle(val);
25497
25656
  },
25498
25657
  onModeChange: handleModeChange,
25499
25658
  showModeBtn: false,
25500
25659
  isStrict: isStrict,
25660
+ isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
25661
+ systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
25501
25662
  tradeGoods: {
25502
25663
  originDataSource: getGoodDetails({
25503
- mode: isStrict
25664
+ mode: isStrict,
25665
+ isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods
25504
25666
  }),
25505
- uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.uniqueKey) || 'uuid',
25667
+ uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.uniqueKey) || 'uuid',
25506
25668
  selectedGoodsChange: selectedGoodsChange
25507
25669
  }
25508
25670
  })));
@@ -27763,4 +27925,15 @@ var SkxGoods = function SkxGoods(props) {
27763
27925
  }));
27764
27926
  };
27765
27927
 
27766
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, 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, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
27928
+ var SYSTEM_ORDER_COLUMNS_MAP = {
27929
+ BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
27930
+ KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
27931
+ WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
27932
+ WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
27933
+ BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
27934
+ GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
27935
+ JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
27936
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
27937
+ };
27938
+
27939
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, 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, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, 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, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };