@kmkf-fe-packages/basic-components 2.2.44-beta.4 → 2.2.44-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, 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';
@@ -7759,7 +7759,9 @@ var Province = function Province(props) {
7759
7759
  gy: GyAddressData.getInstance(),
7760
7760
  km: AddressData.getInstance(),
7761
7761
  jst: JstAddressData.getInstance()
7762
+ // jky: JkyAddressData.getInstance(),
7762
7763
  };
7764
+
7763
7765
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7764
7766
  options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
7765
7767
  style: {
@@ -7995,13 +7997,14 @@ function ApaasPosting(props) {
7995
7997
  });
7996
7998
  }
7997
7999
 
7998
- var _excluded$b = ["value", "onChange", "platformType", "type"];
8000
+ var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
7999
8001
  function ApaasLogistics(props) {
8000
8002
  var value = props.value,
8001
8003
  onChange = props.onChange,
8002
8004
  platformType = props.platformType,
8003
8005
  _props$type = props.type,
8004
8006
  type = _props$type === void 0 ? 'select' : _props$type,
8007
+ placement = props.placement,
8005
8008
  other = _objectWithoutProperties(props, _excluded$b);
8006
8009
  var _useState = useState([]),
8007
8010
  _useState2 = _slicedToArray(_useState, 2),
@@ -8039,12 +8042,13 @@ function ApaasLogistics(props) {
8039
8042
  return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
8040
8043
  value: value,
8041
8044
  onChange: handleInputChange
8042
- })) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
8045
+ })) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
8043
8046
  value: value,
8044
8047
  onChange: onChange,
8045
8048
  options: option,
8046
- virtual: true
8047
- }));
8049
+ virtual: true,
8050
+ placement: placement
8051
+ }, other));
8048
8052
  }
8049
8053
 
8050
8054
  var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
@@ -8128,6 +8132,11 @@ var systemOrderMap = {
8128
8132
  ids: 'wdtSystemSelectIds',
8129
8133
  order: 'wdtSystemShowOrder'
8130
8134
  },
8135
+ JKY_SYSTEM_ORDER: {
8136
+ no: 'jkySystemOrderNo',
8137
+ ids: 'jkySystemSelectIds',
8138
+ order: 'jkySystemShowOrder'
8139
+ },
8131
8140
  BS_E3_SYSTEM_ORDER: {
8132
8141
  no: 'bsE3SystemOrderNo',
8133
8142
  ids: 'bsE3SystemSelectIds',
@@ -8605,7 +8614,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
8605
8614
  WAREHOUSING_STATUS: 'inStockStatusItemList',
8606
8615
  BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8607
8616
  MSG_STATUS: 'msgStatusValues',
8608
- WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
8617
+ WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8618
+ JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
8609
8619
  };
8610
8620
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8611
8621
  };
@@ -8699,6 +8709,33 @@ var processBsGoods = function processBsGoods(getValue) {
8699
8709
  return _defineProperty({}, nex.uniqueKey, _values);
8700
8710
  };
8701
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
+ };
8702
8739
  var processWdtGoods = function processWdtGoods(templateColumns) {
8703
8740
  return function (getValue) {
8704
8741
  return function (nex, config) {
@@ -8990,6 +9027,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8990
9027
  ids: 'wdtSystemSelectIds',
8991
9028
  order: 'wdtSystemShowOrder'
8992
9029
  },
9030
+ JKY_SYSTEM_ORDER: {
9031
+ no: 'jkySystemOrderNo',
9032
+ ids: 'jkySystemSelectIds',
9033
+ order: 'jkySystemShowOrder'
9034
+ },
8993
9035
  BS_E3_SYSTEM_ORDER: {
8994
9036
  no: 'bsE3SystemOrderNo',
8995
9037
  ids: 'bsE3SystemSelectIds',
@@ -9249,14 +9291,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9249
9291
  };
9250
9292
  var processLabel = function processLabel(getValue) {
9251
9293
  return function (nex, config) {
9252
- var _ref73;
9253
- 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;
9254
9296
  };
9255
9297
  };
9256
9298
  var processMemberLevel = function processMemberLevel(getValue) {
9257
9299
  return function (nex, config) {
9258
- var _ref74;
9259
- 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;
9260
9302
  };
9261
9303
  };
9262
9304
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9360,6 +9402,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9360
9402
  BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9361
9403
  MSG_STATUS: processSceneStatus,
9362
9404
  WDT_WAREHOUSING_STATUS: processSceneStatus,
9405
+ JKY_WAREHOUSING_STATUS: processSceneStatus,
9363
9406
  BS_LOGISTICS: processErpLogistics,
9364
9407
  WLN_LOGISTICS: processErpLogistics,
9365
9408
  WDT_LOGISTICS: processErpLogistics,
@@ -9375,6 +9418,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9375
9418
  BS_POSTING: processBsPosting,
9376
9419
  BS_GOODS: processBsGoods,
9377
9420
  WDT_GOODS: processWdtGoods(templateColumns),
9421
+ JKY_GOODS: processJkyGoods(templateColumns),
9378
9422
  WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9379
9423
  JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9380
9424
  BS_E3_GOODS: processBsE3Goods(templateColumns),
@@ -9393,6 +9437,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9393
9437
  KM_SYSTEM_ORDER: processErpSystemOrder,
9394
9438
  WLN_SYSTEM_ORDER: processErpSystemOrder,
9395
9439
  WDT_SYSTEM_ORDER: processErpSystemOrder,
9440
+ JKY_SYSTEM_ORDER: processErpSystemOrder,
9396
9441
  WDT_RETURN_BILL_NO: processErpSystemOrder,
9397
9442
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9398
9443
  JST_SYSTEM_ORDER: processErpSystemOrder,
@@ -9989,12 +10034,21 @@ var EditSplitRenderMap = {
9989
10034
  updateHandle = _ref17.updateHandle,
9990
10035
  disabled = _ref17.disabled;
9991
10036
  return /*#__PURE__*/React.createElement(ApaasLogistics, {
10037
+ getPopupContainer: function getPopupContainer() {
10038
+ return document.getElementById('subform');
10039
+ },
9992
10040
  value: val,
9993
10041
  allowClear: true,
10042
+ showSearch: true,
9994
10043
  onChange: function onChange(e) {
9995
10044
  return updateHandle(e, index, t.key);
9996
10045
  },
9997
- 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
9998
10052
  });
9999
10053
  },
10000
10054
  //退货物流-物流公司
@@ -10005,12 +10059,21 @@ var EditSplitRenderMap = {
10005
10059
  updateHandle = _ref18.updateHandle,
10006
10060
  disabled = _ref18.disabled;
10007
10061
  return /*#__PURE__*/React.createElement(ApaasLogistics, {
10062
+ getPopupContainer: function getPopupContainer() {
10063
+ return document.getElementById('subform');
10064
+ },
10008
10065
  value: val,
10009
10066
  allowClear: true,
10067
+ showSearch: true,
10010
10068
  onChange: function onChange(e) {
10011
10069
  return updateHandle(e, index, t.key);
10012
10070
  },
10013
- 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
10014
10077
  });
10015
10078
  }
10016
10079
  };
@@ -10479,7 +10542,11 @@ var SubForm = function SubForm(props) {
10479
10542
  });
