@kmkf-fe-packages/basic-components 2.2.44-beta.5 → 2.2.44-beta.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, JkyAddressData, 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, filterJkyOrders, JKY_ORDER_TYPE_MAP, JKY_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, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import every from 'lodash/every';
8
8
  import maxBy from 'lodash/maxBy';
9
9
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
@@ -7758,9 +7758,10 @@ var Province = function Province(props) {
7758
7758
  wdt: WdtAddressData.getInstance(),
7759
7759
  gy: GyAddressData.getInstance(),
7760
7760
  km: AddressData.getInstance(),
7761
- jst: JstAddressData.getInstance(),
7762
- jky: JkyAddressData.getInstance()
7761
+ jst: JstAddressData.getInstance()
7762
+ // jky: JkyAddressData.getInstance(),
7763
7763
  };
7764
+
7764
7765
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7765
7766
  options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
7766
7767
  style: {
@@ -7996,13 +7997,14 @@ function ApaasPosting(props) {
7996
7997
  });
7997
7998
  }
7998
7999
 
7999
- var _excluded$b = ["value", "onChange", "platformType", "type"];
8000
+ var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
8000
8001
  function ApaasLogistics(props) {
8001
8002
  var value = props.value,
8002
8003
  onChange = props.onChange,
8003
8004
  platformType = props.platformType,
8004
8005
  _props$type = props.type,
8005
8006
  type = _props$type === void 0 ? 'select' : _props$type,
8007
+ placement = props.placement,
8006
8008
  other = _objectWithoutProperties(props, _excluded$b);
8007
8009
  var _useState = useState([]),
8008
8010
  _useState2 = _slicedToArray(_useState, 2),
@@ -8040,12 +8042,13 @@ function ApaasLogistics(props) {
8040
8042
  return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
8041
8043
  value: value,
8042
8044
  onChange: handleInputChange
8043
- })) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
8045
+ })) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
8044
8046
  value: value,
8045
8047
  onChange: onChange,
8046
8048
  options: option,
8047
- virtual: true
8048
- }));
8049
+ virtual: true,
8050
+ placement: placement
8051
+ }, other));
8049
8052
  }
8050
8053
 
8051
8054
  var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
@@ -8129,6 +8132,11 @@ var systemOrderMap = {
8129
8132
  ids: 'wdtSystemSelectIds',
8130
8133
  order: 'wdtSystemShowOrder'
8131
8134
  },
8135
+ JKY_SYSTEM_ORDER: {
8136
+ no: 'jkySystemOrderNo',
8137
+ ids: 'jkySystemSelectIds',
8138
+ order: 'jkySystemShowOrder'
8139
+ },
8132
8140
  BS_E3_SYSTEM_ORDER: {
8133
8141
  no: 'bsE3SystemOrderNo',
8134
8142
  ids: 'bsE3SystemSelectIds',
@@ -8606,7 +8614,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
8606
8614
  WAREHOUSING_STATUS: 'inStockStatusItemList',
8607
8615
  BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8608
8616
  MSG_STATUS: 'msgStatusValues',
8609
- WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
8617
+ WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8618
+ JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
8610
8619
  };
8611
8620
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8612
8621
  };
@@ -8700,6 +8709,33 @@ var processBsGoods = function processBsGoods(getValue) {
8700
8709
  return _defineProperty({}, nex.uniqueKey, _values);
8701
8710
  };
8702
8711
  };
8712
+ var processJkyGoods = function processJkyGoods(templateColumns) {
8713
+ return function (getValue) {
8714
+ return function (nex, config) {
8715
+ var _values = {
8716
+ jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
8717
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8718
+ };
8719
+ var selectIds = [];
8720
+ var orderNo = '';
8721
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8722
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8723
+ });
8724
+ if (tradeId) {
8725
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8726
+ }
8727
+ var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8728
+ return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
8729
+ });
8730
+ if (jkySystemOrder) {
8731
+ selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
8732
+ }
8733
+ _values.selectIds = selectIds;
8734
+ _values.orderNo = orderNo;
8735
+ return _defineProperty({}, nex.uniqueKey, _values);
8736
+ };
8737
+ };
8738
+ };
8703
8739
  var processWdtGoods = function processWdtGoods(templateColumns) {
8704
8740
  return function (getValue) {
8705
8741
  return function (nex, config) {
@@ -8991,6 +9027,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8991
9027
  ids: 'wdtSystemSelectIds',
8992
9028
  order: 'wdtSystemShowOrder'
8993
9029
  },
9030
+ JKY_SYSTEM_ORDER: {
9031
+ no: 'jkySystemOrderNo',
9032
+ ids: 'jkySystemSelectIds',
9033
+ order: 'jkySystemShowOrder'
9034
+ },
8994
9035
  BS_E3_SYSTEM_ORDER: {
8995
9036
  no: 'bsE3SystemOrderNo',
8996
9037
  ids: 'bsE3SystemSelectIds',
@@ -9250,14 +9291,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9250
9291
  };
9251
9292
  var processLabel = function processLabel(getValue) {
9252
9293
  return function (nex, config) {
9253
- var _ref73;
9254
- return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
9294
+ var _ref74;
9295
+ return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
9255
9296
  };
9256
9297
  };
9257
9298
  var processMemberLevel = function processMemberLevel(getValue) {
9258
9299
  return function (nex, config) {
9259
- var _ref74;
9260
- return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
9300
+ var _ref75;
9301
+ return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
9261
9302
  };
9262
9303
  };
9263
9304
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9361,6 +9402,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9361
9402
  BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9362
9403
  MSG_STATUS: processSceneStatus,
9363
9404
  WDT_WAREHOUSING_STATUS: processSceneStatus,
9405
+ JKY_WAREHOUSING_STATUS: processSceneStatus,
9364
9406
  BS_LOGISTICS: processErpLogistics,
9365
9407
  WLN_LOGISTICS: processErpLogistics,
9366
9408
  WDT_LOGISTICS: processErpLogistics,
@@ -9376,6 +9418,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9376
9418
  BS_POSTING: processBsPosting,
9377
9419
  BS_GOODS: processBsGoods,
9378
9420
  WDT_GOODS: processWdtGoods(templateColumns),
9421
+ JKY_GOODS: processJkyGoods(templateColumns),
9379
9422
  WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9380
9423
  JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9381
9424
  BS_E3_GOODS: processBsE3Goods(templateColumns),
@@ -9394,6 +9437,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9394
9437
  KM_SYSTEM_ORDER: processErpSystemOrder,
9395
9438
  WLN_SYSTEM_ORDER: processErpSystemOrder,
9396
9439
  WDT_SYSTEM_ORDER: processErpSystemOrder,
9440
+ JKY_SYSTEM_ORDER: processErpSystemOrder,
9397
9441
  WDT_RETURN_BILL_NO: processErpSystemOrder,
9398
9442
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9399
9443
  JST_SYSTEM_ORDER: processErpSystemOrder,
@@ -9990,12 +10034,21 @@ var EditSplitRenderMap = {
9990
10034
  updateHandle = _ref17.updateHandle,
9991
10035
  disabled = _ref17.disabled;
9992
10036
  return /*#__PURE__*/React.createElement(ApaasLogistics, {
10037
+ getPopupContainer: function getPopupContainer() {
10038
+ return document.getElementById('subform');
10039
+ },
9993
10040
  value: val,
9994
10041
  allowClear: true,
10042
+ showSearch: true,
9995
10043
  onChange: function onChange(e) {
9996
10044
  return updateHandle(e, index, t.key);
9997
10045
  },
9998
- disabled: t.isEdit || disabled
10046
+ disabled: t.isEdit || disabled,
10047
+ filterOption: function filterOption(input, option) {
10048
+ return option.label.includes(input);
10049
+ },
10050
+ placement: "topLeft",
10051
+ listHeight: 120
9999
10052
  });
10000
10053
  },
10001
10054
  //退货物流-物流公司
@@ -10006,12 +10059,21 @@ var EditSplitRenderMap = {
10006
10059
  updateHandle = _ref18.updateHandle,
10007
10060
  disabled = _ref18.disabled;
10008
10061
  return /*#__PURE__*/React.createElement(ApaasLogistics, {
10062
+ getPopupContainer: function getPopupContainer() {
10063
+ return document.getElementById('subform');
10064
+ },
10009
10065
  value: val,
10010
10066
  allowClear: true,
10067
+ showSearch: true,
10011
10068
  onChange: function onChange(e) {
10012
10069
  return updateHandle(e, index, t.key);
10013
10070
  },
10014
- disabled: t.isEdit || disabled
10071
+ disabled: t.isEdit || disabled,
10072
+ filterOption: function filterOption(input, option) {
10073
+ return option.label.includes(input);
10074
+ },
10075
+ placement: "topLeft",
10076
+ listHeight: 120
10015
10077
  });
10016
10078
  }
10017
10079
  };
@@ -10480,7 +10542,11 @@ var SubForm = function SubForm(props) {
10480
10542
  });