10480
10543
  }, [inputValue]);
10481
10544
  var handleOpenChange = function handleOpenChange(newOpen) {
10482
- setOpen(newOpen);
10545
+ if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
10546
+ setOpen(newOpen);
10547
+ } else {
10548
+ setOpen(false);
10549
+ }
10483
10550
  };
10484
10551
  var onChangeInput = useCallback(debounce(function (val) {
10485
10552
  setInputValue(val);
@@ -10567,6 +10634,9 @@ var SubForm = function SubForm(props) {
10567
10634
  visible: open,
10568
10635
  onVisibleChange: handleOpenChange
10569
10636
  }, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
10637
+ getPopupContainer: function getPopupContainer() {
10638
+ return document.getElementById('subform');
10639
+ },
10570
10640
  value: undefined,
10571
10641
  onChange: function onChange(val) {
10572
10642
  onChangeInput(val);
@@ -10579,7 +10649,9 @@ var SubForm = function SubForm(props) {
10579
10649
  },
10580
10650
  filterOption: function filterOption(input, option) {
10581
10651
  return option.label.includes(input);
10582
- }
10652
+ },
10653
+ placement: "topLeft",
10654
+ listHeight: 120
10583
10655
  }) : /*#__PURE__*/React.createElement(Input, {
10584
10656
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
10585
10657
  allowClear: true,
@@ -12098,7 +12170,7 @@ var ChooseBaby = function ChooseBaby(props) {
12098
12170
  }));
12099
12171
  };
12100
12172
 
12101
- 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";
12102
12174
  styleInject(css_248z$7);
12103
12175
 
12104
12176
  var GoodItem = function GoodItem(props) {
@@ -12427,13 +12499,22 @@ var GoodItem = function GoodItem(props) {
12427
12499
  var hasAttr = useMemo(function () {
12428
12500
  return hasPic ? headerList.length > 1 : headerList.length > 0;
12429
12501
  }, [hasPic, headerList]);
12502
+ var clearAll = function clearAll() {
12503
+ onChange === null || onChange === void 0 ? void 0 : onChange({
12504
+ shopId: shopId,
12505
+ imgList: []
12506
+ });
12507
+ };
12430
12508
  return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
12431
12509
  className: "goods-title"
12432
12510
  }, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
12433
12511
  className: "goods-uploaded-state"
12434
12512
  }, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
12435
12513
  className: "goods-uploaded-count"
12436
- }, 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", {
12437
12518
  ref: boxRef,
12438
12519
  id: "goods-wrap",
12439
12520
  className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
@@ -15087,12 +15168,7 @@ var kmColumns = [{
15087
15168
  ellipsis: true,
15088
15169
  width: 150,
15089
15170
  render: function render(type) {
15090
- return renderTextEllipsis({
15091
- 0: '普通',
15092
- 1: 'sku套件',
15093
- 2: '纯套件',
15094
- 3: '包材商品'
15095
- }[type] || type);
15171
+ return renderTextEllipsis((kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[type]) || type);
15096
15172
  }
15097
15173
  }, {
15098
15174
  dataIndex: 'specName',
@@ -15325,34 +15401,75 @@ var jyColumns = [{
15325
15401
  }
15326
15402
  }];
15327
15403
 
15404
+ var getYesOrNo$2 = function getYesOrNo(val) {
15405
+ if (!isBoolean(val)) return null;
15406
+ return val ? '是' : '否';
15407
+ };
15328
15408
  var jkyColumns = [{
15329
- dataIndex: 'goodsNo',
15330
- title: "\u8D27\u54C1\u7F16\u53F7",
15409
+ dataIndex: 'goodName',
15410
+ title: "\u8D27\u54C1\u540D\u79F0",
15331
15411
  align: 'center',
15332
15412
  ellipsis: true,
15333
15413
  width: 150,
15334
15414
  render: renderTextEllipsis
15335
15415
  }, {
15336
- dataIndex: 'goodsName',
15337
- title: "\u8D27\u54C1\u540D\u79F0",
15416
+ dataIndex: 'goodNo',
15417
+ title: "\u8D27\u54C1\u7F16\u53F7",
15338
15418
  align: 'center',
15339
15419
  ellipsis: true,
15340
15420
  width: 150,
15341
15421
  render: renderTextEllipsis
15342
15422
  }, {
15343
- dataIndex: 'goodsId',
15423
+ dataIndex: 'goodId',
15344
15424
  title: "\u8D27\u54C1ID",
15345
15425
  align: 'center',
15346
15426
  ellipsis: true,
15347
15427
  width: 150,
15348
15428
  render: renderTextEllipsis
15349
15429
  }, {
15350
- 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',
15351
15454
  title: "\u8D27\u54C1\u6761\u7801",
15352
15455
  align: 'center',
15353
15456
  ellipsis: true,
15354
15457
  width: 150,
15355
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
15356
15473
  }, {
15357
15474
  dataIndex: 'specName',
15358
15475
  title: "\u89C4\u683C\u540D\u79F0",
@@ -15368,7 +15485,14 @@ var jkyColumns = [{
15368
15485
  width: 150,
15369
15486
  render: renderTextEllipsis
15370
15487
  }, {
15371
- 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',
15372
15496
  title: "\u89C4\u683C\u56FE\u7247",
15373
15497
  align: 'center',
15374
15498
  ellipsis: true,
@@ -15384,162 +15508,78 @@ var jkyColumns = [{
15384
15508
  });
15385
15509
  }
15386
15510
  }, {
15387
- dataIndex: 'sellCount',
15388
- title: "\u6570\u91CF",
15389
- width: 100,
15390
- render: function render(val) {
15391
- return /*#__PURE__*/React.createElement("span", null, val);
15392
- }
15393
- }, {
15394
- dataIndex: 'actualSendCount',
15395
- title: "\u5B9E\u53D1\u6570\u91CF",
15396
- width: 150,
15397
- render: renderTextEllipsis
15398
- }, {
15399
- dataIndex: 'sellPrice',
15400
- title: "\u5355\u4EF7",
15401
- width: 150,
15402
- render: function render(val) {
15403
- return val || val === 0 ? Number(val).toFixed(2) : '';
15404
- }
15405
- }, {
15406
- dataIndex: 'sellTotal',
15407
- title: "\u91D1\u989D",
15408
- width: 150
15409
- }, {
15410
- dataIndex: 'discountTotal',
15411
- title: "\u62B5\u6263\u91D1\u989D",
15412
- width: 150
15413
- }, {
15414
- dataIndex: 'shareFavourableFee',
15415
- title: "\u5206\u644A\u91D1\u989D",
15416
- width: 150
15417
- }, {
15418
- dataIndex: 'shareFavourableAfterFee',
15419
- title: "\u5206\u644A\u540E\u91D1\u989D",
15420
- width: 150
15421
- }, {
15422
- dataIndex: 'customerPrice',
15423
- title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
15424
- width: 150
15425
- }, {
15426
- dataIndex: 'customerTotal',
15427
- title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
15428
- width: 150
15429
- }, {
15430
- dataIndex: 'divideSellTotal',
15431
- title: "\u5B9E\u4ED8\u91D1\u989D",
15432
- width: 150
15433
- }, {
15434
- dataIndex: 'isGift',
15435
- title: "\u662F\u5426\u8D60\u54C1",
15436
- width: 150,
15437
- render: function render(val) {
15438
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15439
- }
15440
- }, {
15441
- dataIndex: 'isFit',
15442
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
15443
- width: 150,
15444
- render: function render(val) {
15445
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15446
- }
15447
- }, {
15448
- dataIndex: 'isPresell',
15449
- title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
15450
- width: 150,
15451
- render: function render(val) {
15452
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15453
- }
15454
- }, {
15455
- dataIndex: 'brandName',
15456
- title: "\u54C1\u724C",
15511
+ dataIndex: 'colorName',
15512
+ title: "\u989C\u8272\u540D\u79F0",
15457
15513
  align: 'center',
15458
15514
  ellipsis: true,
15459
- width: 200,
15515
+ width: 150,
15460
15516
  render: renderTextEllipsis
15461
15517
  }, {
15462
- dataIndex: 'cateName',
15463
- title: "\u8D27\u54C1\u7C7B\u522B",
15518
+ dataIndex: 'colorCode',
15519
+ title: "\u989C\u8272\u4EE3\u7801",
15464
15520
  align: 'center',
15465
15521
  ellipsis: true,
15466
15522
  width: 150,
15467
15523
  render: renderTextEllipsis
15468
15524
  }, {
15469
- dataIndex: 'goodsTags',
15470
- title: "\u8D27\u54C1\u6807\u7B7E",
15525
+ dataIndex: 'sizeName',
15526
+ title: "\u5C3A\u7801\u540D\u79F0",
15471
15527
  align: 'center',
15472
15528
  ellipsis: true,
15473
- width: 250,
15529
+ width: 150,
15474
15530
  render: renderTextEllipsis
15475
15531
  }, {
15476
- dataIndex: 'goodsMemo',
15477
- title: "\u8D27\u54C1\u5907\u6CE8",
15532
+ dataIndex: 'sizeCode',
15533
+ title: "\u5C3A\u7801\u4EE3\u7801",
15478
15534
  align: 'center',
15479
15535
  ellipsis: true,
15480
- width: 250,
15536
+ width: 150,
15481
15537
  render: renderTextEllipsis
15482
15538
  }, {
15483
- dataIndex: 'tradeGoodsNo',
15484
- title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
15539
+ dataIndex: 'marketPrice',
15540
+ title: "\u5E02\u573A\u4EF7",
15485
15541
  align: 'center',
15486
15542
  ellipsis: true,
15487
- width: 250,
15488
- render: renderTextEllipsis
15489
- }, {
15490
- dataIndex: 'tradeGoodsName',
15491
- title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
15492
- ellipsis: true,
15493
- width: 250,
15494
- render: renderTextEllipsis
15495
- }, {
15496
- dataIndex: 'tradeGoodsSpec',
15497
- title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
15498
- ellipsis: true,
15499
- width: 250,
15500
- render: renderTextEllipsis
15501
- }, {
15502
- dataIndex: 'sourceSubtradeNo',
15503
- title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
15504
- ellipsis: true,
15505
- width: 250,
15506
- render: renderTextEllipsis
15507
- }, {
15508
- dataIndex: 'platGoodsId',
15509
- title: "\u5E73\u53F0\u5546\u54C1ID",
15510
- ellipsis: true,
15511
- width: 250,
15543
+ width: 150,
15512
15544
  render: renderTextEllipsis
15513
15545
  }, {
15514
- dataIndex: 'subTradeId',
15515
- title: "\u5546\u54C1\u660E\u7EC6ID",
15546
+ dataIndex: 'retailPrice',
15547
+ title: "\u96F6\u552E\u4EF7",
15548
+ align: 'center',
15516
15549
  ellipsis: true,
15517
- width: 250,
15550
+ width: 150,
15518
15551
  render: renderTextEllipsis
15519
15552
  }, {
15520
- dataIndex: 'batchNo',
15521
- title: "\u6279\u6B21\u53F7",
15553
+ dataIndex: 'memberPrice',
15554
+ title: "\u4F1A\u5458\u4EF7",
15555
+ align: 'center',
15522
15556
  ellipsis: true,
15523
- width: 250,
15557
+ width: 150,
15524
15558
  render: renderTextEllipsis
15525
15559
  }, {
15526
- dataIndex: 'sendCount',
15527
- title: "\u6279\u6B21\u6570\u91CF",
15560
+ dataIndex: 'costPrice',
15561
+ title: "\u6210\u672C\u4EF7",
15562
+ align: 'center',
15528
15563
  ellipsis: true,
15529
- width: 250,
15564
+ width: 150,
15530
15565
  render: renderTextEllipsis
15531
15566
  }, {
15532
- dataIndex: 'productDate',
15533
- title: "\u751F\u4EA7\u65E5\u671F",
15567
+ dataIndex: 'isVirtual',
15568
+ title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
15569
+ align: 'center',
15534
15570
  ellipsis: true,
15535
- width: 250,
15536
- render: renderTextEllipsis
15571
+ width: 150,
15572
+ render: function render(val) {
15573
+ return renderTextEllipsis(getYesOrNo$2(val));
15574
+ }
15537
15575
  }, {
15538
- dataIndex: 'expireDate',
15539
- title: "\u5230\u671F\u65E5\u671F",
15576
+ dataIndex: 'skuType',
15577
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
15540
15578
  ellipsis: true,
15541
- width: 250,
15542
- render: renderTextEllipsis
15579
+ width: 150,
15580
+ render: function render(val) {
15581
+ return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
15582
+ }
15543
15583
  }];
15544
15584
 
15545
15585
  var getColumnsMap = function getColumnsMap() {
@@ -18782,13 +18822,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
18782
18822
  var getTableData$6 = function getTableData(_ref, formData) {
18783
18823
  var current = _ref.current,
18784
18824
  pageSize = _ref.pageSize;
18825
+ var conditionList = transformFormData(formData);
18785
18826
  return extendRequest('/qy/gdfw/product/product/page', {
18786
18827
  method: 'post',
18787
- data: _objectSpread2({
18828
+ data: {
18788
18829
  pageSize: pageSize,
18789
18830
  pageNo: current,
18790
- platform: 'JY_ERP'
18791
- }, formData)
18831
+ platform: 'JKY_ERP',
18832
+ conditionList: conditionList
18833
+ }
18792
18834
  }).then(function (res) {
18793
18835
  var _res$data = res.data,
18794
18836
  _res$data$productSkuL = _res$data.productSkuList,
@@ -18811,13 +18853,15 @@ var searchFormData$5 = [{
18811
18853
  }, {
18812
18854
  label: '规格编码',
18813
18855
  name: 'skuCode',
18814
- dataIndex: 'specNo'
18856
+ dataIndex: 'specNo',
18857
+ type: 'optionalInput'
18815
18858
  }, {
18816
- label: '商品名称',
18859
+ label: '货品名称',
18817
18860
  name: 'goodName'
18818
18861
  }, {
18819
- label: '商品编码',
18820
- name: 'goodNo'
18862
+ label: '货品编码',
18863
+ name: 'goodNo',
18864
+ type: 'optionalInput'
18821
18865
  }];
18822
18866
  var GoodList$6 = function GoodList(props, ref) {
18823
18867
  var _useState = useState([]),
@@ -18887,8 +18931,8 @@ var GoodList$6 = function GoodList(props, ref) {
18887
18931
  getCheckboxProps: function getCheckboxProps(record) {
18888
18932
  var options = {
18889
18933
  disabled: (props.selectedRows || []).map(function (row) {
18890
- return row.id || row.specId;
18891
- }).includes(record.id || record.specId),
18934
+ return row.specId || record.id;
18935
+ }).includes(record.specId || record.id),
18892
18936
  name: record.id
18893
18937
  };
18894
18938
  return options;
@@ -20335,7 +20379,7 @@ var getColumns$2 = function getColumns(_ref) {
20335
20379
  };
20336
20380
  };
20337
20381
 
20338
- var getYesOrNo$2 = function getYesOrNo(val) {
20382
+ var getYesOrNo$3 = function getYesOrNo(val) {
20339
20383
  if (isNull(val)) return null;
20340
20384
  return val ? '是' : '否';
20341
20385
  };
@@ -20486,7 +20530,7 @@ var getColumns$3 = function getColumns(_ref) {
20486
20530
  label: '否',
20487
20531
  value: false
20488
20532
  }]
20489
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
20533
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20490
20534
  },
20491
20535
  width: 100
20492
20536
  }]
@@ -20498,7 +20542,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
20498
20542
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
20499
20543
  return false;
20500
20544
  };
20501
- var getYesOrNo$3 = function getYesOrNo(val) {
20545
+ var getYesOrNo$4 = function getYesOrNo(val) {
20502
20546
  if (isNull(val)) return null;
20503
20547
  return val ? '是' : '否';
20504
20548
  };
@@ -20613,7 +20657,7 @@ var getColumns$4 = function getColumns(_ref) {
20613
20657
  title: "\u662F\u5426\u53D6\u6D88",
20614
20658
  width: 150,
20615
20659
  render: function render(val) {
20616
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20660
+ return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20617
20661
  }
20618
20662
  }, {
20619
20663
  dataIndex: 'isGift',
@@ -20632,7 +20676,7 @@ var getColumns$4 = function getColumns(_ref) {
20632
20676
  label: '否',
20633
20677
  value: 0
20634
20678
  }]
20635
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20679
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20636
20680
  }
20637
20681
  }, {
20638
20682
  dataIndex: 'skuNote',
@@ -20758,7 +20802,7 @@ var getColumns$4 = function getColumns(_ref) {
20758
20802
  label: '否',
20759
20803
  value: 0
20760
20804
  }]
20761
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20805
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20762
20806
  }