10481
10543
  }, [inputValue]);
10482
10544
  var handleOpenChange = function handleOpenChange(newOpen) {
10483
- setOpen(newOpen);
10545
+ if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
10546
+ setOpen(newOpen);
10547
+ } else {
10548
+ setOpen(false);
10549
+ }
10484
10550
  };
10485
10551
  var onChangeInput = useCallback(debounce(function (val) {
10486
10552
  setInputValue(val);
@@ -10568,6 +10634,9 @@ var SubForm = function SubForm(props) {
10568
10634
  visible: open,
10569
10635
  onVisibleChange: handleOpenChange
10570
10636
  }, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
10637
+ getPopupContainer: function getPopupContainer() {
10638
+ return document.getElementById('subform');
10639
+ },
10571
10640
  value: undefined,
10572
10641
  onChange: function onChange(val) {
10573
10642
  onChangeInput(val);
@@ -10580,7 +10649,9 @@ var SubForm = function SubForm(props) {
10580
10649
  },
10581
10650
  filterOption: function filterOption(input, option) {
10582
10651
  return option.label.includes(input);
10583
- }
10652
+ },
10653
+ placement: "topLeft",
10654
+ listHeight: 120
10584
10655
  }) : /*#__PURE__*/React.createElement(Input, {
10585
10656
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
10586
10657
  allowClear: true,
@@ -12099,7 +12170,7 @@ var ChooseBaby = function ChooseBaby(props) {
12099
12170
  }));
12100
12171
  };
12101
12172
 
12102
- var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
12173
+ var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
12103
12174
  styleInject(css_248z$7);
12104
12175
 
12105
12176
  var GoodItem = function GoodItem(props) {
@@ -12428,13 +12499,22 @@ var GoodItem = function GoodItem(props) {
12428
12499
  var hasAttr = useMemo(function () {
12429
12500
  return hasPic ? headerList.length > 1 : headerList.length > 0;
12430
12501
  }, [hasPic, headerList]);
12502
+ var clearAll = function clearAll() {
12503
+ onChange === null || onChange === void 0 ? void 0 : onChange({
12504
+ shopId: shopId,
12505
+ imgList: []
12506
+ });
12507
+ };
12431
12508
  return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
12432
12509
  className: "goods-title"
12433
12510
  }, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
12434
12511
  className: "goods-uploaded-state"
12435
12512
  }, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
12436
12513
  className: "goods-uploaded-count"