20763
20807
  }].map(function (item) {
20764
20808
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20887,7 +20931,7 @@ var getColumns$4 = function getColumns(_ref) {
20887
20931
  label: '否',
20888
20932
  value: 0
20889
20933
  }]
20890
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20934
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20891
20935
  }
20892
20936
  }].map(function (item) {
20893
20937
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -22425,7 +22469,7 @@ var getColumns$9 = function getColumns(_ref) {
22425
22469
  updateHandle = _ref.updateHandle,
22426
22470
  updateDataHandle = _ref.updateDataHandle;
22427
22471
  return {
22428
- //巨益商品信息
22472
+ //吉客云商品信息
22429
22473
  JKY_GOODS: [{
22430
22474
  dataIndex: 'goodsNo',
22431
22475
  title: "\u8D27\u54C1\u7F16\u53F7",
@@ -22527,7 +22571,7 @@ var getColumns$9 = function getColumns(_ref) {
22527
22571
  }
22528
22572
  }, {
22529
22573
  dataIndex: 'sellTotal',
22530
- title: "\u91D1\u989D",
22574
+ title: "\u603B\u91D1\u989D",
22531
22575
  width: 150
22532
22576
  }, {
22533
22577
  dataIndex: 'discountTotal',
@@ -22552,7 +22596,22 @@ var getColumns$9 = function getColumns(_ref) {
22552
22596
  }, {
22553
22597
  dataIndex: 'divideSellTotal',
22554
22598
  title: "\u5B9E\u4ED8\u91D1\u989D",
22555
- 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
+ }
22556
22615
  }, {
22557
22616
  dataIndex: 'isGift',
22558
22617
  title: "\u662F\u5426\u8D60\u54C1",
@@ -22571,12 +22630,12 @@ var getColumns$9 = function getColumns(_ref) {
22571
22630
  },
22572
22631
  options: [{
22573
22632
  label: '是',
22574
- value: '1'
22633
+ value: 1
22575
22634
  }, {
22576
22635
  label: '否',
22577
- value: '0'
22636
+ value: 0
22578
22637
  }]
22579
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22638
+ }) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
22580
22639
  }
22581
22640
  }, {
22582
22641
  dataIndex: 'isFit',
@@ -22596,12 +22655,12 @@ var getColumns$9 = function getColumns(_ref) {
22596
22655
  },
22597
22656
  options: [{
22598
22657
  label: '是',
22599
- value: '1'
22658
+ value: 1
22600
22659
  }, {
22601
22660
  label: '否',
22602
- value: '0'
22661
+ value: 0
22603
22662
  }]
22604
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22663
+ }) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
22605
22664
  }
22606
22665
  }, {
22607
22666
  dataIndex: 'isPresell',
@@ -22626,7 +22685,7 @@ var getColumns$9 = function getColumns(_ref) {
22626
22685
  label: '否',
22627
22686
  value: '0'
22628
22687
  }]
22629
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22688
+ }) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
22630
22689
  }
22631
22690
  }, {
22632
22691
  dataIndex: 'brandName',
@@ -22723,7 +22782,7 @@ var getColumns$9 = function getColumns(_ref) {
22723
22782
  ellipsis: true
22724
22783
  });
22725
22784
  }),
22726
- // 巨益补发商品信息
22785
+ // 吉客云补发商品信息
22727
22786
  JKY_REISSUE_GOODS: [{
22728
22787
  dataIndex: 'goodsNo',
22729
22788
  title: "\u8D27\u54C1\u7F16\u53F7",
@@ -22794,7 +22853,7 @@ var getColumns$9 = function getColumns(_ref) {
22794
22853
  }
22795
22854
  },
22796
22855
  render: function render(val, record, index) {
22797
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22856
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22798
22857
  style: {
22799
22858
  width: 70
22800
22859
  },
@@ -22814,7 +22873,7 @@ var getColumns$9 = function getColumns(_ref) {
22814
22873
  title: "\u5355\u4EF7",
22815
22874
  width: 150,
22816
22875
  render: function render(val, record, index) {
22817
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22876
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22818
22877
  style: {
22819
22878
  width: 130
22820
22879
  },
@@ -22834,56 +22893,59 @@ var getColumns$9 = function getColumns(_ref) {
22834
22893
  title: "\u603B\u91D1\u989D",
22835
22894
  width: 150,
22836
22895
  render: function render(val, record, index) {
22837
- return record.sellCount * record.sellPrice;
22896
+ if ((typeof record.sellCount === 'number' || record.sellCount) && (typeof record.sellPrice === 'number' || record.sellPrice)) {
22897
+ return record.sellCount * record.sellPrice;
22898
+ }
22899
+ return '';
22838
22900
  }
22839
22901
  }, {
22840
22902
  dataIndex: 'reason',
22841
22903
  title: "\u9000\u6362\u539F\u56E0",
22842
22904
  width: 250,
22843
22905
  render: function render(val, record, index) {
22844
- return /*#__PURE__*/React.createElement(ApaasInput, {
22906
+ return !disabled ? /*#__PURE__*/React.createElement(ApaasInput, {
22845
22907
  onChange: function onChange(value) {
22846
22908
  updateHandle(value, index, 'reason');
22847
22909
  }
22848
- });
22910
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22849
22911
  }
22850
22912
  }, {
22851
22913
  dataIndex: 'isGift',
22852
22914
  title: "\u662F\u5426\u8D60\u54C1",
22853
22915
  width: 150,
22854
22916
  render: function render(val, record, index) {
22855
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
22917
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
22856
22918
  value: val,
22857
22919
  onChange: function onChange(value) {
22858
22920
  updateHandle(value, index, 'isGift');
22859
22921
  },
22860
22922
  options: [{
22861
22923
  label: '是',
22862
- value: '1'
22924
+ value: 1
22863
22925
  }, {
22864
22926
  label: '否',
22865
- value: '0'
22927
+ value: 0
22866
22928
  }]
22867
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22929
+ }) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
22868
22930
  }
22869
22931
  }, {
22870
22932
  dataIndex: 'isFit',
22871
22933
  title: "\u662F\u5426\u7EC4\u5408\u88C5",
22872
22934
  width: 150,
22873
22935
  render: function render(val, record, index) {
22874
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
22936
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
22875
22937
  value: val,
22876
22938
  onChange: function onChange(value) {
22877
22939
  updateHandle(value, index, 'isFit');
22878
22940
  },
22879
22941
  options: [{
22880
22942
  label: '是',
22881
- value: 'True'
22943
+ value: 1
22882
22944
  }, {
22883
22945
  label: '否',
22884
- value: 'False'
22946
+ value: 0
22885
22947
  }]
22886
- }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
22948
+ }) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
22887
22949
  }
22888
22950
  }, {
22889
22951
  dataIndex: 'brandName',
@@ -23267,6 +23329,13 @@ var processGoods$1 = function processGoods(_ref) {
23267
23329
  canUpdateNumber: canUpdateNumber,
23268
23330
  source: source
23269
23331
  });
23332
+ } else if (isErpType.isJky(type)) {
23333
+ newList = processJkyGoods$1({
23334
+ list: list,
23335
+ type: type,
23336
+ canUpdateNumber: canUpdateNumber,
23337
+ source: source
23338
+ });
23270
23339
  } else {
23271
23340
  newList = processDefaultGoods({
23272
23341
  list: list,
@@ -23315,11 +23384,45 @@ var processJyGoods = function processJyGoods(_ref2) {
23315
23384
  });
23316
23385
  });