12437
- }, imgList.length), "/", maxLength, "\u4E2A\u5B9D\u8D1D"), /*#__PURE__*/React.createElement("div", {
12514
+ }, imgList.length), "/", maxLength, /*#__PURE__*/React.createElement("span", {
12515
+ className: 'clear-all',
12516
+ onClick: clearAll
12517
+ }, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
12438
12518
  ref: boxRef,
12439
12519
  id: "goods-wrap",
12440
12520
  className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
@@ -15088,12 +15168,7 @@ var kmColumns = [{
15088
15168
  ellipsis: true,
15089
15169
  width: 150,
15090
15170
  render: function render(type) {
15091
- return renderTextEllipsis({
15092
- 0: '普通',
15093
- 1: 'sku套件',
15094
- 2: '纯套件',
15095
- 3: '包材商品'
15096
- }[type] || type);
15171
+ return renderTextEllipsis((kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[type]) || type);
15097
15172
  }
15098
15173
  }, {
15099
15174
  dataIndex: 'specName',
@@ -15326,34 +15401,75 @@ var jyColumns = [{
15326
15401
  }
15327
15402
  }];
15328
15403
 
15404
+ var getYesOrNo$2 = function getYesOrNo(val) {
15405
+ if (!isBoolean(val)) return null;
15406
+ return val ? '是' : '否';
15407
+ };
15329
15408
  var jkyColumns = [{
15330
- dataIndex: 'goodsNo',
15331
- title: "\u8D27\u54C1\u7F16\u53F7",
15409
+ dataIndex: 'goodName',
15410
+ title: "\u8D27\u54C1\u540D\u79F0",
15332
15411
  align: 'center',
15333
15412
  ellipsis: true,
15334
15413
  width: 150,
15335
15414
  render: renderTextEllipsis
15336
15415
  }, {
15337
- dataIndex: 'goodsName',
15338
- title: "\u8D27\u54C1\u540D\u79F0",
15416
+ dataIndex: 'goodNo',
15417
+ title: "\u8D27\u54C1\u7F16\u53F7",
15339
15418
  align: 'center',
15340
15419
  ellipsis: true,
15341
15420
  width: 150,
15342
15421
  render: renderTextEllipsis
15343
15422
  }, {
15344
- dataIndex: 'goodsId',
15423
+ dataIndex: 'goodId',
15345
15424
  title: "\u8D27\u54C1ID",
15346
15425
  align: 'center',
15347
15426
  ellipsis: true,
15348
15427
  width: 150,
15349
15428
  render: renderTextEllipsis
15350
15429
  }, {
15351
- dataIndex: 'barcode',
15430
+ dataIndex: 'goodPicUrl',
15431
+ title: "\u8D27\u54C1\u4E3B\u56FE",
15432
+ align: 'center',
15433
+ ellipsis: true,
15434
+ width: 150,
15435
+ render: function render(picUrl) {
15436
+ return /*#__PURE__*/React.createElement("img", {
15437
+ style: {
15438
+ width: '30px',
15439
+ height: '30px',
15440
+ objectFit: 'contain'
15441
+ },
15442
+ src: picUrl
15443
+ });
15444
+ }
15445
+ }, {
15446
+ dataIndex: 'goodShortName',
15447
+ title: "\u8D27\u54C1\u522B\u540D",
15448
+ align: 'center',
15449
+ ellipsis: true,
15450
+ width: 150,
15451
+ render: renderTextEllipsis
15452
+ }, {
15453
+ dataIndex: 'specBarcode',
15352
15454
  title: "\u8D27\u54C1\u6761\u7801",
15353
15455
  align: 'center',
15354
15456
  ellipsis: true,
15355
15457
  width: 150,
15356
15458
  render: renderTextEllipsis
15459
+ }, {
15460
+ dataIndex: 'categoryName',
15461
+ title: "\u8D27\u54C1\u7C7B\u522B",
15462
+ align: 'center',
15463
+ ellipsis: true,
15464
+ width: 150,
15465
+ render: renderTextEllipsis
15466
+ }, {
15467
+ dataIndex: 'brandName',
15468
+ title: "\u54C1\u724C",
15469
+ align: 'center',
15470
+ ellipsis: true,
15471
+ width: 200,
15472
+ render: renderTextEllipsis
15357
15473
  }, {
15358
15474
  dataIndex: 'specName',
15359
15475
  title: "\u89C4\u683C\u540D\u79F0",
@@ -15369,7 +15485,14 @@ var jkyColumns = [{
15369
15485
  width: 150,
15370
15486
  render: renderTextEllipsis
15371
15487
  }, {
15372
- dataIndex: 'skuImgUrl',
15488
+ dataIndex: 'specNo',
15489
+ title: "\u89C4\u683C\u7F16\u7801",
15490
+ align: 'center',
15491
+ ellipsis: true,
15492
+ width: 150,
15493
+ render: renderTextEllipsis
15494
+ }, {
15495
+ dataIndex: 'specImgUrl',
15373
15496
  title: "\u89C4\u683C\u56FE\u7247",
15374
15497
  align: 'center',
15375
15498
  ellipsis: true,
@@ -15385,162 +15508,78 @@ var jkyColumns = [{
15385
15508
  });
15386
15509
  }
15387
15510
  }, {
15388
- dataIndex: 'sellCount',
15389
- title: "\u6570\u91CF",
15390
- width: 100,
15391
- render: function render(val) {
15392
- return /*#__PURE__*/React.createElement("span", null, val);
15393
- }
15394
- }, {
15395
- dataIndex: 'actualSendCount',
15396
- title: "\u5B9E\u53D1\u6570\u91CF",
15397
- width: 150,
15398
- render: renderTextEllipsis
15399
- }, {
15400
- dataIndex: 'sellPrice',
15401
- title: "\u5355\u4EF7",
15402
- width: 150,
15403
- render: function render(val) {
15404
- return val || val === 0 ? Number(val).toFixed(2) : '';
15405
- }
15406
- }, {
15407
- dataIndex: 'sellTotal',
15408
- title: "\u91D1\u989D",
15409
- width: 150
15410
- }, {
15411
- dataIndex: 'discountTotal',
15412
- title: "\u62B5\u6263\u91D1\u989D",
15413
- width: 150
15414
- }, {
15415
- dataIndex: 'shareFavourableFee',
15416
- title: "\u5206\u644A\u91D1\u989D",
15417
- width: 150
15418
- }, {
15419
- dataIndex: 'shareFavourableAfterFee',
15420
- title: "\u5206\u644A\u540E\u91D1\u989D",
15421
- width: 150
15422
- }, {
15423
- dataIndex: 'customerPrice',
15424
- title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
15425
- width: 150
15426
- }, {
15427
- dataIndex: 'customerTotal',
15428
- title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
15429
- width: 150
15430
- }, {
15431
- dataIndex: 'divideSellTotal',
15432
- title: "\u5B9E\u4ED8\u91D1\u989D",
15433
- width: 150
15434
- }, {
15435
- dataIndex: 'isGift',
15436
- title: "\u662F\u5426\u8D60\u54C1",
15437
- width: 150,
15438
- render: function render(val) {
15439
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15440
- }
15441
- }, {
15442
- dataIndex: 'isFit',
15443
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
15444
- width: 150,
15445
- render: function render(val) {
15446
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15447
- }
15448
- }, {
15449
- dataIndex: 'isPresell',
15450
- title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
15451
- width: 150,
15452
- render: function render(val) {
15453
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15454
- }
15455
- }, {
15456
- dataIndex: 'brandName',
15457
- title: "\u54C1\u724C",
15511
+ dataIndex: 'colorName',
15512
+ title: "\u989C\u8272\u540D\u79F0",
15458
15513
  align: 'center',
15459
15514
  ellipsis: true,
15460
- width: 200,
15515
+ width: 150,
15461
15516
  render: renderTextEllipsis
15462
15517
  }, {
15463
- dataIndex: 'cateName',
15464
- title: "\u8D27\u54C1\u7C7B\u522B",
15518
+ dataIndex: 'colorCode',
15519
+ title: "\u989C\u8272\u4EE3\u7801",
15465
15520
  align: 'center',
15466
15521
  ellipsis: true,
15467
15522
  width: 150,
15468
15523
  render: renderTextEllipsis
15469
15524
  }, {
15470
- dataIndex: 'goodsTags',
15471
- title: "\u8D27\u54C1\u6807\u7B7E",
15525
+ dataIndex: 'sizeName',
15526
+ title: "\u5C3A\u7801\u540D\u79F0",
15472
15527
  align: 'center',
15473
15528
  ellipsis: true,
15474
- width: 250,
15529
+ width: 150,
15475
15530
  render: renderTextEllipsis
15476
15531
  }, {
15477
- dataIndex: 'goodsMemo',
15478
- title: "\u8D27\u54C1\u5907\u6CE8",
15532
+ dataIndex: 'sizeCode',
15533
+ title: "\u5C3A\u7801\u4EE3\u7801",
15479
15534
  align: 'center',
15480
15535
  ellipsis: true,
15481
- width: 250,
15536
+ width: 150,
15482
15537
  render: renderTextEllipsis
15483
15538
  }, {
15484
- dataIndex: 'tradeGoodsNo',
15485
- title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
15539
+ dataIndex: 'marketPrice',
15540
+ title: "\u5E02\u573A\u4EF7",
15486
15541
  align: 'center',
15487
15542
  ellipsis: true,
15488
- width: 250,
15489
- render: renderTextEllipsis
15490
- }, {
15491
- dataIndex: 'tradeGoodsName',
15492
- title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
15493
- ellipsis: true,
15494
- width: 250,
15495
- render: renderTextEllipsis
15496
- }, {
15497
- dataIndex: 'tradeGoodsSpec',
15498
- title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
15499
- ellipsis: true,
15500
- width: 250,
15501
- render: renderTextEllipsis
15502
- }, {
15503
- dataIndex: 'sourceSubtradeNo',
15504
- title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
15505
- ellipsis: true,
15506
- width: 250,
15507
- render: renderTextEllipsis
15508
- }, {
15509
- dataIndex: 'platGoodsId',
15510
- title: "\u5E73\u53F0\u5546\u54C1ID",
15511
- ellipsis: true,
15512
- width: 250,
15543
+ width: 150,
15513
15544
  render: renderTextEllipsis
15514
15545
  }, {
15515
- dataIndex: 'subTradeId',
15516
- title: "\u5546\u54C1\u660E\u7EC6ID",
15546
+ dataIndex: 'retailPrice',
15547
+ title: "\u96F6\u552E\u4EF7",
15548
+ align: 'center',
15517
15549
  ellipsis: true,
15518
- width: 250,
15550
+ width: 150,
15519
15551
  render: renderTextEllipsis
15520
15552
  }, {
15521
- dataIndex: 'batchNo',
15522
- title: "\u6279\u6B21\u53F7",
15553
+ dataIndex: 'memberPrice',
15554
+ title: "\u4F1A\u5458\u4EF7",
15555
+ align: 'center',
15523
15556
  ellipsis: true,
15524
- width: 250,
15557
+ width: 150,
15525
15558
  render: renderTextEllipsis
15526
15559
  }, {
15527
- dataIndex: 'sendCount',
15528
- title: "\u6279\u6B21\u6570\u91CF",
15560
+ dataIndex: 'costPrice',
15561
+ title: "\u6210\u672C\u4EF7",
15562
+ align: 'center',
15529
15563
  ellipsis: true,
15530
- width: 250,
15564
+ width: 150,
15531
15565
  render: renderTextEllipsis
15532
15566
  }, {
15533
- dataIndex: 'productDate',
15534
- title: "\u751F\u4EA7\u65E5\u671F",
15567
+ dataIndex: 'isVirtual',
15568
+ title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
15569
+ align: 'center',
15535
15570
  ellipsis: true,
15536
- width: 250,
15537
- render: renderTextEllipsis
15571
+ width: 150,
15572
+ render: function render(val) {
15573
+ return renderTextEllipsis(getYesOrNo$2(val));
15574
+ }
15538
15575
  }, {
15539
- dataIndex: 'expireDate',
15540
- title: "\u5230\u671F\u65E5\u671F",
15576
+ dataIndex: 'skuType',
15577
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
15541
15578
  ellipsis: true,
15542
- width: 250,
15543
- render: renderTextEllipsis
15579
+ width: 150,
15580
+ render: function render(val) {
15581
+ return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
15582
+ }
15544
15583
  }];
15545
15584
 
15546
15585
  var getColumnsMap = function getColumnsMap() {
@@ -18783,13 +18822,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
18783
18822
  var getTableData$6 = function getTableData(_ref, formData) {
18784
18823
  var current = _ref.current,
18785
18824
  pageSize = _ref.pageSize;
18825
+ var conditionList = transformFormData(formData);
18786
18826
  return extendRequest('/qy/gdfw/product/product/page', {
18787
18827
  method: 'post',
18788
- data: _objectSpread2({
18828
+ data: {
18789
18829
  pageSize: pageSize,
18790
18830
  pageNo: current,
18791
- platform: 'JY_ERP'
18792
- }, formData)
18831
+ platform: 'JKY_ERP',
18832
+ conditionList: conditionList
18833
+ }
18793
18834
  }).then(function (res) {
18794
18835
  var _res$data = res.data,
18795
18836
  _res$data$productSkuL = _res$data.productSkuList,
@@ -18812,13 +18853,15 @@ var searchFormData$5 = [{
18812
18853
  }, {
18813
18854
  label: '规格编码',
18814
18855
  name: 'skuCode',
18815
- dataIndex: 'specNo'
18856
+ dataIndex: 'specNo',
18857
+ type: 'optionalInput'
18816
18858
  }, {
18817
- label: '商品名称',
18859
+ label: '货品名称',
18818
18860
  name: 'goodName'
18819
18861
  }, {
18820
- label: '商品编码',
18821
- name: 'goodNo'
18862
+ label: '货品编码',
18863
+ name: 'goodNo',
18864
+ type: 'optionalInput'
18822
18865
  }];
18823
18866
  var GoodList$6 = function GoodList(props, ref) {
18824
18867
  var _useState = useState([]),
@@ -18888,8 +18931,8 @@ var GoodList$6 = function GoodList(props, ref) {
18888
18931
  getCheckboxProps: function getCheckboxProps(record) {
18889
18932
  var options = {
18890
18933
  disabled: (props.selectedRows || []).map(function (row) {
18891
- return row.id || row.specId;
18892
- }).includes(record.id || record.specId),
18934
+ return row.specId || record.id;
18935
+ }).includes(record.specId || record.id),
18893
18936
  name: record.id
18894
18937
  };
18895
18938
  return options;
@@ -20336,7 +20379,7 @@ var getColumns$2 = function getColumns(_ref) {
20336
20379
  };
20337
20380
  };
20338
20381
 
20339
- var getYesOrNo$2 = function getYesOrNo(val) {
20382
+ var getYesOrNo$3 = function getYesOrNo(val) {
20340
20383
  if (isNull(val)) return null;
20341
20384
  return val ? '是' : '否';
20342
20385
  };
@@ -20487,7 +20530,7 @@ var getColumns$3 = function getColumns(_ref) {
20487
20530
  label: '否',
20488
20531
  value: false
20489
20532
  }]
20490
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
20533
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20491
20534
  },
20492
20535
  width: 100
20493
20536
  }]
@@ -20499,7 +20542,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
20499
20542
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
20500
20543
  return false;
20501
20544
  };
20502
- var getYesOrNo$3 = function getYesOrNo(val) {
20545
+ var getYesOrNo$4 = function getYesOrNo(val) {
20503
20546
  if (isNull(val)) return null;
20504
20547
  return val ? '是' : '否';
20505
20548
  };
@@ -20614,7 +20657,7 @@ var getColumns$4 = function getColumns(_ref) {
20614
20657
  title: "\u662F\u5426\u53D6\u6D88",
20615
20658
  width: 150,
20616
20659
  render: function render(val) {
20617
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20660
+ return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20618
20661
  }
20619
20662
  }, {
20620
20663
  dataIndex: 'isGift',
@@ -20633,7 +20676,7 @@ var getColumns$4 = function getColumns(_ref) {
20633
20676
  label: '否',
20634
20677
  value: 0
20635
20678
  }]
20636
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20679
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20637
20680
  }
20638
20681
  }, {
20639
20682
  dataIndex: 'skuNote',
@@ -20759,7 +20802,7 @@ var getColumns$4 = function getColumns(_ref) {
20759
20802
  label: '否',
20760
20803
  value: 0
20761
20804
  }]
20762
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20805
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20763
20806
  }
20764
20807
  }].map(function (item) {
20765
20808
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20888,7 +20931,7 @@ var getColumns$4 = function getColumns(_ref) {
20888
20931
  label: '否',
20889
20932
  value: 0
20890
20933
  }]
20891
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20934
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20892
20935
  }