23317
23386
  };
23318
- // 处理不同类型的商品数据
23319
- var processWdtGoods$1 = function processWdtGoods(_ref3) {
23387
+ var processJkyGoods$1 = function processJkyGoods(_ref3) {
23320
23388
  var list = _ref3.list,
23321
- type = _ref3.type,
23322
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 * 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;
23323
23426
  return list.map(function (item) {
23324
23427
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
23325
23428
  uuid: uuid(),
@@ -23337,9 +23440,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
23337
23440
  return processedItem;
23338
23441
  });
23339
23442
  };
23340
- var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
23341
- var list = _ref4.list,
23342
- canUpdateNumber = _ref4.canUpdateNumber;
23443
+ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
23444
+ var list = _ref5.list,
23445
+ canUpdateNumber = _ref5.canUpdateNumber;
23343
23446
  return list.map(function (item) {
23344
23447
  var specNo = item.specNo,
23345
23448
  specId = item.specId,
@@ -23374,9 +23477,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
23374
23477
  });
23375
23478
  });
23376
23479
  };
23377
- var processGyGoods$1 = function processGyGoods(_ref5) {
23378
- var list = _ref5.list,
23379
- source = _ref5.source;
23480
+ var processGyGoods$1 = function processGyGoods(_ref6) {
23481
+ var list = _ref6.list,
23482
+ source = _ref6.source;
23380
23483
  var isFormWorkOrder = source === 'workOrder';
23381
23484
  return list.map(function (item) {
23382
23485
  var goodName = item.goodName,
@@ -23403,8 +23506,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
23403
23506
  });
23404
23507
  });
23405
23508
  };
23406
- var processJstGoods$1 = function processJstGoods(_ref6) {
23407
- var list = _ref6.list;
23509
+ var processJstGoods$1 = function processJstGoods(_ref7) {
23510
+ var list = _ref7.list;
23408
23511
  return list.map(function (item) {
23409
23512
  return {
23410
23513
  name: item.goodName,
@@ -23422,9 +23525,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
23422
23525
  };
23423
23526
  });
23424
23527
  };
23425
- var processKmGoods$1 = function processKmGoods(_ref7) {
23426
- var list = _ref7.list,
23427
- type = _ref7.type;
23528
+ var processKmGoods$1 = function processKmGoods(_ref8) {
23529
+ var list = _ref8.list,
23530
+ type = _ref8.type;
23428
23531
  var initParamsMap = {
23429
23532
  KM_GOODS: {
23430
23533
  num: 1
@@ -23443,20 +23546,22 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
23443
23546
  sysOuterId: item.goodNo,
23444
23547
  outerId: item.goodNo,
23445
23548
  skuSysId: item.specId,
23549
+ sysSkuId: item.specId,
23446
23550
  itemSysId: item.goodId,
23551
+ sysItemId: item.goodId,
23447
23552
  sysPicPath: item.goodPicUrl,
23448
23553
  payment: null,
23449
23554
  price: item.retailPrice,
23450
- type: null,
23555
+ type: (kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[item === null || item === void 0 ? void 0 : item.skuType]) || '',
23451
23556
  uuid: uuid(),
23452
23557
  canDelete: true,
23453
23558
  canEdit: true
23454
23559
  }, initParamsMap[type] || {});
23455
23560
  });
23456
23561
  };
23457
- var processDefaultGoods = function processDefaultGoods(_ref8) {
23458
- var list = _ref8.list,
23459
- canUpdateNumber = _ref8.canUpdateNumber;
23562
+ var processDefaultGoods = function processDefaultGoods(_ref9) {
23563
+ var list = _ref9.list,
23564
+ canUpdateNumber = _ref9.canUpdateNumber;
23460
23565
  return list.map(function (item) {
23461
23566
  var goodsId = item.goodsId,
23462
23567
  name = item.name,
@@ -23562,7 +23667,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23562
23667
  systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
23563
23668
  return item === null || item === void 0 ? void 0 : item.sysItemId;
23564
23669
  }).map(function (item) {
23565
- 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);
23566
23671
  });
23567
23672
  _context.next = 3;
23568
23673
  return servers.KM.getSupplierSingleton(systemItemIds);
@@ -23571,7 +23676,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23571
23676
  dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
23572
23677
  return item === null || item === void 0 ? void 0 : item.sysItemId;
23573
23678
  })) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
23574
- 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);
23575
23680
  var supplierInfo = supplierMap.get(key);
23576
23681
  item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
23577
23682
  item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
@@ -23729,6 +23834,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23729
23834
  }
23730
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, ")")));
23731
23836
  };
23837
+ SelectTradeGoods.displayName = 'SelectTradeGoods';
23732
23838
  var getButtonText = function getButtonText() {
23733
23839
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
23734
23840
  if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
@@ -23810,7 +23916,7 @@ var GoodItem$1 = function GoodItem(props) {
23810
23916
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
23811
23917
  // 判断是否为是否展示系统单筛选项
23812
23918
  var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
23813
- var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
23919
+ var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
23814
23920
  var refModal = useRef();
23815
23921
  console.debug('表格数据', value);
23816
23922
  var handleDelete = function handleDelete(record, index) {
@@ -25115,24 +25221,28 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
25115
25221
  singletonMap$7.delete(orderNo);
25116
25222
  reject(err);
25117
25223
  };
25118
- extendRequest('/qy/gdfw/order/jkyOrderDetail', {
25224
+ extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
25119
25225
  method: 'post',
25120
25226
  data: {
25121
- billNo: orderNo
25227
+ sourceTradeNos: orderNo
25122
25228
  }
25123
25229
  }).then(function (res) {
25124
25230
  if (res === null || res === void 0 ? void 0 : res.success) {
25125
- var _res$data, _res$data$tradeOrderD, _res$data3;
25126
- 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) {
25127
- var _filterJkyOrders, _res$data2;
25128
- 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) {
25129
25235
  return _objectSpread2(_objectSpread2({}, item), {}, {
25236
+ tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
25130
25237
  tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
25131
- tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
25238
+ tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus],
25239
+ logisticName: getJkyLogisticInfo(item === null || item === void 0 ? void 0 : item.packageDetail, 'logisticName'),
25240
+ logisticCode: getJkyLogisticInfo(item === null || item === void 0 ? void 0 : item.packageDetail, 'logisticCode'),
25241
+ logisticNo: getJkyLogisticInfo(item === null || item === void 0 ? void 0 : item.packageDetail, 'logisticNo')
25132
25242
  });
25133
25243
  });
25134
25244
  }
25135
- 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) || []);
25136
25246
  // 延迟10秒清除,保证订单的时效性
25137
25247
  setTimeout(function () {
25138
25248
  singletonMap$7.delete(orderNo);
@@ -25494,7 +25604,7 @@ var index$2 = (function (props) {
25494
25604
  while (1) switch (_context8.prev = _context8.next) {
25495
25605
  case 0:
25496
25606
  jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
25497
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25607
+ var trades = (data || []).filter(function (item) {
25498
25608
  return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
25499
25609
  });
25500
25610
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
@@ -25525,12 +25635,9 @@ var index$2 = (function (props) {
25525
25635
  while (1) switch (_context9.prev = _context9.next) {
25526
25636
  case 0:
25527
25637
  jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
25528
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25529
- return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
25530
- });
25531
25638
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
25532
- orders: trades,
25533
- showOrderInfo: trades
25639
+ orders: data || [],
25640
+ showOrderInfo: data || []
25534
25641
  }));
25535
25642
  });
25536
25643
  onceRef.current = false;
@@ -26507,7 +26614,7 @@ var processGyOrders = function processGyOrders(_ref4) {
26507
26614
  var processJyOrders = function processJyOrders(_ref5) {
26508
26615
  var data = _ref5.data,
26509
26616
  orderNo = _ref5.orderNo;
26510
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
26617
+ var trades = (data || []).filter(function (item) {
26511
26618
  return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
26512
26619
  });
26513
26620
  return trades;
@@ -26833,7 +26940,7 @@ var CommonGoods = function CommonGoods(props) {
26833
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) {
26834
26941
  return item === null || item === void 0 ? void 0 : item.sysItemId;
26835
26942
  })) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
26836
- 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);
26837
26944
  map[key] = item;
26838
26945
  });
26839
26946
  }
@@ -26874,7 +26981,8 @@ var CommonGoods = function CommonGoods(props) {
26874
26981
  hasChange = false;
26875
26982
  currentValue = valueRef.current;
26876
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) {
26877
- 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);
26878
26986
  var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
26879
26987
  var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
26880
26988
  // 如果供应商信息有变化,标记需要更新
@@ -27158,7 +27266,6 @@ var CommonGoods = function CommonGoods(props) {
27158
27266
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
27159
27267
  type: compType
27160
27268
  });
27161
- console.log('getDataSourceAsync', list);
27162
27269
  onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
27163
27270
  allOrders: list || []
27164
27271
  }));
@@ -27194,6 +27301,7 @@ var CommonGoods = function CommonGoods(props) {
27194
27301
  }
27195
27302
  }));
27196
27303
  };
27304
+ CommonGoods.displayName = 'CommonGoods';
27197
27305
 
27198
27306
  var componentMap$3 = {
27199
27307
  WDT_RETURN_GOODS: {
@@ -27845,10 +27953,26 @@ var typeMap$2 = {
27845
27953
  outerOiIdKey: '',
27846
27954
  goodDetailsKey: 'subOrderDetails',
27847
27955
  isShowSelectTradeGoods: true
27956
+ },
27957
+ JKY_REISSUE_GOODS: {
27958
+ compType: '补发',
27959
+ key: 'jkyReissueGoods',
27960
+ typeName: 'jkyReissueType',
27961
+ systemOrder: 'jkySystemOrder',
27962
+ systemOrderNo: 'jkySystemOrderNo',
27963
+ getOrderList: jkyUtils.getJkyOrderListSingleton,
27964
+ updateGoodsHandle: updateJkyGoodsHandle,
27965
+ alwaysShowChooseErpGoodsBtn: true,
27966
+ orderTypeKey: 'orderType',
27967
+ oIdKey: 'tradeNo',
27968
+ outerOiIdKey: '',
27969
+ goodDetailsKey: 'goodsDetail',
27970
+ isShowSelectTradeGoods: true,
27971
+ showModeBtn: true
27848
27972
  }
27849
27973
  };
27850
27974
  var PublicReissue = function PublicReissue(props) {
27851
- 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, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
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;
27852
27976
  var value = props.value,
27853
27977
  onChange = props.onChange,
27854
27978
  _props$reasonList = props.reasonList,
@@ -27971,7 +28095,7 @@ var PublicReissue = function PublicReissue(props) {
27971
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) {
27972
28096
  return item === null || item === void 0 ? void 0 : item.sysItemId;
27973
28097
  })) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
27974
- 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);
27975
28099
  map[key] = item;