20893
20936
  }].map(function (item) {
20894
20937
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -22528,7 +22571,7 @@ var getColumns$9 = function getColumns(_ref) {
22528
22571
  }
22529
22572
  }, {
22530
22573
  dataIndex: 'sellTotal',
22531
- title: "\u91D1\u989D",
22574
+ title: "\u603B\u91D1\u989D",
22532
22575
  width: 150
22533
22576
  }, {
22534
22577
  dataIndex: 'discountTotal',
@@ -22553,7 +22596,22 @@ var getColumns$9 = function getColumns(_ref) {
22553
22596
  }, {
22554
22597
  dataIndex: 'divideSellTotal',
22555
22598
  title: "\u5B9E\u4ED8\u91D1\u989D",
22556
- width: 150
22599
+ width: 150,
22600
+ render: function render(val, record, index) {
22601
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22602
+ style: {
22603
+ width: 130
22604
+ },
22605
+ value: val,
22606
+ min: 0,
22607
+ precision: 2,
22608
+ onChange: function onChange(num) {
22609
+ updateDataHandle({
22610
+ divideSellTotal: num
22611
+ }, index);
22612
+ }
22613
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22614
+ }
22557
22615
  }, {
22558
22616
  dataIndex: 'isGift',
22559
22617
  title: "\u662F\u5426\u8D60\u54C1",
@@ -22572,12 +22630,12 @@ var getColumns$9 = function getColumns(_ref) {
22572
22630
  },
22573
22631
  options: [{
22574
22632
  label: '是',
22575
- value: '1'
22633
+ value: 1
22576
22634
  }, {
22577
22635
  label: '否',
22578
- value: '0'
22636
+ value: 0
22579
22637
  }]
22580
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22638
+ }) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
22581
22639
  }
22582
22640
  }, {
22583
22641
  dataIndex: 'isFit',
@@ -22597,12 +22655,12 @@ var getColumns$9 = function getColumns(_ref) {
22597
22655
  },
22598
22656
  options: [{
22599
22657
  label: '是',
22600
- value: '1'
22658
+ value: 1
22601
22659
  }, {
22602
22660
  label: '否',
22603
- value: '0'
22661
+ value: 0
22604
22662
  }]
22605
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22663
+ }) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
22606
22664
  }
22607
22665
  }, {
22608
22666
  dataIndex: 'isPresell',
@@ -22627,7 +22685,7 @@ var getColumns$9 = function getColumns(_ref) {
22627
22685
  label: '否',
22628
22686
  value: '0'
22629
22687
  }]
22630
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22688
+ }) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
22631
22689
  }
22632
22690
  }, {
22633
22691
  dataIndex: 'brandName',
@@ -22846,8 +22904,8 @@ var getColumns$9 = function getColumns(_ref) {
22846
22904
  width: 250,
22847
22905
  render: function render(val, record, index) {
22848
22906
  return !disabled ? /*#__PURE__*/React.createElement(ApaasInput, {
22849
- onChange: function onChange(value) {
22850
- updateHandle(value, index, 'reason');
22907
+ onChange: function onChange(e) {
22908
+ updateHandle(e.target.value, index, 'reason');
22851
22909
  }
22852
22910
  }) : /*#__PURE__*/React.createElement("span", null, val);
22853
22911
  }
@@ -22863,12 +22921,12 @@ var getColumns$9 = function getColumns(_ref) {
22863
22921
  },
22864
22922
  options: [{
22865
22923
  label: '是',
22866
- value: '1'
22924
+ value: 1
22867
22925
  }, {
22868
22926
  label: '否',
22869
- value: '0'
22927
+ value: 0
22870
22928
  }]
22871
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22929
+ }) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
22872
22930
  }
22873
22931
  }, {
22874
22932
  dataIndex: 'isFit',
@@ -22882,12 +22940,12 @@ var getColumns$9 = function getColumns(_ref) {
22882
22940
  },
22883
22941
  options: [{
22884
22942
  label: '是',
22885
- value: 'True'
22943
+ value: 1
22886
22944
  }, {
22887
22945
  label: '否',
22888
- value: 'False'
22946
+ value: 0
22889
22947
  }]
22890
- }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
22948
+ }) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
22891
22949
  }
22892
22950
  }, {
22893
22951
  dataIndex: 'brandName',
@@ -23271,6 +23329,13 @@ var processGoods$1 = function processGoods(_ref) {
23271
23329
  canUpdateNumber: canUpdateNumber,
23272
23330
  source: source
23273
23331
  });
23332
+ } else if (isErpType.isJky(type)) {
23333
+ newList = processJkyGoods$1({
23334
+ list: list,
23335
+ type: type,
23336
+ canUpdateNumber: canUpdateNumber,
23337
+ source: source
23338
+ });
23274
23339
  } else {
23275
23340
  newList = processDefaultGoods({
23276
23341
  list: list,
@@ -23319,11 +23384,45 @@ var processJyGoods = function processJyGoods(_ref2) {
23319
23384
  });
23320
23385
  });