27976
28100
  });
27977
28101
  }
@@ -28012,7 +28136,8 @@ var PublicReissue = function PublicReissue(props) {
28012
28136
  hasChange = false;
28013
28137
  currentValue = valueRef.current;
28014
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) {
28015
- 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);
28016
28141
  var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
28017
28142
  var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
28018
28143
  // 如果供应商信息有变化,标记需要更新
@@ -28048,7 +28173,7 @@ var PublicReissue = function PublicReissue(props) {
28048
28173
  }
28049
28174
  }, [sysItemIdMap]);
28050
28175
  var getGoodDetails = function getGoodDetails(_ref5) {
28051
- 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;
28052
28177
  var mode = _ref5.mode,
28053
28178
  sysOrderNo = _ref5.sysOrderNo,
28054
28179
  _ref5$isAllOrders = _ref5.isAllOrders,
@@ -28070,14 +28195,17 @@ var PublicReissue = function PublicReissue(props) {
28070
28195
  orderRest = {
28071
28196
  canEdit: true
28072
28197
  };
28198
+ } else if (['JKY_REISSUE_GOODS'].includes(type)) {
28199
+ orderRest = {
28200
+ canEdit: true
28201
+ };
28073
28202
  }
28074
28203
  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 ? [order] : [];
28075
28204
  var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
28076
28205
  var _order$typeMap$type$g;
28077
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;
28078
28207
  });
28079
- console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
28080
- 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) : [];
28081
28209
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
28082
28210
  var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
28083
28211
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -28085,30 +28213,30 @@ var PublicReissue = function PublicReissue(props) {
28085
28213
  return list;
28086
28214
  };
28087
28215
  var changeGoodHandle = function changeGoodHandle(val) {
28088
- var _typeMap$type25;
28216
+ var _typeMap$type24;
28089
28217
  var newValue = _objectSpread2({}, value);
28090
- 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 || [];
28091
28219
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
28092
28220
  };
28093
28221
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
28094
- 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;
28095
28223
  var newValue = _objectSpread2({}, value);
28096
- 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;
28097
- 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) {
28098
- var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
28099
- 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) || [];
28100
28228
  var targetOrder = val && orders.find(function (oItem) {
28101
- var _typeMap$type29;
28102
- 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;
28103
28231
  });
28104
- 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];
28105
- }
28106
- 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])) {
28107
- var _typeMap$type33;
28108
- 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)] = [];
28109
- } 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])) {
28110
- var _typeMap$type35;
28111
- 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({
28112
28240
  mode: isStrict,
28113
28241
  sysOrderNo: val
28114
28242
  });
@@ -28116,27 +28244,27 @@ var PublicReissue = function PublicReissue(props) {
28116
28244
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
28117
28245
  };
28118
28246
  //显示选择商品按钮
28119
- 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]);
28120
28248
  var selectedGoodsChange = useCallback(function (skuList) {
28121
- var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
28249
+ var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
28122
28250
  var newValue = _objectSpread2({}, value);
28123
28251
  // 原订单商品
28124
28252
  var originTradeGoodList = getGoodDetails({
28125
28253
  mode: isStrict,
28126
- 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
28127
28255
  }) || [];
28128
28256
  // 当前选中的所有商品【包含了原订单+商品库】
28129
- 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)]) || [];
28130
- 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) {
28131
- var _typeMap$type41;
28132
- 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']);
28133
28261
  });
28134
28262
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
28135
- }, [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]);
28136
28264
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
28137
28265
  gutter: 8,
28138
28266
  wrap: true,
28139
- 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())
28140
28268
  }, /*#__PURE__*/React.createElement(Col, {
28141
28269
  className: "gutter-row",
28142
28270
  xs: {
@@ -28152,12 +28280,12 @@ var PublicReissue = function PublicReissue(props) {
28152
28280
  },
28153
28281
  disabled: disabled,
28154
28282
  allowClear: false,
28155
- 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)],
28156
28284
  onChange: function onChange(val) {
28157
28285
  return changeSystemOrderHandle(val);
28158
28286
  },
28159
- 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")
28160
- }, ((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) {
28161
28289
  return /*#__PURE__*/React.createElement(Select.Option, {
28162
28290
  key: item[typeMap$2[type].oIdKey],
28163
28291
  value: item[typeMap$2[type].oIdKey],
@@ -28179,11 +28307,11 @@ var PublicReissue = function PublicReissue(props) {
28179
28307
  disabled: isSettingConfig ? !isSettingConfig : disabled,
28180
28308
  allowClear: false,
28181
28309
  options: reasonList,
28182
- 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)],
28183
28311
  onChange: function onChange(val) {
28184
28312
  return changeTypeHandle(val);
28185
28313
  }
28186
- })), (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, {
28187
28315
  className: "gutter-row",
28188
28316
  xs: {
28189
28317
  span: 11
@@ -28192,7 +28320,7 @@ var PublicReissue = function PublicReissue(props) {
28192
28320
  span: 6
28193
28321
  }
28194
28322
  }, /*#__PURE__*/React.createElement(Input, {
28195
- 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)],
28196
28324
  disabled: disabled,
28197
28325
  readOnly: true
28198
28326
  }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -28203,15 +28331,15 @@ var PublicReissue = function PublicReissue(props) {
28203
28331
  canUpdateNumber: showChangeBtn,
28204
28332
  hasSelectedSystemOrder: showChangeBtn,
28205
28333
  // showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
28206
- 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,
28207
28335
  // showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
28208
28336
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
28209
- 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)],
28210
28338
  onChange: function onChange(val) {
28211
28339
  return changeGoodHandle(val);
28212
28340
  },
28213
28341
  onModeChange: handleModeChange,
28214
- showModeBtn: false,
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),
28215
28343
  isStrict: isStrict,
28216
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,
28217
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,
@@ -28226,6 +28354,7 @@ var PublicReissue = function PublicReissue(props) {
28226
28354
  }
28227
28355
  })));
28228
28356
  };
28357
+ PublicReissue.displayName = 'PublicReissue';
28229
28358
 
28230
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";
28231
28360
  styleInject(css_248z$g);