23321
23386
  };
23322
- // 处理不同类型的商品数据
23323
- var processWdtGoods$1 = function processWdtGoods(_ref3) {
23387
+ var processJkyGoods$1 = function processJkyGoods(_ref3) {
23324
23388
  var list = _ref3.list,
23325
- type = _ref3.type,
23326
23389
  canUpdateNumber = _ref3.canUpdateNumber;
23390
+ return list.map(function (item) {
23391
+ var goodName = item.goodName,
23392
+ goodNo = item.goodNo,
23393
+ goodId = item.goodId,
23394
+ specBarcode = item.specBarcode,
23395
+ retailPrice = item.retailPrice,
23396
+ isGift = item.isGift,
23397
+ skuType = item.skuType,
23398
+ specImgUrl = item.specImgUrl,
23399
+ categoryName = item.categoryName;
23400
+ return _objectSpread2(_objectSpread2({}, item), {}, {
23401
+ cateName: categoryName,
23402
+ goodsName: goodName,
23403
+ goodsNo: goodNo,
23404
+ goodsId: goodId,
23405
+ barcode: specBarcode,
23406
+ skuImgUrl: specImgUrl,
23407
+ combinationName: goodName,
23408
+ combinationCode: goodNo,
23409
+ isGift: isGift ? 1 : 0,
23410
+ isFit: skuType === 'combine' ? 1 : 0,
23411
+ uuid: uuid(),
23412
+ canDelete: true,
23413
+ sellCount: 1,
23414
+ sellPrice: retailPrice,
23415
+ sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
23416
+ canEdit: true,
23417
+ canUpdateNumber: canUpdateNumber
23418
+ });
23419
+ });
23420
+ };
23421
+ // 处理不同类型的商品数据
23422
+ var processWdtGoods$1 = function processWdtGoods(_ref4) {
23423
+ var list = _ref4.list,
23424
+ type = _ref4.type,
23425
+ canUpdateNumber = _ref4.canUpdateNumber;
23327
23426
  return list.map(function (item) {
23328
23427
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
23329
23428
  uuid: uuid(),
@@ -23341,9 +23440,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
23341
23440
  return processedItem;
23342
23441
  });
23343
23442
  };
23344
- var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
23345
- var list = _ref4.list,
23346
- canUpdateNumber = _ref4.canUpdateNumber;
23443
+ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
23444
+ var list = _ref5.list,
23445
+ canUpdateNumber = _ref5.canUpdateNumber;
23347
23446
  return list.map(function (item) {
23348
23447
  var specNo = item.specNo,
23349
23448
  specId = item.specId,
@@ -23378,9 +23477,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
23378
23477
  });
23379
23478
  });
23380
23479
  };
23381
- var processGyGoods$1 = function processGyGoods(_ref5) {
23382
- var list = _ref5.list,
23383
- source = _ref5.source;
23480
+ var processGyGoods$1 = function processGyGoods(_ref6) {
23481
+ var list = _ref6.list,
23482
+ source = _ref6.source;
23384
23483
  var isFormWorkOrder = source === 'workOrder';
23385
23484
  return list.map(function (item) {
23386
23485
  var goodName = item.goodName,
@@ -23407,8 +23506,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
23407
23506
  });
23408
23507
  });
23409
23508
  };
23410
- var processJstGoods$1 = function processJstGoods(_ref6) {
23411
- var list = _ref6.list;
23509
+ var processJstGoods$1 = function processJstGoods(_ref7) {
23510
+ var list = _ref7.list;
23412
23511
  return list.map(function (item) {
23413
23512
  return {
23414
23513
  name: item.goodName,
@@ -23426,9 +23525,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
23426
23525
  };
23427
23526
  });
23428
23527
  };
23429
- var processKmGoods$1 = function processKmGoods(_ref7) {
23430
- var list = _ref7.list,
23431
- type = _ref7.type;
23528
+ var processKmGoods$1 = function processKmGoods(_ref8) {
23529
+ var list = _ref8.list,
23530
+ type = _ref8.type;
23432
23531
  var initParamsMap = {
23433
23532
  KM_GOODS: {
23434
23533
  num: 1
@@ -23447,20 +23546,22 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
23447
23546
  sysOuterId: item.goodNo,
23448
23547
  outerId: item.goodNo,
23449
23548
  skuSysId: item.specId,
23549
+ sysSkuId: item.specId,
23450
23550
  itemSysId: item.goodId,
23551
+ sysItemId: item.goodId,
23451
23552
  sysPicPath: item.goodPicUrl,
23452
23553
  payment: null,
23453
23554
  price: item.retailPrice,
23454
- type: null,
23555
+ type: (kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[item === null || item === void 0 ? void 0 : item.skuType]) || '',
23455
23556
  uuid: uuid(),
23456
23557
  canDelete: true,
23457
23558
  canEdit: true
23458
23559
  }, initParamsMap[type] || {});
23459
23560
  });
23460
23561
  };
23461
- var processDefaultGoods = function processDefaultGoods(_ref8) {
23462
- var list = _ref8.list,
23463
- canUpdateNumber = _ref8.canUpdateNumber;
23562
+ var processDefaultGoods = function processDefaultGoods(_ref9) {
23563
+ var list = _ref9.list,
23564
+ canUpdateNumber = _ref9.canUpdateNumber;
23464
23565
  return list.map(function (item) {
23465
23566
  var goodsId = item.goodsId,
23466
23567
  name = item.name,
@@ -23566,7 +23667,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23566
23667
  systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
23567
23668
  return item === null || item === void 0 ? void 0 : item.sysItemId;
23568
23669
  }).map(function (item) {
23569
- return (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
23670
+ return !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
23570
23671
  });
23571
23672
  _context.next = 3;
23572
23673
  return servers.KM.getSupplierSingleton(systemItemIds);
@@ -23575,7 +23676,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23575
23676
  dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
23576
23677
  return item === null || item === void 0 ? void 0 : item.sysItemId;
23577
23678
  })) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
23578
- var key = (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
23679
+ var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
23579
23680
  var supplierInfo = supplierMap.get(key);
23580
23681
  item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
23581
23682
  item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
@@ -23733,6 +23834,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23733
23834
  }
23734
23835
  }), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
23735
23836
  };
23837
+ SelectTradeGoods.displayName = 'SelectTradeGoods';
23736
23838
  var getButtonText = function getButtonText() {
23737
23839
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
23738
23840
  if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
@@ -25122,21 +25224,25 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
25122
25224
  extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
25123
25225
  method: 'post',
25124
25226
  data: {
25125
- billNo: orderNo
25227
+ sourceTradeNos: orderNo
25126
25228
  }
25127
25229
  }).then(function (res) {
25128
25230
  if (res === null || res === void 0 ? void 0 : res.success) {
25129
- var _res$data, _res$data$tradeOrderD, _res$data3;
25130
- 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) {
25131
- var _filterJkyOrders, _res$data2;
25132
- res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
25231
+ var _res$data, _res$data2;
25232
+ if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
25233
+ var _filterJkyOrders;
25234
+ res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
25133
25235
  return _objectSpread2(_objectSpread2({}, item), {}, {
25236
+ tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
25134
25237
  tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
25135
- tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
25238
+ tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus],
25239
+ logisticName: getJkyLogisticInfo(item, 'logisticName'),
25240
+ logisticCode: getJkyLogisticInfo(item, 'logisticCode'),
25241
+ logisticNo: getJkyLogisticInfo(item, 'logisticNo')
25136
25242
  });
25137
25243
  });
25138
25244
  }
25139
- resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
25245
+ resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
25140
25246
  // 延迟10秒清除,保证订单的时效性
25141
25247
  setTimeout(function () {
25142
25248
  singletonMap$7.delete(orderNo);
@@ -25498,7 +25604,7 @@ var index$2 = (function (props) {
25498
25604
  while (1) switch (_context8.prev = _context8.next) {
25499
25605
  case 0:
25500
25606
  jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
25501
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25607
+ var trades = (data || []).filter(function (item) {
25502
25608
  return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
25503
25609
  });
25504
25610
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
@@ -25529,12 +25635,9 @@ var index$2 = (function (props) {
25529
25635
  while (1) switch (_context9.prev = _context9.next) {
25530
25636
  case 0:
25531
25637
  jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
25532
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25533
- return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
25534
- });
25535
25638
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
25536
- orders: trades,
25537
- showOrderInfo: trades
25639
+ orders: data || [],
25640
+ showOrderInfo: data || []
25538
25641
  }));
25539
25642
  });
25540
25643
  onceRef.current = false;
@@ -26511,7 +26614,7 @@ var processGyOrders = function processGyOrders(_ref4) {
26511
26614
  var processJyOrders = function processJyOrders(_ref5) {
26512
26615
  var data = _ref5.data,
26513
26616
  orderNo = _ref5.orderNo;
26514
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
26617
+ var trades = (data || []).filter(function (item) {
26515
26618
  return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
26516
26619
  });
26517
26620
  return trades;
@@ -26837,7 +26940,7 @@ var CommonGoods = function CommonGoods(props) {
26837
26940
  value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : (_value$kmGoods$filter = _value$kmGoods.filter(function (item) {
26838
26941
  return item === null || item === void 0 ? void 0 : item.sysItemId;
26839
26942
  })) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
26840
- var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
26943
+ var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
26841
26944
  map[key] = item;
26842
26945
  });
26843
26946
  }
@@ -26878,7 +26981,8 @@ var CommonGoods = function CommonGoods(props) {
26878
26981
  hasChange = false;
26879
26982
  currentValue = valueRef.current;
26880
26983
  kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
26881
- var supplierInfo = supplierMap.get(item.sysItemId);
26984
+ var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
26985
+ var supplierInfo = supplierMap.get(key);
26882
26986
  var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
26883
26987
  var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
26884
26988
  // 如果供应商信息有变化,标记需要更新
@@ -27162,7 +27266,6 @@ var CommonGoods = function CommonGoods(props) {
27162
27266
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
27163
27267
  type: compType
27164
27268
  });
27165
- console.log('getDataSourceAsync', list);
27166
27269
  onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
27167
27270
  allOrders: list || []
27168
27271
  }));
@@ -27198,6 +27301,7 @@ var CommonGoods = function CommonGoods(props) {
27198
27301
  }
27199
27302
  }));
27200
27303
  };
27304
+ CommonGoods.displayName = 'CommonGoods';
27201
27305
 
27202
27306
  var componentMap$3 = {
27203
27307
  WDT_RETURN_GOODS: {
@@ -27861,14 +27965,14 @@ var typeMap$2 = {
27861
27965
  alwaysShowChooseErpGoodsBtn: true,
27862
27966
  orderTypeKey: 'orderType',
27863
27967
  oIdKey: 'tradeNo',
27864
- outerOiIdKey: '',
27865
- goodDetailsKey: 'subOrderDetails',
27968
+ outerOiIdKey: 'sourceSubtradeNo',
27969
+ goodDetailsKey: 'goodsDetail',
27866
27970
  isShowSelectTradeGoods: true,
27867
27971
  showModeBtn: true
27868
27972
  }
27869
27973
  };
27870
27974
  var PublicReissue = function PublicReissue(props) {
27871
- var _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _value$typeMap$type$s9, _typeMap$type54, _typeMap$type55, _typeMap$type56, _typeMap$type57;
27975
+ var _typeMap$type35, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _value$typeMap$type$s8, _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, _typeMap$type56;
27872
27976
  var value = props.value,
27873
27977
  onChange = props.onChange,
27874
27978
  _props$reasonList = props.reasonList,
@@ -27991,7 +28095,7 @@ var PublicReissue = function PublicReissue(props) {
27991
28095
  value === null || value === void 0 ? void 0 : (_value$kmReissueGoods = value.kmReissueGoods) === null || _value$kmReissueGoods === void 0 ? void 0 : (_value$kmReissueGoods2 = _value$kmReissueGoods.filter(function (item) {
27992
28096
  return item === null || item === void 0 ? void 0 : item.sysItemId;
27993
28097
  })) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
27994
- var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
28098
+ var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
27995
28099
  map[key] = item;
27996
28100
  });
27997
28101
  }
@@ -28032,7 +28136,8 @@ var PublicReissue = function PublicReissue(props) {
28032
28136
  hasChange = false;
28033
28137
  currentValue = valueRef.current;
28034
28138
  kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
28035
- var supplierInfo = supplierMap.get(item.sysItemId);
28139
+ var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
28140
+ var supplierInfo = supplierMap.get(key);
28036
28141
  var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
28037
28142
  var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
28038
28143
  // 如果供应商信息有变化,标记需要更新
@@ -28068,7 +28173,7 @@ var PublicReissue = function PublicReissue(props) {
28068
28173
  }
28069
28174
  }, [sysItemIdMap]);
28070
28175
  var getGoodDetails = function getGoodDetails(_ref5) {
28071
- var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
28176
+ var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
28072
28177
  var mode = _ref5.mode,
28073
28178
  sysOrderNo = _ref5.sysOrderNo,
28074
28179
  _ref5$isAllOrders = _ref5.isAllOrders,
@@ -28100,8 +28205,7 @@ var PublicReissue = function PublicReissue(props) {
28100
28205
  var _order$typeMap$type$g;
28101
28206
  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;
28102
28207
  });
28103
- console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
28104
- var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
28208
+ var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest)) : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest) : [];
28105
28209
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
28106
28210
  var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
28107
28211
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -28109,30 +28213,30 @@ var PublicReissue = function PublicReissue(props) {
28109
28213
  return list;
28110
28214
  };
28111
28215
  var changeGoodHandle = function changeGoodHandle(val) {
28112
- var _typeMap$type25;
28216
+ var _typeMap$type24;
28113
28217
  var newValue = _objectSpread2({}, value);
28114
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)] = val || [];
28218
+ 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.key)] = val || [];
28115
28219
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
28116
28220
  };
28117
28221
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
28118
- var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
28222
+ var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
28119
28223
  var newValue = _objectSpread2({}, value);
28120
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)] = val;
28121
- if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderBillType) {
28122
- var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
28123
- var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
28224
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo)] = val;
28225
+ if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType) {
28226
+ var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
28227
+ var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
28124
28228
  var targetOrder = val && orders.find(function (oItem) {
28125
- var _typeMap$type29;
28126
- return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
28229
+ var _typeMap$type28;
28230
+ return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
28127
28231
  });
28128
- newValue[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.orderTypeKey];
28129
- }
28130
- if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
28131
- var _typeMap$type33;
28132
- 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)] = [];
28133
- } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
28134
- var _typeMap$type35;
28135
- 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)] = getGoodDetails({
28232
+ newValue[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.orderTypeKey];
28233
+ }
28234
+ if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
28235
+ var _typeMap$type32;
28236
+ 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)] = [];
28237
+ } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
28238
+ var _typeMap$type34;
28239
+ newValue["".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)] = getGoodDetails({
28136
28240
  mode: isStrict,
28137
28241
  sysOrderNo: val
28138
28242
  });
@@ -28140,27 +28244,27 @@ var PublicReissue = function PublicReissue(props) {
28140
28244
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
28141
28245
  };
28142
28246
  //显示选择商品按钮
28143
- var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo]);
28247
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.systemOrderNo]);
28144
28248
  var selectedGoodsChange = useCallback(function (skuList) {
28145
- var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
28249
+ var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
28146
28250
  var newValue = _objectSpread2({}, value);
28147
28251
  // 原订单商品
28148
28252
  var originTradeGoodList = getGoodDetails({
28149
28253
  mode: isStrict,
28150
- isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.isShowSelectTradeGoods
28254
+ isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.isShowSelectTradeGoods
28151
28255
  }) || [];
28152
28256
  // 当前选中的所有商品【包含了原订单+商品库】
28153
- var currentSelectGoodList = (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)]) || [];
28154
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
28155
- var _typeMap$type41;
28156
- return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.uniqueKey) || 'uuid']);
28257
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".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)]) || [];
28258
+ newValue["".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)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (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')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
28259
+ var _typeMap$type40;
28260
+ return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid']);
28157
28261
  });
28158
28262
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
28159
- }, [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.key)], isStrict]);
28263
+ }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)], isStrict]);
28160
28264
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
28161
28265
  gutter: 8,
28162
28266
  wrap: true,
28163
- id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key) || "".concat(Date.now())
28267
+ id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key) || "".concat(Date.now())
28164
28268
  }, /*#__PURE__*/React.createElement(Col, {
28165
28269
  className: "gutter-row",
28166
28270
  xs: {
@@ -28176,12 +28280,12 @@ var PublicReissue = function PublicReissue(props) {
28176
28280
  },
28177
28281
  disabled: disabled,
28178
28282
  allowClear: false,
28179
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderNo)],
28283
+ 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.systemOrderNo)],
28180
28284
  onChange: function onChange(val) {
28181
28285
  return changeSystemOrderHandle(val);
28182
28286
  },
28183
- placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.compType) || '', "\u7CFB\u7EDF\u5355")
28184
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
28287
+ placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.compType) || '', "\u7CFB\u7EDF\u5355")
28288
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
28185
28289
  return /*#__PURE__*/React.createElement(Select.Option, {
28186
28290
  key: item[typeMap$2[type].oIdKey],
28187
28291
  value: item[typeMap$2[type].oIdKey],
@@ -28203,11 +28307,11 @@ var PublicReissue = function PublicReissue(props) {
28203
28307
  disabled: isSettingConfig ? !isSettingConfig : disabled,
28204
28308
  allowClear: false,
28205
28309
  options: reasonList,
28206
- 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.typeName)],
28310
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.typeName)],
28207
28311
  onChange: function onChange(val) {
28208
28312
  return changeTypeHandle(val);
28209
28313
  }
28210
- })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
28314
+ })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
28211
28315
  className: "gutter-row",
28212
28316
  xs: {
28213
28317
  span: 11
@@ -28216,7 +28320,7 @@ var PublicReissue = function PublicReissue(props) {
28216
28320
  span: 6
28217
28321
  }
28218
28322
  }, /*#__PURE__*/React.createElement(Input, {
28219
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.systemOrderBillType)],
28323
+ 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.systemOrderBillType)],
28220
28324
  disabled: disabled,
28221
28325
  readOnly: true
28222
28326
  }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -28227,29 +28331,30 @@ var PublicReissue = function PublicReissue(props) {
28227
28331
  canUpdateNumber: showChangeBtn,
28228
28332
  hasSelectedSystemOrder: showChangeBtn,
28229
28333
  // showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
28230
- alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.alwaysShowChooseErpGoodsBtn,
28334
+ 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,
28231
28335
  // showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
28232
28336
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
28233
- 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)],
28337
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.key)],
28234
28338
  onChange: function onChange(val) {
28235
28339
  return changeGoodHandle(val);
28236
28340
  },
28237
28341
  onModeChange: handleModeChange,
28238
- showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.showModeBtn),
28342
+ showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showModeBtn),
28239
28343
  isStrict: isStrict,
28240
- isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.isShowSelectTradeGoods,
28241
- systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
28242
- selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.systemOrderNo)]] : [],
28344
+ 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,
28345
+ 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,
28346
+ selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
28243
28347
  tradeGoods: {
28244
28348
  originDataSource: getGoodDetails({
28245
28349
  mode: isStrict,
28246
- isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.isShowSelectTradeGoods
28350
+ isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
28247
28351
  }),
28248
- uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.uniqueKey) || 'uuid',
28352
+ uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
28249
28353
  selectedGoodsChange: selectedGoodsChange
28250
28354
  }
28251
28355
  })));
28252
28356
  };
28357
+ PublicReissue.displayName = 'PublicReissue';
28253
28358
 
28254
28359
  var css_248z$g = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
28255
28360
  styleInject(css_248z$g);